Workflows
Create Workflow
Create a multi-step calling workflow with conditional logic.
POST
Create a workflow
A workflow is a sequence of steps (nodes) connected by transitions (edges) that a lead moves through over time. Each node can be a voice call, a time delay, a conditional branch, or an application action. The outcome of each step determines which path the lead takes next.
When to use workflows
Workflows are ideal for:- Lead nurture sequences: Call a lead, wait 2 days, call again if no answer, then mark them as unresponsive after 3 attempts.
- Re-engagement drips: Try a prospect twice, then route them to a different agent script if there is still no answer.
- Conditional follow-ups: After a first call, if the lead said “interested”, route them to a booking agent; if they said “not interested”, mark them as closed.
Workflow vs. campaign
| Campaign | Workflow | |
|---|---|---|
| Structure | Flat, where all leads get the same calls | Multi-step with conditional branching |
| Lead progress | Linear | Moves through nodes based on outcomes |
| Best for | Simple bulk outreach | Drip sequences and decision-tree calling |
Getting started
- Create the workflow with this endpoint.
- Add nodes via Create Node, with one node per step.
- Connect nodes via Create Edge to define transitions.
- Enrol leads via Add Workflow Lead.
- Activate the workflow via Activate.
Request
Response
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Body
application/json
Response
201 - application/json
Created.
Example:
"wf_abc123"
Example:
"org_xyz"
Example:
"Lead Nurture Sequence"
Example:
"Contacts cold leads three times before marking as unresponsive."
Workflow lifecycle status. Responses can include running for older workflow records; treat it like active. Use active in new create or update requests.
Available options:
draft, active, running, paused, completed, cancelled Example:
"active"
Example:
"2024-03-01T09:00:00.000Z"
Example:
"2024-03-02T11:00:00.000Z"
Create a workflow