Visual workflow composer
The CRM Automations page offers schema-derived triggers, action configurations, all-match conditions, keyboard-accessible reorder/remove controls and explicit forward connections with labelled If / else branches. Every edit invalidates compile review. Saving rereads the catalogue and permissions and uses canonical workflow creation, stopped in dry run. Existing recipes, workflow controls and the run Inspector remain available.
The engine and assembly compiler support bounded branches through canonical if
and skip actions.
Add an If / else action and configure its all-match conditions using the
same canonical JSON condition schema shown for workflow conditions. Choose a
True target and a False target from later steps or End. Ordinary steps have one
Next target; two paths rejoin by choosing the same later step. Nesting is limited
to three branches. The compiler creates internal skip positions; they are never
selectable actions. Cycles, unlabelled branch edges, disconnected steps, partial
overlapping paths and lifecycle expansion are refused. A branch must have a
nonempty arm. Existing action and wait budgets include both arms.
Compile for review shows the canonical errors and prerequisite findings, True
and False starting positions, and rejoin positions. Every edit invalidates this
review. A dry run records the chosen path as branch_taken: then or else in
run history, with skipped positions; dry run sends no provider effects.
Saved graph context preserves node and edge IDs, targets and labels. Inspect saved sequence restores that context and validates it against the compiled positions. Missing or mismatched context opens read-only with a reason; Rebuild as a new draft starts an empty graph rather than guessing paths. Editing and saving always creates a new stopped dry-run copy.
Graph context is persisted with canonical workflow saves (migration 13532).
The composer sends context only when the assembly catalogue advertises
persistsGraphContext: true. Before adoption it explicitly reports that saved
copies without context will open read-only. The QAC assembly catalogue reports
topology: branching and the same limits used by compilation.
Only lifecycle_actions remains held. Agent decisions (agent_decision), remote
commands (remote_command) and outgoing webhooks (webhook_out) are selectable
and configurable. Existing schema limits still apply: agent decisions and remote
commands require separate workflows.
Compilation returns node-scoped typed prerequisite findings (severity, code,
message). A failed prerequisite returns valid: false with no workflow proposal;
MCP also marks that result as an error. Other schema/topology and authorization
failures keep their existing HTTP behavior. All successful proposals and saved
copies are STOPPED (enabled: false) and dry-run (dryRun: true).
- Webhooks: canonical checks require an endpoint in this organization, exclude
persona endpoints, and require the caller's
org:manage_integrationspermission. Live delivery still needs the webhook feature, enabled endpoint and matching subscription/event. A compile result does not promise delivery. - Remote commands: the machine and explicit grant binding must resolve in the organization and the caller must be able to see the machine. Compilation reads bindings without creating setup grants. Enabling live execution requires the workflow creator's delegated-key approval of the saved revision and current machine permissions/consent; approval is never inherited by a copy.
- Agent decisions: a new copy has no current revision grant. It compiles with
needs_agent_grantandcurrentAgentGrant: false. Before enable, arrange the existing delegated revision and human grant on that exact saved revision, plus the selected model/daemon setup. A source workflow's grant never transfers to the new copy. Runtime authority, expiry and setup checks remain canonical.
Compilation and saving never enable, grant, launch, send or run an action. Current schema and creator permission checks remain canonical, never implicit grants. Source implementation awaits configured independent review and normal release acceptance.
REST catalogue requires crm:read. Compile requires crm:edit and current credential write admission; canonical save rechecks creator authority and tenant references. The assembly MCP group shares CRM/automations/CRM API flags and original credentials, excludes runner keys, and requires write-scoped POST protocol admission even for advisory compilation. Neither assembly tool saves, enables, runs, sends or calls a provider/model. The assembly routes and MCP tools are mounted in the production app under these gates. Stop-one-run is also registered in the automation MCP group and the CRM API-key route family. Schedule, inbound webhook, versions/archive and run-health proposals are not adopted in this batch.
- API reference
- MCP tool reference
- Runbook: Runbook
HTTP request, sandboxed JavaScript (code) and field mapping (set_data) are
selectable actions with typed forms and an Edit as JSON toggle. The older
sequential builder also offers a typed wait duration and continuation validation.
HTTP credentials use organization vault references; code runs in QuickJS; mapping
uses parsed templates over prior outputs. See the safety model.