Skip to main content
A conversation created with workflowId (or picked up by your project’s automation) runs the configured workflow. Steps that wait for the customer surface in three ways: as a BOT message in the conversation, as a workflow.step.presented event, and via the pending-step endpoint.

Read the pending step

step is null when nothing is waiting for the customer (internal steps auto-run). action carries the same structure the Gleap widget renders from — text, options, input configuration, attribute definitions for form steps.

Answer the step

One field per step kind: The endpoint returns 202 — the workflow advances asynchronously; follow it via workflow.step.presented / message.created events or by re-reading the pending step.

Run a workflow on an existing conversation

Replaces any active workflow on the conversation and reopens it for the customer. Only live workflows can run; drafts return workflow_not_found.

List available workflows

workflow.completed fires when a workflow ends — reason: "completed" for a normal end (including close steps) or reason: "handed_off" when it passed the conversation to an AI agent or your team.