Building workflows
A workflow is built on its Advanced settings, opened from the workflow’s page under Workflows in the section named for your assistant. How it runs lists its steps as they follow one another, and the results it ends on. A row opens its editor beside the page, and a row’s + adds a step, a path or a result by it.
A workflow is inert until you enable it, so everything on this page is safe to experiment with.
Creating a workflow
Section titled “Creating a workflow”Click New workflow and give it a name. You get an empty draft. Add a summary from the line under the title — Alma uses it, and so does the next person who opens the workflow.
Accepts
Section titled “Accepts”A workflow never finds work and never decides when it runs. Guidance finds tasks and a priority decides when. Accepts says which tasks this workflow takes:
- Tasks: each kind of task it takes, in words, such as “Bugs with a clear fix in the code”. Alma reads each back as an exact check (Checked as) before you save. Say where each kind is found, like a repository or a mailbox.
- General workflow: one workflow in the workspace takes what no other accepts. Making this one the general workflow names the one it replaces.
- Approves first: who approves before it starts on a task. With nobody here, it starts without asking.
Edit on Accepts opens a drawer to change them. Its read-only view also counts the tasks it did this period.
Each step has a kind:
| Badge | Means |
|---|---|
| Work | Does something |
| Approval | A person decides |
| Wait | Pauses for a condition |
| Branch | The path splits |
And an actor: Alma, a Person, a System, or something External.
Editing a step
Section titled “Editing a step”| Field | Notes |
|---|---|
| Step name | Required |
| Instructions | What Alma should do at this step |
| Model | Workflow default, or pin to Sonnet 4.6, Opus 4.6, or Haiku 4.5 |
| AI Approval | On the Approval tab: Alma checks the output against your criteria; see below |
| Human Approval | On the Approval tab: see below |
| Rejection retries | 0–10: how many times an AI rejection re-runs the step |
Pin a model deliberately: use the workflow default for most steps, and reserve Opus for steps that draft customer-facing content.
Wait steps
Section titled “Wait steps”A Wait pauses the run until a chosen event arrives, or its own timeout passes. Opening a pull request finishes the work step that opened it — later activity on that PR (a review, a new commit, a CI run) belongs to the Wait step that follows, not to the work step itself.
On a Wait’s Details tab:
- Which events count — This run’s item (or This run’s PR, once a work step in this workflow produces one) follows the pull request, issue, or thread the run started from or produced. Any matching event takes the first event of that type after the step starts waiting.
- Gives up after — how long the wait lasts, from 1 hour up to 30 days. Defaults to 7 days.
- If the event never comes — Stop the run, the default, or Carry on to the next step without the event.
This timeout belongs to the one Wait step. It’s separate from a repeat’s own total-time limit, below, which bounds every round together.
Repeat groups
Section titled “Repeat groups”A repeat group reruns a run of consecutive steps — say, waiting for PR review and addressing it — until a stop condition is met or a limit ends the run. Every path through a repeat must pass through a Wait step, so a round can’t rerun without pausing for new activity first.
Creating a repeat
Section titled “Creating a repeat”Open a step’s action menu (the ⋯ button on its card) and choose Repeat from this step…. The repeat editor opens with that step as the First step; choose a Last step from the steps after it. Options that would split a branch without its join, skip a Wait step, or overlap another repeat are disabled with the reason, for example “Every repeated path needs a wait step.” or “These steps already belong to a repeat group.”
Then set:
- Stop repeating when — Pull request state, with a PR created by step that opens the PR before every path into the repeat, and a Condition of Merged or closed, Merged, or Closed without merge — or Question answer, bound to a required boolean field on a Question step that runs on every path through the repeat.
- Maximum rounds — up to 100, default 20. The first pass counts as round 1.
- Total time — 24 hours, 3 days, 7 days (the default), 14 days, or a custom duration. Waiting and approvals count toward it.
Click Create repeat group.
Editing or removing a repeat
Section titled “Editing or removing a repeat”Click Edit repeat on the boundary drawn around its steps, or reopen it from a step’s action menu, to change its steps, condition, or limits. Delete removes the repeat’s boundary, stop condition, and limits; its ordinary steps and connections stay in the workflow and run once.
Example: PR review and CI
Section titled “Example: PR review and CI”- Implement and open PR — a work step; opening the pull request finishes it.
- Wait for review or CI — a Wait step following this run’s PR.
- Address review and CI — a work step that reads the current PR and checks, pushes fixes, and answers the reviewer.
- Record the PR disposition — runs once the repeat ends.
A repeat named “Review and CI” wraps the wait and the fix step, stopping when the PR’s condition reads Merged or closed: implement, wait, address feedback, wait again, and so on, until a person merges or closes that PR.
A round with nothing to do
Section titled “A round with nothing to do”When a step inside a repeat reports there was nothing to do (for example, checks are still running and there is nothing to fix yet), only that round ends. The rest of the round is skipped, and the repeat checks its stop condition before starting the next round. The run keeps going until the stop condition is met or a limit is reached, and the steps after the repeat still run. Outside a repeat, a step that reports nothing to do still ends the run there.
Waking only on what matters
Section titled “Waking only on what matters”Every time the Wait step is released, the next round starts, and each round
counts toward Maximum rounds. A single push to a busy repository can
finish ten or more check suites, so a wait on every github.check_suite.completed
event can use up half the rounds on one green push. Filter the wait to the
events that need work, for example only failed suites:
{ "event_type": "github.check_suite.completed", "filters": { "check_suite.conclusion_matches": "^(failure|timed_out|action_required|startup_failure|cancelled)$" }}Limits and what members see
Section titled “Limits and what members see”Whichever bound is reached first — rounds or total time — stops the run with a Partial result and a reason naming the repeat. Reaching the round limit reads, for example:
Stopped after 20 rounds of “Review and CI”; the stop condition is still unmet.
Reaching the total-time limit first reads:
Stopped repeating “Review and CI”: its total time limit was reached before the stop condition was met.
A repeat’s total-time limit is the whole group’s deadline, counted across every round including time spent waiting or paused for approval. It’s a separate bound from a single Wait step’s own “Gives up after” timeout, which only ends that one wait.
The run’s inference and delegation spending limits are shared across every round rather than reset each pass, so a repeat cannot outspend the run by looping. Delegation is metered separately through the inference proxy and does not draw on the run’s own inference allowance; exhausting either stops the repeat with its own partial reason, distinct from the round and time bounds above.
Approval checkpoints
Section titled “Approval checkpoints”A step can be checked in two ways, each a card on the step’s Approval tab with its own switch. With both on, the AI check runs first.
AI Approval has Alma review the output against approval instructions
before the run moves on; mention a skill in them with /skill-name. “Confirm the discount
is within guardrail and the usage trend is real” gets a better verdict than
“Looks good?” A rejection reruns the step with Alma’s reasoning, up to the
rejection retries; after that the run stops.
Human Approval stops the run there until a person signs off. Add the people and groups who approve under Approvers; any one of them is enough. Approvers are always named, so the step cannot be saved until you add at least one.
The approver can Approve, or Reject, which ends the run. Turn on Allow re-runs with feedback to give them a third choice: send the step back with a note, and it runs again with it. A person decides each re-run, so there is no cap on them.
Put checkpoints where judgment changes the outcome: anything irreversible, customer-facing, or past a threshold. An approval on a step nobody reviews adds latency without adding safety.
Editing by chat
Section titled “Editing by chat”Edit with Alma in the workflow’s menu opens its own conversation beside the page. Describe a change and Alma applies it to the workflow.
Access
Section titled “Access”Permissions, under More on Advanced settings, controls two things.
Tool modes
Section titled “Tool modes”Every tool a step uses gets a row, set to Automatic or Needs approval.
New workflows default to Needs approval, unless your workspace changed that default in Security.
A workflow’s run uses only the tools its steps were granted. Access rules from Connections decide what people can use, not what the workflow can. A step that changes a repository needs the coding agent as well as Bash: see Coding steps.
Visibility
Section titled “Visibility”A baseline audience, plus rules for specific groups and people, each with Can view, Can edit, or Full access, as Allow or Deny. Resolution: deny wins, and person > group > tier.
Use the Who sees it now card to check the result before relying on it.
Saving
Section titled “Saving”Steps save as a whole list — a deleted step is deleted for real on save. Removing a step’s checkpoint cancels any decision pending on it, so a suspended run aborts rather than waiting on a gate that no longer exists.
Result
Section titled “Result”The results a run can land on (Success, Partial, Cancelled, or Escalated) close How it runs; each opens its editor, and Add a result adds one.
2026 Alma
