Build workflows
Workflows
What a workflow is, how the assistant builds and changes it, versions, and turning triggers on and off.
A workflow is an automation made of one trigger and a list of steps. The trigger decides when it runs — on a schedule, on a GitHub or Slack event, on a webhook call, or by hand. The steps decide what happens — calling tools on your connections, asking a model, running an agent, or reshaping data with JavaScript.
Under the hood each workflow is a short YAML definition. You rarely need to read it, but it's always one click away under Definition (YAML) and is described fully in the workflow reference.
trigger:
kind: schedule
cron: "0 9 * * 1-5"
timezone: America/Toronto
steps:
- key: prs
kind: tool
tool: github.list_pull_requests
args: { repo: acme/api, state: open }
- key: summary
kind: llm
model: fast
prompt: "Summarize these pull requests for standup: {{ steps.prs.output }}"
- key: post
kind: tool
tool: slack.post_message
args: { channel: C01ENGINEER, text: "{{ steps.summary.output.text }}" }
Building with the assistant
Workflows are always written by the workflow assistant — you describe, it builds. Press Edit on any workflow to open the editor: the chat on one side, and on the other a preview of the workflow as a diagram or as YAML. The assistant:
- reads your connections and models before using them, and won't reference anything that doesn't exist;
- asks when something essential is ambiguous (which repository, which channel, what to do on failure);
- writes the complete definition, validates it, fixes any errors, and shows it to you as a draft;
- tests JavaScript in the same sandbox runs use before saving it;
- explains what it built or changed in plain language;
- can run the workflow, read run results, and debug failures when you ask.
Things you can say:
| You say | The assistant |
|---|---|
| "Also post the summary to #releases" | Drafts a version with a Slack step added |
| "Only do this for PRs labelled needs-review" | Adds a condition to the relevant steps |
| "Use the smart model for the review" | Changes the step's model |
| "Why did the last run fail?" | Reads the run's steps, errors and logs and explains |
| "Run it for PR 1482 in acme/api" | Starts a manual run with those inputs |
| "Turn it on" | Enables the trigger |
Start a fresh conversation any time with New chat; the workflow and its history are unaffected, but the old chat's unsaved drafts stay behind with it. Chatting with the assistant is included in every plan and is never billed as Murmurator AI usage; see AI models.
You can also build and edit workflows from your own agents — Claude, Cursor or anything that speaks MCP — using the same tools the assistant uses. See MCP server.
Saving the assistant's changes
Nothing the assistant changes is saved until you say so. Each reply that changes the workflow becomes a numbered draft in the preview, and runs, schedules and webhooks keep using the saved version meanwhile — so to try a change with a real run, save it first.
- Step back and forward with the arrows above the preview. The chat rewinds with it, showing the conversation as it stood at that draft. Ask for something from an earlier draft and the later ones are dropped, as typing after an undo drops the redo.
- Save turns the draft you're looking at into one new version, with the drafts' summaries as its description.
- Cancel throws the drafts away along with the part of the chat that made them, and leaves the workflow as it was.
Your drafts wait in the editor if you leave it, and the workflow page says so. If someone else saves the workflow while you're editing, your drafts can't be saved over their version; cancel and ask again to build on it.
New workflows
A workflow you've just described is a draft until you save the assistant's first version. Drafts have no steps and can't run. If the assistant needs something from you first — say, a Slack connection that doesn't exist yet — the workflow stays a draft until you answer.
The steps diagram
The workflow page shows its steps as a diagram, in the order they run, with dashed lines for steps that only run when a condition holds. Click a step, or the trigger, to switch to the YAML with that part highlighted.
Versions
Every save creates a new, numbered version with a one-line summary of the change, who made it, and whether it came from the assistant or an MCP client. Open History on a workflow to see every version and a highlighted diff against the previous one.
Runs are pinned to the version that was current when they started. Editing a workflow never changes a run that's already in progress, and a run's page links to the exact version it used.
Enabling and disabling triggers
New workflows start with their trigger disabled, so nothing fires until you're ready. Use Enable trigger / Disable trigger on the workflow page, or ask the assistant.
- Enabled — the trigger fires automatically (schedules run, webhooks and events start runs).
- Disabled — nothing starts automatically. You can still press Run to start a manual run at any time.
A workflow can only be enabled when its definition is valid. The workflow list shows each workflow's status: draft, disabled or enabled.
Turning off after a failure
Add on_failure: disable at the top of a definition and the trigger turns itself off the first time a run fails. Nothing starts automatically again until someone enables it, and the workflow page says which run and which step turned it off. Use it for scheduled and event-driven workflows whose failures would otherwise repeat on every trigger, like an expired sign-in or an API that changed:
trigger: { kind: schedule, cron: "0 7 * * *" }
on_failure: disable
steps:
- ...
The default, on_failure: continue, leaves the trigger on. You can still press Run while the trigger is off.
Going out through another connection
Add egress: <slug> at the top of a definition, naming one of your connections, and every request the workflow's tools make goes out through it, so the sites and APIs it reaches see that address instead of Murmurator's. That covers the built-in fetch tools, connection tools (databases included), and the pages browser sessions and screenshots load. Calls to AI models and push notifications are not affected: they always go out directly.
- A Mullvad VPN connection goes out from one of Mullvad's relays, in the country it names.
- A Tailscale connection with an exit node goes out from that device — a computer at home, say — for sites that block data-centre and VPN addresses alike. It works only while the device is online.
egress: vpn
trigger: { kind: schedule, cron: "0 * * * *" }
steps:
- ...
A request the connection can't carry fails rather than going out directly, and nothing private is reachable through it, not even the network at the far end. A workflow with an egress can't use workspace tools or email server connections (SMTP and IMAP). The definition won't validate if it does, or if the slug isn't one of those connections.
Inputs
Workflows can declare inputs — values supplied when a run starts, like a repository name or an issue number. When you press Run, Murmurator shows a form for them; MCP clients pass them as inputs. Inputs can be required and can have defaults, which scheduled runs use.
inputs:
repo: { type: string, required: true, description: "owner/name" }
number: { type: integer, required: true }
dry_run: { type: boolean, default: true }
Steps read them with templates like {{ inputs.repo }}. See Data flow.
Inputs can also shape the field that asks for them, in the Run form and on a form trigger's public page: label and placeholder change what the field says, options turns it into a dropdown, and format makes a string a multiline text area, an email, a url or a date. A run whose values fall outside an input's options or format is refused.
inputs:
priority: { type: string, options: [low, normal, urgent], default: normal }
contact: { type: string, format: email, label: Reply-to address }
Budgets
A budget caps what a workflow may spend, so a runaway agent or a busy trigger can't burn through tokens or time. Set one at the top of the definition for each run and for the whole workflow per month, and on any llm or agent step for that step alone.
budget:
tokens: 200000
cost_usd: 2.50
iterations: 40
duration: 15m
monthly_tokens: 5000000
monthly_cost_usd: 50
steps:
- key: triage
kind: agent
budget: { tokens: 50000, cost_usd: 0.50, duration: 5m }
| Key | Limits | Where |
|---|---|---|
tokens |
Input and output tokens | Run, step |
cost_usd |
Murmurator AI spend, in dollars | Run, step |
iterations |
Agent turns across every agent step in the run | Run |
duration |
Time since the run or step started, such as 90s, 15m or 2h (up to 24h) |
Run, step |
monthly_tokens |
Tokens across all of the workflow's runs this month | Workflow |
monthly_cost_usd |
Murmurator AI spend across all of the workflow's runs this month | Workflow |
- Every key is optional. To cap a single agent's turns, use its
max_iterations. - Budgets are checked before each model request and each agent tool call. The request that crosses a limit is allowed to finish; the next one is refused.
- A step over its own budget fails, and the steps that depend on it are skipped. A run over its run or monthly budget stops: the step in progress fails, the remaining steps are skipped, and the run shows which limit it hit.
- Months are calendar months in UTC.
- Cost budgets only count Murmurator AI models, the only ones Murmurator knows the price of. Steps on your own models are limited by token budgets.
Settings and deleting
Use the gear icon on a workflow to rename it or change its description, or ask the assistant to. Deleting a workflow removes its versions, runs and conversations permanently.
Limits
- Up to 50 steps per workflow.
- Step keys are lowercase letters, numbers and underscores, starting with a letter, and unique within the workflow.
- Never put secrets in a definition — they belong on connections. The validator rejects definitions that reference connections or models your account doesn't have.