Agents
Log in Join the waitlist

Routines

A routine is a job an agent does on its own: on a schedule, when something changes, or when an email or Slack message arrives.

Each agent comes with a weekly routine of its own, and you can add as many as you like.

Ask for a routine in chat

The quickest way is to ask in chat, in your own words. Open the chat with the agent you want and tell it what to do and when, for example Every week at 9am on the day you choose, check last week's top posts and tell me which ones to refresh. The agent creates the routine and posts each run's result in the same chat.

To change a routine later, type @ in the message box, pick the routine from the list, and say what to change, for example move @Newsletter to a day later in the week.

See an agent's routines

Open the chat with the agent, click its name at the top, and choose Routines in its panel. The routines open in their own view, with Back at the top. Each routine shows when it runs. A paused one shows Paused. One that is running now shows Running, with Stop to end that run.

Create a routine yourself

  1. Under Routines, choose Create routine.
  2. Under Name, give it a short name.
  3. Under Instruction, write what the agent should do each time it runs.
  4. Under When to run, choose Add trigger and pick one (below).
  5. Choose Save.

Choose when a routine runs

A routine needs at least one trigger before you can save it. Times follow your timezone, which you set in Settings → General → Timezone.

  • On a schedule: Every hour, Every day, Weekdays, Every Monday, Monthly on the 1st, or Interval for every few minutes, hours or days. Pick the time of day where it asks. Advanced... takes a cron expression if you know cron. You can add more than one schedule.
  • When something changes: the agent checks something on a regular basis and runs only when it changed. In the first list, pick what it checks, such as Files or folders on the computer, then set Check every. Turn on Report unchanged checks if you want a note in chat each time nothing changed. This cannot be combined with a schedule.
  • When an email arrives: the routine runs when an email arrives at the agent's own address (below).
  • Slack message: the routine runs when the agent gets a message in Slack. It is grayed out until Slack is added.
  • Webhook and Git event: for starting a routine from another service or a code repository. Most people will not need these.

To remove a trigger, choose the X next to it, for example Remove schedule. Then choose Save.

Start a routine by email

The agent needs its own email address. Crew members get one when you hire them; any other agent claims one. Open the routine and choose Add trigger → When an email arrives. If the agent has no address yet, type the part before the @ (2 to 64 characters) and choose Claim; the address stays the agent's. You can also claim it from Get an email address in the agent's More actions menu, or by asking the agent in chat. Under the address, choose who may start the routine by email. Choose Save.

Then email the agent's address, and the routine runs with that email. Mail from anyone you did not allow is held for you and does not start it. Large attachments are dropped. Because someone else may have written the email, the agent asks your approval before every step that changes something, even ones you normally allow. See Email.

Run now, edit, pause or delete

Open the routine under Routines (it must be saved first) and choose Run now. The result appears in the agent's chat.

To edit, click the routine, change the Name, Instruction or triggers, and choose Save. To run one routine on a different model from the agent, choose the sliders icon (Advanced) next to When to run and pick a Model; Agent's model uses the agent's own.

To pause, turn Active off and choose Save. A paused routine keeps its settings and history; it just does not run. Turn Active on to start it again. Anyone in the space can pause or resume a routine this way. Any other change by someone who is not the routine's creator fails with "Only the routine's owner can change it." Owners and admins get no exemption. The crew's built-in routines belong to the person who hired the crew.

To delete, choose Delete, then Delete again to confirm. Deleting a routine also deletes its run history, and it cannot be undone.

See what a routine did

Open the routine and scroll to Run history. Each run shows when it ran and whether it worked. Click a run to jump to its message in the chat. If a run failed, the reason is shown under it; choose Details for more. Load older runs shows earlier ones. If a run started well after its planned time, it says so, for example "Started 2h late". A routine that shows Schedule delayed is behind and will catch up.

Teach an agent a task by showing it

You can do a task once on the agent's computer while it watches. Agents writes it up as a skill the agent can reuse, and you can turn that into a routine.

  1. Click the agent's name at the top of the chat and find the Computer section in its panel. Choose Open on the screen, or Wake if the computer is asleep.
  2. Choose Teach a task. Under What result will you demonstrate?, describe what you are about to do, then choose Start recording.
  3. Do the task on the screen. Talk as you go if your microphone is on, saying why you do each step. Password and card fields are left out of the recording. Use Pause for anything that should not be recorded, then Resume.
  4. Choose Stop teaching. A Draft skill appears in the chat after about half a minute. Check the steps and fix anything that is off.
  5. Choose Save to keep it, Test to have the agent try it, or Add to routine to make it a routine. Then pick when it runs and choose Save.

For more on the computer itself, see Your agents' computer.