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.
- 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.
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.
- 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.
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.
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:- 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.
- 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.
- A notice at the top of the bot’s Routines tab that names the routine and the error.
- The bot’s status line in the rail shows the problem, with the attention badge, until the routine works again.