Skip to content

Workflows

A workflow is a set of steps on a canvas that runs over minutes, hours or days. Use it for the work around a conversation: reminders, follow-ups, approvals, updates to your systems, and anything that must happen when the customer is no longer talking to you.

Each time a workflow starts, it creates a run. Runs are tracked step by step. A run can wait for a time, an event, a reply or a person, can be approved or rejected, retries steps that fail, and can be cancelled.

Workflows live under Library → Workflows in the console, and usually inside a use case together with the agents they work with. New to workflows? Try the workflow quickstart.

You build a workflow by dragging steps from the palette onto the canvas. There are nine categories.

Category What it is for Steps
Triggers How a run starts Channel inbound, API / webhook, Business event, Schedule, Started by an agent
Agents AI and human workers. Each AI step uses an agent from your library Conversational agent, Task agent, Router agent, Supervisor agent, Human agent
Logic Rule-based branching, fan-out and reuse. No model decides here Decision (rules), Condition, Parallel, Join, For each, Sub-workflow
Actions Your systems, knowledge and data MCP tool, Knowledge lookup, Data mapper, Compute
People Approvals, manual tasks and escalation Approval, Human task, Escalation
Time and events Waits that can last days Wait, Wait for event
Messaging Messages, forms, calls and notifications Send message, Collect form, Outbound call, Notify
Governance Policy, consent, identity, privacy and audit Policy check, Consent, Identity check, Mask PII, Audit checkpoint
Context and control Shared context, customer-safe status, errors and endings Read context, Write context, Status update, Error handler, End

A workflow can have up to 200 steps and 600 connections.

Several beta steps ask a channel, an agent or another service to do the work, then wait for the result. While the run waits, the step shows as waiting in the run view. If a result does not arrive, you can complete the step by hand from the run view (Complete step), choosing the outcome. In the test window you play these parts yourself.

To reach customers or your own systems from a live run today, call them through an MCP tool step, for example a tool on your messaging or CRM service.

Steps are joined by connections. Each connection has a kind.

Kind Meaning
Next Continue to the next step.
Branch One labelled outcome of a decision, condition, approval or wait, such as approved or timeout.
On error Taken when a step fails after its retries.
Handoff Conversation ownership moves to another agent, with a handoff packet (reason, summary and fields you choose).
Consult The current agent asks another agent in the background and keeps the customer.
Return Hands the conversation back to the agent that handed it over.

Next, branch and on-error connections make up the process: the order in which steps run. Handoff, consult and return connect agent steps to each other and decide who talks to the customer.

A step with several outcomes (for example Approval: approved, rejected, timeout) has one port per outcome. Steps that list their own outcomes, such as a Decision or a Human task, get one port per value you enter.

  • A trigger has nothing pointing into it, and an End step has nothing leaving it.
  • A workflow needs at least one trigger. Steps that no trigger reaches, and outcomes left unconnected, are flagged as warnings.
  • A loop must pass through a step that waits (a timer, an event, a person or a conversation), so a run cannot spin without pause.
  • When a step runs out of time it takes its timeout outcome if it has one, otherwise its on-error connection. With neither, the run fails.

Problems are listed in the builder. A workflow with errors cannot be submitted for review; warnings do not block it.

Open Workflow settings from the builder toolbar.

Setting What it does
Time zone Used for schedules, opening hours, contact hours and rule dates, for example Asia/Kolkata.
Contact hours When steps that respect contact hours may call or message customers, for example Mon-Sat 09:00-21:00. Empty means any time.
Step limit The most steps one run may take (10 to 1000). A run that goes over fails.
Handoff limit The most handoffs in one conversation before it goes to a person (1 to 20).

Workflow Assist builds or changes a workflow from a description. Click Create with Assist on the Workflows list, or Assist in the builder.

  • Describe what the workflow should do in plain words. You can attach documents (PDF, DOCX, TXT, MD) and mention other workflows with @.
  • On a new workflow, Assist builds the steps on the canvas as it answers.
  • On an existing workflow, it shows the changes and what they affect first, and applies them only when you click Apply. Turn on Always ask first to see the plan before every change.
  • After applying, click Keep or Undo all. Kept changes are unsaved edits: save the draft, then submit it for review.

Assist may not be included in every plan. Nothing Assist does is published without review.

  • You edit a draft. Saving a draft does not change what runs.
  • Submit for review checks the draft and freezes it for review. A colleague with publish rights sees exactly what changed and either clicks Approve and publish or requests changes with a reason. You cannot approve your own submission.
  • Each approval publishes a new version. Only the live version runs for customers and your systems.
  • A run keeps the version it started with until it ends, even if a newer version is published meanwhile. New runs use the newest version.
  • History lists published versions and past reviews. Published versions never change. Restore copies an old version into the draft, which you then submit for review.

See Publishing and versions.