Scheduled tasks
Give the agent instructions to run on its own, once at a set time, on a schedule, or when another app calls a web address.
A scheduled task is a set of instructions the agent carries out without anyone in a conversation. For example: "Every weekday at 7:00 AM, look at today's calendar and unread emails, then send me a short summary."
Before you start
- Scheduled tasks need the Professional or Enterprise plan. On other plans, Scheduled tasks in the sidebar shows a lock.
- Everyone in the workspace can see tasks and create their own.
- Owners and Admins can change every task. Members can change only the tasks they created, or that the agent created for them.
Three triggers
| Trigger | When it runs |
|---|---|
| One-time | Once, at the date and time you set. |
| Recurring | On a schedule, such as every weekday at 7:00 AM. |
| Webhook | When another app sends a request to the task's web address. |
You cannot change the trigger after the task is created.
Create a task on the Scheduled tasks page
In the sidebar, under Activity, click Scheduled tasks, then Add task.
Pick the Trigger.
Enter a Name, such as "Morning summary".
Write the Instructions: what the agent does on each run, in 5 to 5,000 characters. The agent can use any skill that is on. Write it as you would ask in a conversation.
Set when it runs. The fields depend on the trigger. See below.
Check the Time zone. Below it, the form shows the schedule in words.
Optional: add addresses under Email results to. Press Enter after each one. Up to 10.
Optional: switch on Allow write actions. See Write actions.
Click Add task.
When it runs
Pick the date and time in Run at. It must be in the future.
Ask the agent to set up a task
You can also ask in a conversation, for example: "Every Monday at 9 AM, list the invoices due this week."
- The agent can create, list, change and cancel tasks for you, with your rights. A member's agent can change only that member's tasks.
- This works only when you are signed in. A visitor cannot set up tasks.
- Creating, changing and canceling a task are skills that make changes, so the agent asks first by default.
On the task page, Created shows "by the agent" with a link to the conversation.
Write actions
Allow write actions decides what a run may do without a person there to say yes.
| Setting | What runs can do |
|---|---|
| Off (default) | Look things up only. Skills that make changes are skipped. |
| On | Also use skills that make changes, such as sending an email or booking a meeting, without asking. |
The person who switches it on is recorded as the one who allowed it. Skills that are Off on the Skills page are never used.
Where results go
- The task's page, under Runs. Click a run to see its full result.
- Email, to the addresses in Email results to.
- Your conversation with the agent, if you created the task and a conversation is live when it finishes.
The task list
The list shows Task, Schedule, Next run, Last run and Status for each task. Use Search tasks, Filter by status and Filter by trigger to find one.
| Status | Meaning |
|---|---|
| Active | Runs as planned. |
| Paused | Does not run until resumed. |
| Completed | A one-time or run-once task that has run. |
| Canceled | Stopped for good. Its history is kept. |
The task page
Click a task to open it.
| Part | What it holds |
|---|---|
| Instructions | What the agent does on each run. |
| Details | Trigger, Schedule, Time zone, Next run, Delivery, Write actions and Created. |
| Webhook | For webhook tasks: the web address (hidden) and Rotate URL. |
| Runs | Every run, with Started, Reason, Status, Duration and Result. |
Buttons, for admins and the task's creator:
- Run now runs it right away, with the reason Manual.
- Pause stops future runs. Resume starts them again.
- Edit changes everything except the trigger. Click Save changes.
- Cancel task, under Danger zone, stops all future runs and keeps the history. Click Cancel task to confirm or Keep task to go back.
- Delete task, under Danger zone, deletes the task and its run history for good.
Runs
| Run status | Meaning |
|---|---|
| Queued | Waiting to start. |
| Running | In progress. |
| Completed | Finished. The result is shown. |
| Failed | Did not finish. The error is shown. |
| Reason | Why it ran |
|---|---|
| Scheduled | Its time came. |
| Webhook | Another app called its web address. |
| Deadline reached | A run-once webhook task reached its deadline without a call. |
| Manual | Someone clicked Run now. |
Limits
| Item | Limit |
|---|---|
| Open tasks per workspace | 100 |
| Shortest repeat | Every 15 minutes |
| Instructions | 5 to 5,000 characters |
| Email addresses | 10 |
| Webhook request body passed to the agent | 20,000 characters. The rest is cut. |
| Webhook calls waiting to run | 10 per task |
| Plan | Scheduled tasks |
|---|---|
| Free trial | No |
| Starter | No |
| Professional | Yes |
| Enterprise | Yes |
If your workspace moves to a plan without scheduled tasks, your tasks are kept but do not run. The task page shows "Tasks are not included in your plan".
Troubleshooting
| You see | Fix |
|---|---|
| "A workspace can have 100 open tasks. Cancel some first." | Cancel tasks you no longer need. |
| "A task can repeat at most every 15 minutes" | Change the cron expression to run less often. |
| "Select a future date and time" | Pick a time that has not passed. |
| "Enter a cron expression with 5 fields, for example 0 7 * * 1-5" | Check the expression has five parts. |
| "This task is already running" | Wait for the current run to finish. |
| "This task is paused" | Click Resume first. |
| "Too many calls are waiting for this task. Try again later." | The other app is calling faster than runs finish. Slow it down. |
| "The task took too many steps and was stopped." | Make the instructions shorter or split them into two tasks. |
| A run did not send the email it should have | Check Write actions on the task page. If it says Not allowed, edit the task and switch on Allow write actions. |
Tips
- Start with Allow write actions off. Read a few results, then switch it on if you trust them.
- Each task starts with the workspace time zone. Change it on the task if the people it serves are somewhere else.
- Use Run now to try a new task before its first scheduled time.