Rules and interventions
What a run does when a rule finds something: a rule's Intervention tab, Carry on, Pause the run or Stop the run, When it fires, Notify a channel or Ask a person for input, and If the workflow run fails.
A rule says what it found by raising a status: the columns changed, the wrong file, values missing or out of tolerance. Its intervention says what the run does then, and who hears about it. Pick a rule and open the data panel's Intervention tab to read or change it. It is headed Rule intervention, with the rule's label.
Outcome
What happens to the run when the rule fires:
- Carry on: the run goes on with the tables the rule returned.
- Pause the run: the run waits for a person's input.
- Stop the run: it stops here, and the run's page offers Fix this.
When it fires
The statuses the rule fires on, each with its dot: Schema changed, Wrong file, Incomplete, Invalid values, Out of tolerance and Needs review, which the Outcome decides on; Info, on which the run goes on; and Its code breaks and Unreadable file, which fail the run whatever the Outcome. A status not picked shows in Output only, and the run goes on.
An Enrich rule has no code: its step raises Incomplete (AI left values empty in cells the rule fills) or Enrichment failed (the request failed, or the month's requests ran out) for it.
Action
Who is told or asked:
- None.
- Notify a channel: a message with a link to the run, the rule's card as its reply. Set the Channel, the Post (a new thread each run, or one thread), the Message and, for a message the agent writes, What to say.
- Ask a person for input: a task for its Assignees, also posted in a channel when Ask in a channel sets one. Four eyes keeps the person who started the run from answering; Priority, Due and If nobody answers say how long it may wait. Only a paused run asks: picked with another Outcome, it says Asking holds the run: pick Pause the run.
Card picks what the person reads: Custom, the card the rule's code builds with its facts, its rows and the cells a person may correct; or Minimal, the rule, why it fired and a link to the run. Tests post nothing and ask nobody.
Each step's defaults
| Step | Outcome | Action |
|---|---|---|
| Harmonise | Carry on | None, or Notify a channel |
| Check | Stop the run or Pause the run | Notify a channel, or Ask a person for input |
| Enrich | none unless you ask: then Pause the run or Carry on | Ask a person for input, or Notify a channel |
| Notify | Carry on, always | Notify a channel, always |
A Notify rule only notifies: if one was set to stop or ask, the tab warns A Notify rule only notifies, and the agent moves it to a Check step.
A check the agent adds tells #cta, the workspace's channel for what needs a person, unless you name another; an approval asks there. A workspace with no #cta has no default, and a check tells nobody until you name a channel.
When a run pauses
A paused run's request reaches its assignees as a task, and in the channel when one is set. The person reads the rule's card, corrects the cells it opens to them, and answers with Approve and continue, which carries the run on, or Stop the run. A paused Enrich rule also offers Try again after a failed request. Its run reads Waiting for the people it asks, on the lists.
If the workflow run fails
Under the steps, If the workflow run fails is the workflow's own intervention, one per workflow. It tells a channel when a run fails: A rule's code breaks, A file can't be read, A step fails, Nobody answered in time, and, if you pick them, when a rule raises other statuses. It adds to each rule's own intervention, never instead, tells a channel nothing twice, and never changes how a run goes. Until you set it: Nobody is told when a run fails.
For a workflow that runs by itself, on a schedule or a File received trigger, the agent offers it once: tell #cta when a run fails.
Where rules go
| You ask | Step | Outcome | Action |
|---|---|---|---|
| "If a sector is missing, ask Tom" | Check | Pause the run | Ask a person for input |
| "Stop if the columns change" | Check, right after Ingest | Stop the run | Notify a channel |
| "Tell #nav-oversight about flagged rows and go on" | Check | Carry on | Notify a channel |
| "Post a summary in #nav-oversight" | Notify, last | Carry on | Notify a channel |
| "If AI leaves the asset class empty, ask me" | Enrich | Pause the run | Ask a person for input |
| "Tell #nav-oversight when a run fails" | If the workflow run fails |