Skip to content

Make your first automation

At the end you have a rule that adds 1 to your streak when you tick a habit, and a script that writes a weekly running summary every Sunday.

An automation is: when this happens, if this is true, do these steps. See How automations work.

When Done becomes ticked in Habits, add the tag Finished, then add 1 to Streak.WhenDone becomes tickedin HabitsStep 1add the tag FinishedStep 2add 1 to Streak
The automation’s page reads it back as one sentence.

Part 1: a simple rule

  1. Open your Habits collection and make a new automation. See Track your habits for the setup.

  2. Set the trigger: a value changes, Done, to ticked.

  3. Add a step: add the tag Finished to Status.

  4. Add a step: add 1 to Streak.

  5. Read the sentence at the top: When Done becomes ticked in Habits → add the tag Finished → add 1 to Streak.

  6. Test it on one habit entry. The test shows each change and writes nothing.

  7. Save it. An automation you make yourself from everyday actions is on at once. Tick a habit: the tag and the new streak show in the same moment as the tick.

One Undo reverts the tick and everything the automation did because of it.

Part 2: a script

Some jobs need a loop or a sum. For those, add a Script step: a small TypeScript program.

  1. Make a collection called Weekly reviews with a Kilometres Number.

  2. In Workouts, make a new automation with the trigger a schedule: every Sunday at 20:00.

  3. Add a Script step. Write (or ask the AI to write) a script that adds up Distance for the last 7 days and creates a Weekly review with the total. Collections and properties show as chips with autocomplete. See Scripts.

  4. Test it “as if it were Sunday 20:00”. The test shows the review it would create.

  5. Approve it, in the app. The app lists what the script reads (Workouts), what it changes (Weekly reviews) and anything it sends out. You approve that list once, with Face ID, a fingerprint, Windows Hello or your device password.

Make it yours

  • Ask the AI: “every morning at 7:00, if rain is forecast, add the task Indoor workout today”. If you ticked “AI can make and switch on automations” in Settings → Security → AI permissions, it builds the automation and switches it on. If not, it tells you what to make, and where to tick the box. See Safety and approval.
  • Copy a ready-made one, such as “weekly review” or “streak on tick”, from the Library. A copy starts switched off.
  • Look at past runs and undo one. See Testing, history and undo.