JM Tech Power

Tutorials

JJ Bot tutorial: routines whose results really reach you — and that recover by themselves

← All articles Email RSS Atom

Tutorial · JJ Bot 0.3.230 and 0.3.235 · 26–27 November 2026

A routine is a task a bot runs on a schedule, such as a morning news brief. If you haven't made one yet, start with the tutorial JJ Bot routines: ask a bot to do something on a schedule. This tutorial is about what happened next: the computer was closed at 8 o'clock, a run failed, or the result sat in a chat nobody read. Following tester Kingson Mo's plan, JJ Bot 0.3.230 and 0.3.235 make sure a routine's result really reaches you, and that a routine recovers by itself when something goes wrong.

1. See how far each result got

Since 0.3.230, a result put in a chat isn't counted as one you got. Each result records on its own when it was made, put in the receiving chat, taken in by the receiving bot, read, and told to you. Under each run on the Routines page you see how far it got: “Not read yet”, “is reading it” or “read it and told you”. A run that failed is shown apart from a result that didn't get through.

  • Nothing is lost or done twice. Each result has its own id, so the same one is never handled twice.
  • If JJ Bot closes while the bot is reading a result, or the bot's turn fails, the result goes back in the chat's inbox and is read again (when JJ Bot next starts, within a day, at most 3 tries); the routine itself isn't run again.
  • A result the bot couldn't read after 3 tries goes on the task board for the lead bot to follow up.
  • Where results go doesn't change: if you send every routine's results to one bot, they still all go there.

2. Let routines recover by themselves

Since 0.3.235, routines recover by themselves. A run that's cut off (JJ Bot or the computer closed), fails, misses its window, or whose result doesn't reach its bot or isn't read becomes an incident that's kept across restarts. There is nothing to switch on. JJ Bot then:

  • runs it again while that's still in time for when it was due — it never fills in a missed run late;
  • posts the result again, or
  • wakes the receiving bot to read it again.

Each of these is kept apart, with a cap, longer waits each time, and no loops. A problem only you can fix — a key, quota or permission — goes straight to you with what was tried. Your lead bot hears when an incident opens, needs you, and is resolved; nothing is forwarded to other bots.

3. When is an incident really over?

An incident closes only when a run tied to it passes each step, recorded on its own with its run id, time and evidence: enabled, executed, saved, delivered, read by its bot, told to you. Seen (you opened the chat) is recorded too. A later, unrelated run that went fine no longer closes it, and the task board stays blocked (or waiting for you) until then.

4. Give a routine a days rule

A routine can now have a days rule: Sundays only, weekdays, trading days, or days off. An off day is a normal skip that's noted, not an alarm. If you press Run now on an off day, JJ Bot makes a skip record that's delivered and read, and the next allowed run finishes the job.

5. Or just ask your bot

Bots get a tool called routine_control. In a chat, a bot can check a routine (its run ids, how far its result got, its incident and the recovery log), run it now with its own bot, receiver and rules, post its result again, put an incident back to work, close one with a note, or set its days rule — without you clicking anything. For example: “Did this morning's brief reach me? If not, post it again.”

Good to know

  • A missed run is never filled in late: if it is too late for when it was due, JJ Bot doesn't run it anyway.
  • Keys, quotas and permissions are yours: JJ Bot tells you what it tried instead of guessing.
  • Next on the plan with Kingson Mo: finding a past conversation's original words, handing work between bots with clear finish lines, choosing where tasks run, a check before a task starts, and a timeline of what bots learned.

Download JJ Bot or update it (0.3.235 is the current version), and see everything that's new, on the JJ Bot page.

Comments (0)

No comments yet. Be the first to comment!