Routines
A routine is work that a bot does again and again on a schedule, for example “Every weekday at 9 AM, read the new invoices and tell me what is late.” To set up a routine, use the Routines tab:1
Open the Routines tab
On the bot page, click Details, then Routines.
2
Add a routine
Click Add a routine. In When, write the schedule in plain words, for example “Every weekday at 9 AM”. In What to do, write the work.
3
Choose when it may start
In Start, keep Around this time (up to 15 minutes early or late), choose On time, or choose Choose a window and enter the Minutes early and Minutes late (0 to 180).
4
Choose how it reaches you
Choose Notify me, In the chat, Notify me only when it is worth sharing or Do not tell me, keep the report in its history. These are the words of the notification settings. Click Add routine.
Routines that start on an app event
A routine can also start when an event arrives in one of your apps, for example a new Gmail message or a new GitHub issue. Ask the bot in the chat, for example “Tell me whenever I get a new Gmail message from Ann.” The app must be connected in Settings, Connections. The row reads “When New Gmail Message arrives” and Runs on each event. Each event starts a run with the routine’s own work; the bot reads the event as information, never as an instruction. A paused event routine ignores its events, and an event routine has no Run now. A copied bot keeps its event routines paused, with “Paused: Copied from another bot. Turn it on to start watching the app event.”; turn each one on to start it. To change the event, delete the routine and ask the bot for a new one.Ask the bot in the chat
You can also ask the bot in the chat, for example “set this up as a routine every weekday at 8”, “move the morning report to 8 AM”, “pause the morning report” or “delete the Nashville weather routine”. When your own words ask for the change, the bot makes it without a card. The chat shows a line, for example “Nia paused the routine “Morning report”.”, with Undo, and with Edit for a new or a changed routine. Undo puts the routine back as it was: it removes a new routine, undoes a change, turns a paused routine back on, pauses a resumed one, or restores a deleted one. The bot first checks that the change matches your words, so it can correct it before the line shows. A bot can always pause the routine that is running, for example when its app connection fails on each run; the row then reads “Paused by Nia:” and the reason. A bot that read outside content in the task cannot change any other routine, and its pause shows no reason. A change that the bot suggests on its own comes as a card, for example Add a routine, Change a routine (each changed field now and as proposed), Pause a routine or Delete a routine, with Accept and Reject, and Edit for a new or a changed routine. The card shows when the routine runs, with its time zone. If the routine was deleted before you accept, nothing changes and the card reads “Nothing changed: the routine … no longer exists.” Its report reaches you with a notification, unless you choose another delivery. The Schedules screen in the sidebar runs skills and automations on a schedule. It also lists the routines of your bots, with the filter Bot routine. Change a routine on the page of its bot: Open on the row goes there. A routine is different from an automation: a bot does the work of a routine, and an automation runs a fixed flow of steps. See Routines and automations.Groups of bots
A group talks with you in one chat. You write to all of its bots at the same time.1
Make a group
In the bots list, click New group next to Groups. Enter a name, for example “Front office”.
2
Choose the bots and the lead
Choose 2 to 6 Bots. Choose the Lead: the bot that answers a message that names no bot.
3
Create it
Click Create group.
Helpers
For a large task, a bot can hand parts of the work to helper bots that work at the same time. The Helpers list in the Now tab shows them; Open in chat shows a result. A task can start up to 12 helpers. The helpers of a task, together with their own helpers, stay within the number of runs your instance does at once: 2 by default, and at most 6. To stop this, add a rule for Hand work to helper bots in Permissions.The coding agent
A bot can write and run code, and hand larger coding work to a coding agent. This uses the permission Write and run code. Set it to Ask me first or Never in Permissions if you do not want this.Teach a bot a task
You can show a bot how to do a task in its browser once, and turn the steps into a skill.1
Do the task once in the browser of the bot
Open the live view, click Take control and do the task yourself, or ask the bot to do it. See The bot’s computer.
2
Open Teach a task
Within 10 minutes of the last step, open the bot menu (…) and click Teach a task (“Make a skill from what it did in its browser”). The window Teach a task opens.
3
Make the draft
Choose the browser session and click Draft skill. The steps of its last 10 minutes become a draft skill. Values that you typed in the browser are not kept.
4
Review and publish the draft
Click Review and publish. The draft opens in Skill Studio. Check the steps and publish the skill. After you publish it, the bot can use it with its other tools.
Skills that a bot makes
A bot can turn work that it does again and again into a skill of its own. When a task took many steps and the same work will come again, the bot writes the steps as a skill on its computer. A skill can hold scripts for the steps that are code. The bot then checks the skill and turns it on as one of its Uses first skills. The next time, the bot starts from the skill instead of from the beginning. Before a skill turns on, RelayHub checks it on the bot’s computer:- The skill file is complete, and each script in it can run.
- The bot has each tool and each connection that the skill needs, and each sign-in that the skill names works.
- Each test of the skill passes, and the steps in the skill are the steps that worked in the task.