Bots

Routines

How to give a bot scheduled work: adding a routine, choosing when it runs and where its runs appear, and following runs in the Routines calendar.

What a routine is

A routine is an instruction a bot runs on a schedule, such as a pull request sweep every weekday at nine or a summary on Friday afternoon. Each run works like a message to the bot: it uses the bot's own role, instructions and model, and its reply appears in the bot's chat or in a thread of its own.

  • Routines run on your computer, while Nora is open.
  • A bot can have up to 20 routines.
  • Every run is listed in the Routines calendar, so you can see what ran and how it went.

Add a routine

Routines belong to a bot, so you add them from the bot's info panel.

  1. In the Bots sidebar, hover the bot and click its info button, or right-click it and choose Bot info.
  2. Under Routines, choose Add routine.
  3. Start from: pick a template, such as Morning briefing, Pull request sweep or Weekly summary, or choose Blank routine to write your own.
  4. Task: give the routine a name and write what it should do each time, for example "Summarise yesterday's open pull requests and flag anything blocked."
  5. Schedule: choose when it runs. See the options below.
  6. Delivery: choose which workspace it Works in and Where runs appear, then choose Create routine.

Nora can set them up too

Ask Nora, for example "Give Ada a pull request sweep every weekday at 9", and it can add, change, list and remove routines for you.

Choose when it runs

Pick an option under Repeats. Times use the 24-hour clock and the routine's Timezone, which starts as your computer's, so a daily run stays at the same local time when the clocks change.

Every hour
At a set number of minutes past each hour.
Every day or Weekdays
At a set time every day, or Monday to Friday.
Every week or Every month
On a chosen day of the week or day of the month, at a set time.
Repeat every…
Every so many minutes, hours or days, counted from when you save. The shortest gap is 3 minutes.
Custom (cron)
A cron expression with five fields: minute, hour, day of month, month and weekday (0 is Sunday). For example, 0 9 * * 1-5 runs at 9:00 on weekdays.
Once
On a chosen date and time. The routine pauses after it runs.

Choose where runs appear

Under Where runs appear:

In the bot's chat
Each run is posted to your chat with the bot like a message, and the reply appears there. This is the default.
In its own thread
Every run continues one thread named after the routine, so its history stays in one place.

Which workspace it works in

Works in sets the workspace the bot works in for each run. A bot that belongs to one workspace always runs its routines there.

If Nora was closed

Routines only run while Nora is open. Under If Nora was closed when it was due, choose what happens to a run that was missed:

Skip runs missed while Nora was closed
The default. The missed run shows as Missed while Nora was closed and the routine waits for its next time.
Run once when Nora opens
One catch-up run starts when you next open Nora, however many were missed.

Keep Nora running

To keep routines running when you close Nora's window, turn on Keep Nora running in the background in Settings → Nora Relay, and Launch at login to start Nora when you sign in.

Follow runs in the Routines calendar

Choose Routines in the sidebar, or the Routines tab in Bots home, to see every bot's routines in one calendar. Switch between Day, Week and Month, and choose Today to jump back.

Scheduled
A run that hasn't happened yet.
Running or Waiting for you
A run in progress, or one waiting for your approval or answer.
Done, Failed or Stopped
How a finished run ended.
Skipped
A run that didn't happen, for example because Nora was closed.

Run, pause, change or delete a routine

Each routine in a bot's info panel has these actions:

Run now
Starts a run straight away, without changing the schedule.
Pause and Resume
Stops scheduled runs until you resume. A paused routine says This routine is paused.
Edit
Changes the task, schedule or delivery. Choose Save routine when you are done.
Delete
Removes the routine.
Recent runs
Lists the latest runs with how each went. Choose Open thread to see one.
NextDownload NoraWhat’s newGet support