Waits, branches and exits
How a workflow walks a flow, how waits survive restarts, what wakes a Step that waits for a reply, click or open, and how Path gates and End Steps finish a branch or a workflow.
Every pause in a flow is something the durable engine keeps for the workflow: a timer for a Wait, or a named signal for a reply, click or open. A workflow that waits three days uses no memory and no process while it waits. The engine keeps its journal and runs it again when the timer fires or the signal arrives.
How a flow is walked
A workflow treats the flow as a graph where each Step waits for its inputs:
- The Start Step runs first.
- When a Step finishes, each of its outgoing arrows is marked taken or dead. A Step that forks takes all of its arrows; any other Step takes at most one.
- A Step becomes ready when every arrow into it has been decided. It runs if at least one of those arrows was taken. If none was, it is dead too, and its own outgoing arrows are marked dead in turn.
- Steps that become ready at the same moment run in parallel.
A Step where branches meet again runs once, after every branch leading into it has finished or died, and no Step runs more than once for the same person.
Durable time
| Step | How it pauses |
|---|---|
| Wait, for a duration | A durable timer for that long |
| Wait, until a date | A durable timer until that date; skipped when the date has passed |
| Split into paths, with a delay | A durable timer before it forks |
| LinkedIn message, waiting for a connection | Checks again at a set interval until the invite is accepted or the time runs out |
| Send email or LinkedIn/Telegram message, waiting for a response | A durable timer raced against the signals it waits for |
Engagement waits
A send Step that waits opens one named signal for each event it waits for, then races them against its timeout. Whichever lands first decides the Step’s output, and the outgoing arrows test that output to pick the next Step.
An inbound message from this person on the same channel is matched to the newest campaign send to them in the last 30 days, from the same sending account when the send recorded one. The match wakes this Step with the reply text.
Send email can wait for a reply, a click or an open. A LinkedIn or Telegram message can wait only for a reply. Waiting for an open turns the tracking pixel on, and waiting for a click turns link tracking on, whatever the Step’s own tracking switches say. A Send email that waits for nothing continues as soon as the email is sent.
Who sends the signals
| Signal | Where it comes from |
|---|---|
| Open | The tracking pixel in the email. A request that looks like a mail scanner or prefetcher, judged by its browser string and how soon after the send it came, is ignored. A real open is recorded on the person’s timeline and wakes the Step. |
| Click | The tracked link, which redirects to the real address. Unless the visitor is a known scanner, the click is recorded and wakes the Step with the address. |
| Reply | Any inbound message. It is matched to the newest campaign send to the same person on the same channel within 30 days, from the same sending account when the send recorded one. A match records one reply per Step and wakes it with the text. |
| Unsubscribe | The unsubscribe link opens a confirmation page, and confirming suppresses the person’s email contact. No Step waits for it. |
Tracking links are signed, so they cannot be forged or pointed at another person, and they stop working after 180 days.
A signal for a Step that already timed out, or for a workflow that has ended, changes nothing. If the call that wakes a workflow fails, the failure is logged and not retried, and the Step waits out its timeout.
Branches
Split into paths is the only Step that forks. It sends the person down every outgoing arrow at once, and each arrow normally leads into a Path Step. The branches run in parallel and can meet again at a Step further down.
Every other Step chooses one arrow. Send Steps choose by their output (replied, clicked, opened, timed out). AI reads the reply chooses by the intent it found. The order in which arrows are tried matters; see Flow model and checks.
Path gates
A Path either always lets the person through, or checks a list of rules, all of which or any of which must pass. A rule compares a value, usually a variable, with another: equals, does not equal, greater than, less than, contains, does not contain, starts with, ends with, is empty, is not empty. Text that spells true, false, null or a number is converted first, so the text “true” equals the value true.
A Path whose rules fail closes its branch. It is recorded as a success that stopped the branch, its outgoing arrows are marked dead, and the other branches, and any Step where they meet, carry on.
End Steps
The two End Steps do their work and then stop the whole workflow. No new Step starts on any branch, and the workflow ends as a success, because it ended the way the flow was built.
| Step | What it does before stopping |
|---|---|
| End — cool down | Optionally adds the person to an Audience for later, and optionally changes one fit criterion’s score by a set amount, kept between -1 and 1 |
| End & stop contacting | Suppresses the person’s contacts, on one channel or all of them. Later sends skip suppressed contacts, and the reply agent does not answer them |