Routines
Schedule work for an agent, choose where results go, and get notified when runs finish.
Routines
A routine is work an agent does on a schedule, for example "Every Monday at 9:00, summarise last week's NPS comments into the Weekly tab".
Creating a routine
You can create a routine in three ways:
- On the agent's Routines page, choose New Routine.
- Ask the agent: "Every weekday at 9:00, check new Zendesk tickets for billing bugs." It replies with a card you confirm.
- Let the agent propose one. It often suggests routines in its first chat, and follow-ups like "check the result on Thursday".
Only the agent's creator and admins (for a shared agent) can create and change routines. When someone else asks the agent for a routine, it proposes one in their chat, and the creator or an admin can confirm or dismiss it under that routine on the Routines page.
Routine settings
-
Name and What to do: the instructions for each run.
-
When it runs:
- Once, at a date and a whole hour.
- Every Hour, on the hour.
- Every Day, Weekdays, Every Week (on the days you choose) or Every Month (on day 1 to 28, or Last Day), at a whole hour (for example 9:00).
- Any repeating routine can end on a date.
Routines run once an hour, on the hour. A routine you made earlier with a time that is not on the hour keeps that time, and it runs at the next whole hour.
-
Where the output goes: a tab, or a connected app such as a Notion page, a Slack channel, a Linear team or a sheet.
-
Notify: None, Email or Slack.
Can I Do This? checks that the agent has the access the routine needs, and the plan preview shows the next runs.
Times use your time zone when you create the routine and stay correct across daylight saving changes. Everyone sees run times in their own time zone.
Needs access
If a routine needs something the agent cannot use, for example a Notion connection that is missing, the routine is saved as Needs access and does not run. The agent says what is missing. When the access appears, the agent asks whether to start the routine.
Runs
Runs do not post in anyone's chat. While a run works, the agent's page shows a status such as Weekly summary is running, and the results go where the routine's output goes and into the agent's story. On the Routines page you can:
- Turn a routine on or off.
- Choose Run Now to run it straight away.
- Switch to the week view to see each day's runs.
- Open a routine to see its run history, and open a run to see its steps, what it changed (with links) and how it ended.
A run is skipped, and the skip is recorded, when your workspace is low on credits, agents are turned off for your workspace, the agent's creator has left, or another run of the agent is still working. A chat never delays a run.
A routine that missed several times (for example while paused) runs once when it can, not once per missed time.
Notifications
Each routine has its own notification setting:
- None: results stay in the routine's output and the agent's story.
- Email: sent to one person, by default whoever created the routine.
- Slack: sent by the Deck Slack app to a channel, a direct message or another conversation the app is in. Requires Deck for Slack.
Notifications are sent when a run completes, fails, waits for approval or is skipped for low credits. Anyone who can change the agent can change where notifications go.