# Workflows

A workflow is a small program: when something happens, do these things in order, with optional branches.

## Triggers

| Trigger | Starts when |
| --- | --- |
| Contact created | A contact is added or imported |
| Contact updated | A tracked field changes |
| Message received | An inbound message matches the conditions |
| Conversation status | A thread is opened or resolved |
| Form submitted | A confirmed form submission arrives |
| Schedule | A time or recurring window |
| Manual | A person or API starts it |

## Steps

- **Send** on WhatsApp, SMS or email, inline or with a template.
- **Wait** for a duration or until a time of day.
- **Branch** on a field, tag, channel or response.
- **Tag / group** a contact.
- **Assign / status** a conversation.
- **Webhook** to your own endpoint with a signed request.
- **Stop** the run.

Every send step uses the same shared submission path as the API, so consent, suppression, pricing and delivery evidence behave identically.

## Versions and testing

A workflow has a draft and published versions. Publishing freezes the graph; later edits are a new draft. A test run walks the graph with sample values and shows each step's result without sending to a real recipient where the step supports it.

## Runs

**Dashboard → Workflows → Runs** lists each run with its trigger, status and steps. Open a run to see the exact input, the branch taken and any refusal. A run can be retried when the failure is known to be unsent.

## Limits

- A workflow cannot exceed the run and step limits of the workspace.
- Loops are bounded; a workflow that would spin is stopped.
- A published version cannot be edited in place.
- Provider failures are recorded, not hidden by a retry that could double-send.

## Related

- [Automation](/docs/automation)
- [Drips](/docs/drips)
- [Webhooks](/docs/webhooks)
