Automations
Send a saved prompt to a workspace's agent on a schedule or when another system calls its webhook, even when nobody has the workspace open. Schedules, webhooks, run limits, what each run records, and how to pause, stop or remove one.
On this page10 sections
An automation sends a saved prompt into a workspace's own conversation with the agent: the same as if someone had typed it, with nobody watching. It runs on a schedule, when another system calls its webhook, or both. It works even when nobody has the workspace open. The workspace wakes up, the agent does the work, and the result is in the conversation when you next look.
Use it for work that repeats or that something else starts: a daily check of new invoices, a weekly summary, or a new form submission, CRM record or GitHub event that should be looked at as soon as it arrives.
Where to find it#
Open a workspace and choose Automations (the clock icon) in the left bar. It opens as a tab inside the workspace. On a phone, it is in More actions.
| You can | With |
|---|---|
| See the automations and their history | Access to open the workspace |
| Create, edit, run, pause, resume, stop and remove them | can edit on the workspace |
Create an automation#
Choose New automation and fill in:
- Name: a name for it. The conversation it writes to carries this name.
- Prompt: what to send to the agent each time. Write it as you would type it into the conversation. The agent decides how to do the work.
- Schedule: see Schedules. Choose Only when called for an automation that runs only from its webhook.
- Webhook: with a schedule, switch on Also start it from a webhook to give it one as well. See Start it from a webhook.
- Run limits: folded under a summary such as
15 min · $1 · pause after 3 failures. See Run limits.
Then choose Create. If something needs fixing, it is said beside the field when you press Create. The automation is active at once. Use Run now to try it straight away.
A workspace can have up to 10 active automations.
Schedules#
| Frequency | You choose | Example |
|---|---|---|
| Daily (the default) | A time of day. New automations start at 09:00. | Every day at 9:00 AM |
| Hourly | The minute past the hour. | Every hour at :15 |
| Weekly | One or more weekdays and a time. | Every Monday and Thursday at 9:10 AM |
| Only when called | Nothing: it runs when its webhook is called. | When the vendor form is submitted |
The Timezone starts as your browser's. Next runs shows the next three times it will run, in that timezone, so you can check the schedule before you save it.
Automations can run at most once an hour.
A few rules apply to every schedule:
- A missed time is skipped, not made up. If a scheduled time is not picked up within 15 minutes of when it was due, it is recorded as skipped and the automation waits for its next time. A run that was picked up in time but held up on its way, for example during a short outage, is retried and can start later.
- One run at a time. If the previous run has not finished when the next time comes, the next time is skipped.
- Each scheduled time sends the prompt at most once, even across retries and our own updates. Once the prompt is sent, what the agent then does is its own work.
Start it from a webhook#
A webhook is an address another system calls to start the automation: a form tool, a CRM, Zapier, a GitHub event or your own code. Whatever the call sends goes to the agent with the prompt.
Add a webhook#
- In the automation's form, choose Only when called as the schedule, or switch on Also start it from a webhook, and save. The webhook is made at once. For an automation you already have, choose Add webhook from its ⋯ menu, then Create webhook.
- Copy the Webhook URL and the Secret and keep them with the system that will call. The secret starts
whsec_and is shown only once.
An automation has one webhook. Its ⋯ menu then offers Webhook, where you can see the URL, the recent calls, Replace secret and Remove webhook. Replacing the secret keeps the URL and refuses the old secret at once. Removing the webhook, or the automation, refuses every call after it.
Call it#
Send a POST to the webhook URL with the secret, in one of two ways:
- The secret itself, as
Authorization: Bearer <secret>. Use this when the sending system cannot sign. - A signature, as an
x-rfctr-signatureheader:t=<unix seconds>,v1=<HMAC-SHA256 of "t.body" with the secret>. A signed call needs a body, so send{}when there is nothing to say. Sign each attempt afresh: a signature works once.
How to call it, in the webhook's window, has ready-made examples in curl, JavaScript (Node) and Python.
curl -X POST '<webhook URL>' \
-H 'Authorization: Bearer <secret>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <a unique id per event>' \
-d '{"vendor": "Northwind"}'
The call answers at once with a run id; the run carries on in the workspace. A sender that retries should send the same Idempotency-Key, so a retry does not start a second run. The common keys senders already use, such as GitHub's delivery id, work too.
What the agent receives#
The agent gets the saved prompt, followed by what the call sent, marked as outside information and not instructions. That marking makes it harder for text in a call to steer the agent, but it cannot rule it out. So give the secret only to a system you would trust to prompt this workspace. A run started by a call has the same bounds as any other run: it works only in this workspace, under its network rules, and within its time and spend limits.
What the call sent is held separately only until the run picks it up. After that it is part of the run's conversation, like any message, and stays there with the rest of the conversation. The run's history says Started by a call.
Limits and refusals#
- Up to 64 KB a call, and 60 calls an hour for each automation.
- A call while a run is still going, or while the last run waits for a person, is refused. So is a call to a paused automation.
- The webhook's Recent calls list shows each call and what happened to it, for example Started a run or Refused — wrong or missing secret. It never shows what a call sent.
Run limits#
Each automation has limits on a single run, because nobody is watching it.
| Limit | Default | What happens |
|---|---|---|
| Maximum run time (minutes) | 15 | The run is stopped when it reaches this time. |
| Maximum spend per run (USD) | 1 | The run is stopped when its model spend reaches this amount. A request already in progress can take the final cost a little above it. |
| Pause after consecutive failures | 3 | After this many failed runs in a row, the automation pauses itself and says so. |
A run stopped by a limit is recorded as Failed, with the limit it reached, for example Stopped — maximum run time reached. A run that succeeds resets the count of failures. So does resuming the automation.
The limits apply to the run the automation starts. Work the agent continues afterwards in the same conversation, such as working through its Task List, is ordinary work in the workspace.
What a run records#
Each automation shows its last run and when it runs next, in its own timezone. Open its run history to see each run, grouped by day: when it ran, whether it ran On schedule, was Started by hand or was Started by a call, and how it ended. Open conversation on a run opens the agent's work for it.
| Status | Meaning |
|---|---|
| Waiting to start, Starting… | The run is on its way to the workspace. |
| Sent to Fibo, Running | The prompt was sent and the agent has it or is working on it. |
| Completed | The agent finished. |
| Needs attention | The run needs a person, for example it finished but left something open, or the workspace could not be checked. |
| Failed | The run ended with an error or reached a limit. |
| Cancelled | A person stopped it or cancelled it, or the automation was changed before the run started. |
| Skipped | The time was missed or the previous run had not finished. |
| Unconfirmed | The platform could not confirm whether the prompt ran, for example because the automation was paused or removed while the prompt was being sent. It may or may not have run; to end it if it is still running, see Stop a run. |
The agent's work is in the workspace's conversation named after the automation. Each reply there shows what it cost, and the conversation header shows the total.
When a run needs you#
An automation that needs a person is marked in the list, which says how many need one, and its row says why.
- A run that needs attention appears under Needs you on Home and in Fibo's message about your work. When you have dealt with it, choose Cancel and clear in the run history. Its notice clears for everyone, and the run history is kept.
- A run that failed is reported in Fibo's message. Choose Acknowledge in the run history to say you have seen it. The failure stays in the history.
Fibo's messages go to the people who should hear about the workspace. See Notifications.
Pause, resume, edit and remove#
Run now and Pause or Resume are on each automation's row. Edit, Webhook and Remove are in its ⋯ menu.
- Pause stops future runs, and refuses calls to its webhook. A run already sent, or already on its way, keeps going: see Stop a run. Editing a paused automation keeps it paused.
- Resume starts the schedule again and resets the count of failures.
- Edit changes the name, prompt, limits or schedule.
Resume and Edit wait while a run is still open: while it is sent or running, while it needs attention (until you Cancel and clear), or while a stop is still being confirmed. Let the run finish, stop it, or resolve it first.
- Remove stops the automation for good, removes its webhook and ends its access to the workspace. You type its name to confirm. It cannot be turned back on; create a new automation to replace it.
Archiving a workspace stops its automations.
Stop a run#
While a run is queued or running, Stop this run appears in its history. The run ends within seconds. Confirming that the workspace stopped can take a few minutes; until then the run shows Retry stop, and the platform keeps checking on its own.
You can also stop the agent from the conversation, as with any other work. That is the way to end a run that no longer offers Stop this run:
- a run shown as Unconfirmed, after a pause or removal raced with it being sent;
- any run of an automation that has been removed, since its row is gone.
Open the automation's conversation and stop the agent there. After an automation is removed, its conversation is named Scheduled automation.
What an automation can do#
An automation is given its own access to the workspace when it is created, which it uses each time it runs. Pausing or removing it stops new runs from being scheduled at once and takes that access away. A run that was already on its way can still reach the workspace while the change takes effect. To end it, see Stop a run.
The agent works in the workspace exactly as it does when you type to it: with the same files, skills, data sources and connections.