Help · Using Morie
Automations
Tell Morie what to do when something happens, in a sentence.
Checked against Morie 0.57.4.
- On Automations, describe one, such as “when a pull request is approved and its checks pass, merge it”.
- One line per automation: its name, what starts it, its last run and its switch. Run now and History are in its ⋯.
- How many run at once is set in Settings → Automations.
Shop’s owner wants approved pull requests merged without waiting for them. They write the sentence, check the rule it becomes, turn it on and try it.
- Open Automations in the sidebar. In the field at the top, type “when a pull request is approved and its checks pass, merge it” and press Enter. A chat starts, writes the rule and asks you to approve it.
- The rule is saved turned off. Press its name to open it, read When, If and Then, then turn its On switch on.
- To try it on ticket #12, open Ticket info, then Runs, and press Run automation…. Open Runs on the Automations page to read what happened, step by step.
How it works
What an automation is
An automation does a job for you when something happens. It has three parts, read in order:
- When: what starts it, such as a pull request being approved, checks failing, a ticket being made, or a time of day.
- If: what must be true, such as the checks passing or the ticket having a label. This part is optional.
- Then: the steps, such as merging, changing a status, running a command, or starting a chat to fix something.
You do not build it by hand unless you want to. You describe it, and an agent writes it.
The list
The Automations tab shows one line per automation, under the heads Name, Starts, Last run and On. The tab counts every automation; Runs, beside it, lists the runs.
- Your automations come first, in name order. The ones turned off follow under Off, with how many there are.
- Starts says what starts it, its condition and how many steps it has, for example “When a pull request is approved · if checks pass · 2 steps”. When the last run failed, the reason takes its place in red, such as “Failed: The command exited with code 1.”. When an automation needs you (its update could not keep a step, or it no longer loads), a Needs you label sits by its name and the problem takes Starts’ place.
- Last run says only the time when the run completed, such as “2 hours ago”. Any other result says its word first: Running, Needs you, Failed, Stopped, Queued or Not started. It is a link to that run. Never run means it has not run yet.
- A name or a Starts line too long for its column ends in “…”; hover it, or move to it with Tab, to read all of it. The whole name is also on the automation’s page.
- The name opens the automation’s page. An automation saved without a rule (by an older version of Morie) shows its name as plain text with “· saved without a rule”: it can be run, its history read and deleted, but not edited here.
- ⋯ at the end of a row (shown when the pointer or the keyboard focus is on the row) has Run now, History, Restore Morie’s version… on Morie’s own and Delete….
- Made by Morie holds the clean-ups Morie makes for each project. It is folded into one line that says what they amount to, the worst first, such as “1 failed · 1 off · the rest on”, or “All on · nothing needs you”. ▸ opens it and ▾ folds it again; Morie keeps your choice for each project on this Mac. The walkthrough opens it when it shows you these clean-ups.
- Each group shows 50 rows, then Show more with how many are shown.
- Find an automation, beside the tabs, narrows both groups as you type, by name and by what starts them, over every automation, not only the rows drawn. Each group then says how many of its rows match, such as “5 of 22”. With no match it says “No automation matches “…”.” with Clear; Esc clears too.
- One notice at a time shows above the page: an error reading the list (with Try again), the result of an update (“2 automations updated. 1 needs you.”), or the offer “1 automation was saved by an older version of Morie.” with Update all. Dismiss hides it.
The switch saves at once
A row’s switch turns the automation on or off when you press it; there is nothing to save. For 10 seconds “✓ Saved · Undo” stands where its last run was, and Undo puts it back. The line waits while the pointer or the keyboard focus is on it, for at most a minute. If the change is refused, the switch goes back and the reason shows on a line under the row, starting “Not saved:”, until your next change.
A row you switch stays where it is, so the list does not jump under your pointer. It moves into or out of Off the next time the list is read: when you open the page again, or clear the find. The counts change at once.
An automation’s page
Press a name to open its page. Under its head (Back, the name, rev and Run now) are two switch rows, each with one line of help:
- On: “Off stops it until you turn it on.” It is the same switch as the row’s.
- Allow actions without asking: “Tools set to Ask in Settings → MCP run without asking for this automation; Off tools stay off.” The ⓘ beside it says what it covers.
Both save at once, as the list’s switch does: “✓ Saved · Undo” stands beside the switch for 10 seconds, and a refusal says “Not saved:” with its reason. They never wait for Save rule, and they act on the saved rule. While you have unsaved changes and the automation is off, the On row says “Turning on uses the saved rule.” If the automation changed somewhere else since you opened its page, Undo is refused and says so; open it again to see it as it is. An automation Morie made, with its rule as Morie made it, shows “Allowed by Morie” in words instead of a switch; once you change its rule and save it, the switch is yours.
Below, Rule holds When, If and Then and the facts line. Changed and Save rule show only once the rule or its name has changed, and Save rule saves only that, never the switches. If something must be fixed first, the heading says “One problem to fix before saving” and Save rule is off. A new automation has no switches: its heading says “New automations are saved off.” with Save, and it closes to the list, where its row is off and its switch turns it on. In Tell Morie what to change, type what you want and press Enter or ⏎: a chat starts. A step’s ⋯ shows when the pointer or the keyboard focus is on the step.
Trying it and reading what happened
- Run now, in a row’s ⋯ or at the top of its page, runs it once at once. It acts on the saved version, so press Save rule first if you changed it. An automation that runs on a ticket asks which ticket first.
- Runs lists every run with its state: Queued, Running, Needs you, Completed, Failed or Stopped. Open one to see each step.
- A run that Needs you shows Continue, which runs that step again without repeating the earlier ones. Stop ends a run that has not finished. A run that waits for you also has Stop on its row in the Needs you list and, when it is the one item of its row, in the Overview's Needs you column; it ends the run the same way, after 5 seconds of Undo there. A stopped run stays in Runs as Stopped.
- What happened on an open run has one line per step of the automation. A Repeat is one step: its line says how far it got (for example “3 of up to 10 attempts”) beside its state, however many attempts it made. The attempts inside a step are not listed on the page, and a run that made more than 100 of them shows only the newest ones to a chat. A run with more than 100 lines draws its newest 100 and Show more for the earlier ones.
- Reading every attempt from a chat.
runs.getreturns a run’s newest attempts (attemptsLimit, 100 by default, at most 200); its first page also carries the newest attempt of each step of the plan, so a Repeat that made many attempts still shows its own state. When older attempts remain, the answer’s note givesattemptsBefore; callruns.getagain with it for the next older page, which never repeats the first page’s attempts. A cursor that is not oneruns.getgave is refused: “That cursor is not one runs.get gave. Leave attemptsBefore out to read the newest steps.” Leave it out to start again. An attempt that starts between two pages can come on both; the output of an older attempt is read this way, not on the run’s page. - On a ticket, Ticket info → Runs shows only that ticket’s runs, and Run automation… starts one there.
- History, in a row’s ⋯, shows only that automation’s runs. Show all runs goes back.
What it may do without asking
Allow actions without asking is a switch at the top of the automation’s page, and it saves at once. Off, a step that changes tickets, notes, pipeline stages or shared updates follows what you set in Settings → MCP, which may be to ask you each time. On, a tool set to Ask runs without asking for this automation. A tool set to Off stays off. Turn it on only for an automation you trust.
Made by Morie automations run their own steps without asking while they are on, on every version Morie ships of them. Changing their settings yourself, here or in Settings, keeps that, as long as no chat has changed them since they were last Morie’s own. If you turn Allow actions without asking off for one, it stays off through Morie’s updates until you turn it on. A step whose tool is Off in Settings → MCP stays off for these automations too.
A version Morie didn’t make and you didn’t save asks, as any changed automation does: when a chat changes their settings (the card names the chat) or their steps, or a set-up file changes them. Allow once runs that run only; Always allow turns Allow actions without asking on again. If you change their steps yourself, the automation is yours and follows its own switch. Restore Morie’s version… in the automation’s ⋯ brings back Morie’s rule with the numbers last set in Settings; it then runs without asking, unless Allow actions without asking is off for it when you restore.
After a chat has changed one of them, saving its settings yourself, here or in Settings, doesn’t make it Morie’s own again: its next run asks you on its card. That card is expected, not the old fault where Morie’s automations asked after an update. Press Always allow on it, or use Restore Morie’s version…, and it runs without asking again.
When Morie starts, a run of a Made by Morie automation that was waiting on its card goes on by itself where its version is Morie’s own and you had not turned the switch off; its card says “Allowed by Morie”. Other waiting runs keep waiting for you, and so does one whose tool you have since set to Off in Settings → MCP.
When a step asks on its card, you can press Allow once, Always allow or Deny. Always allow turns Allow actions without asking on for this version of the automation, as that switch would, and the card lists what it covers. It is not offered when the card has nothing to cover. When the automation has changed since the run began, Always allow is greyed out and the card says why; then allow once, or use the switch on the automation’s page. On a Made by Morie automation, Always allow lets the other runs waiting on the same version go on too; each card says it was allowed because you pressed Always allow on another run.
When a chat edits an automation and you approve the edit on its card, the card says either “Allow actions without asking stays on for this version.” or “Allow actions without asking turns off for this version.” The switch keeps its setting only when you approve the card; an edit saved without a card, such as under an Always policy in Settings → MCP, turns it off. The chat can also ask to turn the switch on in the same edit (automations.edit with allowActionsWithoutAsking). The card then says “This edit also turns on Allow actions without asking.” and is asked on a card even when the tool is set to Always in Settings → MCP; it is refused when the tool is Off.
If you press Deny, the run ends and the list shows it as Stopped · denied. The automation’s next trigger starts a new run, which asks again.
How many automations run at the same time is set in Settings → Automations. The rest wait their turn.
When something is off
- Nothing happens? The automation is probably off. Its switch is on its row and at the top of its page; a row under Off is off.
- Run now is dimmed? The rule has unsaved changes, and Run now runs the saved rule. Press Save rule first. Only Run now waits; the two switches never do.
- A run says Failed? Its row shows the reason where Starts was, after “Failed:”. Press Last run to open the run and find the step, fix the cause, then use Run now in its ⋯ again.
- A row shows Update available? An older version of Morie saved it. Press the label to update it; the sentences you approved stay exactly the same.
- A clean-up of Morie’s is missing from the list? Open Made by Morie with ▸; it is folded by default.
Set it up
- Open Automations in the sidebar.
- In the field at the top, describe what you want and press Enter. Your default agent starts a chat, reads what Morie can do, writes the rule and asks you before saving it.
- Read the answer in the chat. The automation is saved turned off.
- Its row is under Your automations, turned off. Press its name to open it, check When, If and Then, then turn its On switch on, on its page or after ← Back to Automations, on its row. Either says “✓ Saved · Undo”.
With no automations yet, the page offers four examples to start from. To change an automation later, open it and type what to change in Tell Morie what to change and press Enter. You can also change any word in the rule yourself, then press Save rule.
From a chat
A chat works with automations through Morie’s tools. What a tool may do without asking follows Settings → MCP; anything that saves or changes an automation is otherwise asked of you on a card.
automations.listgives every automation of the project with its state;automations.getgives one, with its revisions.automations.catalogsays what a rule can use: its starts, conditions and steps, with examples.automations.createsaves a new rule, turned off.automations.editchanges one (it needs the revision it read,expectedRevision). WithallowActionsWithoutAsking: trueit also asks to turn Allow actions without asking on; that edit is always asked of you on a card.automations.testchecks a rule, or a saved automation, against a time (at; left out, when it next runs) without running it. Given both or neither ofruleandautomationId, it is refused: “Give either "rule" or "automationId"”.automations.enableandautomations.disableturn one on or off, as the row’s switch does.automations.runruns one now, on a ticket withticketNumberwhere its rule needs one.automations.deletedeletes one; its runs stay in Runs. A run still going refuses it until it ends, unless the delete stops it (force).runs.list,runs.get,runs.stopandruns.continueread and act on runs, as Runs does.
A chat cannot press a row’s switch or Undo for you, and never sets Allow actions without asking without your card.
See also: Chats and the Team tab · Checks and scripts