A routine is work a bot does on a schedule: a morning briefing, a weekly report, a disk check. Each run is a turn in the bot’s chat, so the output lands where you already read that bot. Routines run on the Allternit API on your computer, so they keep running with every window closed while the desktop app is running.

Every routine has a bot

A routine runs as one of your bots, so every create form asks which bot runs it. The bot whose screen you are on is selected by default, otherwise your main bot (the one with the crown at the top of the Bots rail). You can pick any other bot from the list. If you have no bots yet, the forms tell you to create one first. The API refuses a routine with no bot (agent_required), whether it runs on your computer or in the cloud; see Automation API.

Reading routine status

A routine row identifies the bot and where it runs: Runs on: Cloud computer or Runs on: This computer.

Where routines run

If your account has a cloud computer (it comes with paid plans), new routines run on it by default, so they keep running with your computer closed or asleep. Without one, routines run on your computer, as before. The create and edit forms have a Runs on choice to change it. Routines started by an event on your computer, and phone-skill replays, always run on your computer. Routines you made before you had a cloud computer stay where they are. The Routines list shows Run in the cloud next to each scheduled routine on your computer; one tap moves it to the cloud computer. Its run history stays with the old copy. Bots live on each computer, so when you save a cloud routine Allternit copies the bot to your cloud computer first, and refreshes that copy each time. The copy carries the bot’s persona (Soul), instructions, memory file and settings. It does not carry channels, email addresses, phone numbers or sign-ins; those stay on your computer. If the copy fails, the routine isn’t saved and you see “Couldn’t copy” followed by the bot’s name and the reason. The cloud computer needs its own model sign-in for the bot’s brain. If a sign-in is missing when a run starts, the run fails and you get a “Something needs fixing” message, the same as any failed run. The next run uses the routine’s saved timezone; its zone appears beside the schedule. Waiting for scheduler means the recorded next-run time has arrived and the server has not yet reported a running job. The last run shows its result in words. A failed run with a recorded error exposes Review failed run. Run history expands the row to show its output, instructions, schedule editor and previous runs. Pause and resume save through the scheduler API; controls wait for an in-flight action before allowing another.

The Routines tab

Open a bot and choose Routines. Each routine is one row:
  • Schedule in plain words, for example “Every day at 8:00 AM”, “Weekdays at 9:00 AM” or “Every 6 hours”, then the next run date and time in the schedule’s timezone, Paused, or Running with the step the bot is on.
  • Apps and brain: the apps the last run read from, an arrow, and the apps it wrote to (for example Linear and Sentry → Slack), then the model that ran it. They come from the tools the run actually used, so a routine that has not run yet shows none.
  • Last run: when it last ran and whether it worked.
  • Run strip: the last 14 runs as small bars, oldest on the left. Green worked, red failed, grey was stopped or had nothing new, and a pulsing bar is running now.
  • Run now starts a run at once. On a computer it appears when you point at the row; on a phone it is always there. While a run is going it becomes Stop.
  • The switch turns the schedule off and on. Turning it on also clears a pause after failures.
Select a routine’s name to open it:
  • Latest run: while it runs, its steps with a tick on each one done and Step 2 of 4; afterwards, what it wrote, with the time, how long it took and the model. Open thread opens the chat that run wrote to.
  • Instructions: what the bot is asked to do on each run.
  • Schedule: Hourly, Daily, Weekdays or Weekly (with a day), at a time. It saves at once and shows the cron it saved. A schedule these can’t show (for example every 2 hours, or a cron with specific months) is listed as it is; pick one of the four to replace it, or use New routine for every option.
  • Earlier runs: the 9 runs before that, each with its time, whether you started it, and any error.
  • Hold to delete removes the routine.

Stop a run

Stop ends a run while it is going. The bot’s turn is cancelled, the run is recorded as Stopped, and whatever it wrote so far is kept as its output. A stopped run is not a failure: it does not count toward the automatic pause and does not send a “Something needs fixing” message. Stop works for routines on your computer and on Allternit cloud. If Allternit quits during a run, that run is marked failed with the reason “Allternit restarted mid-run” the next time it starts. Choose New routine to open the same scheduled-task form used by Automation Tasks, with this bot already selected. Saving refreshes the bot’s routine list. Automation Tasks and the bot’s Routines tab manage the same routines; the form includes advanced options such as cron expressions and goals. The tab is the same on Desktop, on ai.allternit.com (including the phone layout) and in the m.allternit.com app.

List, Graph and Calendar

The switch at the top of the tab shows the same routines three ways. The tab remembers your choice on this device.
  • List: the rows described above.
  • Graph: each routine as a flow from its trigger (schedule, next run, Run now) to the bot that runs it, to its last result (Done, Failed with the error, or No run yet). Lines are green after a good run, red after a failed one, and dashed when the routine is paused or has not run. A run is one turn by one bot, so the graph never shows multi-step chains.
  • Calendar: a calendar you can edit, opening on Day. Week and Month are one click away, with Today and back/forward, plus an Upcoming runs list for the next two weeks. Run times are worked out from each routine’s schedule in your timezone, with the same rules the scheduler uses.
This bot / All bots widens Graph and Calendar to every bot’s routines. Each calendar entry then shows the bot’s avatar, so you can read the whole team’s schedule. Selecting a routine in the graph or in Upcoming runs opens its details: status, schedule, what it does, which bot runs it, a Next 7 days strip with the first run time of each day, and run history with each run’s duration. Run now and Pause / Resume work there too.

Reading the calendar

  • Month shows up to three named entries per day, each with its time (for example “Morning briefing 9:00a”). Entries are tinted by type: goals blue, routines green, loops purple, heartbeats amber. When a day has more, click +N more to see the whole day as a list. Click the date number, or an empty part of the day, to open that day.
  • Week and Day show each task’s name and time on its block. Long names are shortened to fit.
  • On Automation Tasks, clicking a task on the calendar, or in Coming up, opens a small card next to it with its type, the date and time of that run, its schedule in words (for example “Weekdays · 9:00 AM”), when it runs next, which bot runs it, and its last run (marked when the last run failed). Goals show their due date and progress. From the card you can Open the full details, Run now, Edit, or Pause / Resume. Press Esc or click outside to close it.
  • On a phone the month shows coloured dots and a count instead of names. Tap a day to list its tasks, then tap a task to see the same card.

Edit routines on the calendar

Day and Week are hour grids from 6 AM to 10 PM. The grid opens at 7 AM and shows a line at the current time.
  • Add a routine at a time: click an empty slot. The new routine starts at that time (snapped to the half hour), on weekdays if you clicked a weekday or on that day of the week otherwise. Choose which bot runs it and what it does. A new bot routine offers that bot’s example asks as one-tap titles.
  • Change a routine: click it. You can change which bot runs it, its title and when it runs:
    • Every day, Weekdays or Some days (pick the days), at a time.
    • Monthly on a day of the month (1 to 28), at a time.
    • Every few hours: every 30 minutes, or every 1, 2, 3 or 4 hours, between a start and an end time, on the days you pick. The editor shows the schedule in plain words and the cron it saves. On / Paused switches the routine off without deleting it. Remove deletes it.
  • Move a routine: drag it up or down. It moves in 15-minute steps and saves when you let go.
A routine that runs every few hours is drawn as one striped band from its first to its last run, not as a separate entry per run, so a busy day stays readable. Month shows each day’s routines by name and time, up to three per day, with +N more for the rest (see Reading the calendar). Click the date number to open that day in Day view. Changes save to the routine itself. The scheduler recalculates its next run from the new schedule at once. Routines the calendar can’t place (at launch, once, manual, or a cron with specific months or uneven times) are listed under the calendar. Click one to open its details. The New routine form still offers every option, including raw cron expressions and goals. On a phone the graph is shown as stacked cards (trigger, then result). The calendar uses single-letter weekdays, and the routine editor opens as a sheet from the bottom of the screen. The same rows, and the same List / Graph / Calendar switch, are on every other screen that lists routines, and they share one remembered choice:
  • Automation Tasks (the rail, the Routines page and the phone’s Automation Tasks screen), on every tab: All, Goals, Routines, Loops and Agent Heartbeats. The search box also filters the graph and the calendar. See Goals, loops and heartbeats.
  • A bot chat’s Routines panel, which starts on that bot’s routines and offers This bot / All bots.
In List, each routine is the same row as on a bot’s Routines tab, with live steps, Stop and the run strip. Automation Tasks and a bot chat’s Routines panel add Edit in the open row, for the full form. Routines with no bot keep their card until you assign one. Selecting a run in Graph or Calendar opens the same details panel. The thread links in its run history open that bot’s thread. The calendar is editable on all of them, the same way as on a bot’s Routines tab. On screens that show every bot’s routines, a new routine starts with your first bot selected; pick another under Who runs it.

Goals, loops and heartbeats

On Automation Tasks, the Goals, Loops and Agent Heartbeats tabs have the same List / Graph / Calendar switch as Routines. All shows every kind together.
  • Calendar: loops and heartbeats sit at their run times, and a loop that runs every few minutes or hours is one striped band. Goals sit in an All day row on their target date. Coming up lists the next runs and due dates. Click an empty time to add a task of that tab’s kind at that time (on Goals, a goal due that day; on All, a routine). Click an entry to open its card (see Reading the calendar). Drag a loop or heartbeat to move it; the new time saves at once. Goals can’t be dragged; change the target date in the goal. Tasks with no time (manual, or a schedule the calendar can’t draw) and goals with no target date are listed under the calendar.
  • Graph: each task runs from its trigger (kind, next run, Run now) to the bot that runs it to the goal it serves, with the goal’s progress. On Goals, each goal shows the routines, loops and heartbeats that serve it, even though they are on other tabs.
Routines and loops run in the timezone they were saved with, not the timezone of the machine running them. Loops run on your computer on their schedule, as the bot you assigned or your main bot, on the model you picked or the bot’s own. A loop’s details show its next run, last run and history, with Stop on a run in progress. Run now starts one unless one is already running. Each loop keeps its own session, so it doesn’t fill the bot’s main chat. If the computer was asleep, the loop runs again when it wakes and doesn’t make up missed runs. Heartbeats need a connected computer; without one the tab says so. Saving updates each heartbeat’s own job, deletes a removed task’s job and keeps full task names in HEARTBEAT.md. On a bot’s own page, the Automation Tasks list under its Routines keeps its routines in List, because the bot’s Routines tab above already has the switch. Its other tabs have the switch.

Code

The main bot’s morning check-in

When a bot first becomes your main bot, it gets one routine: Morning check-in, every day at 9:00 in your time zone. Each run asks the bot to look over your open tasks, threads and Inbox and offer one to three pieces of work as suggested tasks (Go ahead / Not now, nothing starts on its own). When a run works, you get a “(bot name) sent you a message” notification; quiet hours hold it like any message. It is an ordinary routine: change its time, edit what it says, pause it or delete it on the Routines tab. It is created once and never comes back after you delete it. If the bot has no working brain, the run fails like any routine: Inbox → Needs fixing shows why, with Retry.

When a routine fails

Every failed run is recorded and reported, whether or not the routine has a bot, and whether or not an Allternit window is open. You are told in four places:
  1. A push notification (“Something needs fixing”) from your Allternit API, even with every window closed. If you have not fixed it, it is sent again an hour later and then every day at 9:00. Turn it off under Settings → Notifications → Something needs fixing.
  2. Inbox → Needs fixing lists the failure with a Retry button (it runs the routine now) and Dismiss. The next run that works closes it for you.
  3. A notice at the top of the bot’s Routines tab that names the routine and the error.
  4. The bot’s status line in the rail shows the problem, with the attention badge, until the routine works again.
Each run in the history also says why it did not work: it timed out, the routine had no bot, a subscription needs sign-in, you ran out of quota, the model returned an error, or Allternit restarted mid-run.

Timeouts

A run that takes longer than the routine’s time limit is cut off and fails with the reason “timed out”. The limit is 30 minutes unless the routine sets its own. A hung run no longer blocks the routine for hours.

Missed runs

This applies to routines that run on your computer. A routine on your cloud computer doesn’t miss runs while your computer sleeps. If your computer was off or asleep when a run was due, the routine runs once when Allternit is back, and the history shows a Skipped row for each run that was missed (up to 30 per gap). You get a “Something needs fixing” message saying how many runs were missed, or how late the run started. A run counts as missed when it starts more than 5 minutes late, or more than a tenth of its interval late if that is longer. The message closes when a later run starts on time.

Automatic pause after 3 failures

After 3 failed runs in a row, the routine pauses itself so it stops failing on every run. The notice says it was paused and shows the last error. Fix the cause (for example a missing key or an exhausted quota), then choose Resume. Resuming gives the routine another 3 tries. A run that works resets the count.

Routines that need a bot

Routines made before bots were required may have no bot. They never run. They are listed under Needs a bot on the Routines tab, and your main bot shows “routines need a bot” in the rail and Inbox. Each one also sends a “Something needs fixing” message once, and stays in the Inbox (as Needs fixing items) until you assign a bot or dismiss it. For each one, choose Assign to main bot or pick another bot from Another bot…. The routine starts on its normal schedule from then on.

Tasks an agent makes

An agent can make scheduled tasks for you with the automation tool. They show in the Routines list with a badge for who made them (you or an agent). A quiet check that found nothing new appears in the run strip as a quiet run and sends no notice. A run that stops at an approval ends there and tells you once.