# Build a workflow

Source: https://aicallstudio.com/docs/workflows/build-a-workflow

Make something happen on its own when a contact arrives, a call ends or is missed, or a customer writes back.

## Before you start

- The connection the workflow sends through: WhatsApp, SMS, email, a webhook or your CRM.
- Messages a workflow sends are charged to the account that sends them.

## 1. Open Workflows

Workflows lists what happens on its own when a contact arrives, a call ends or is missed, or a customer writes back, and shows which of those are failing.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 2. Build it: what starts it, and the steps that follow

A workflow is what starts it and the steps that follow, joined in order. A step joined to several steps runs all of them, and a Wait pauses only the steps after it.

Your edits are not live until you press Save. Apply in a step's settings only changes the canvas.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 3. Test it

Test workflow, and Test from here on a step, are rehearsals: nothing is sent, nobody is called and no contact is changed.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 4. Switch it on

Only an active workflow runs, and only from the moment you switch it on. It does not act on contacts or calls from before.

A workflow that cannot run will not switch on: the issues count in the top bar lists what is missing.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 5. Read why a run failed

A run fails when any step did not do its job, such as a message the channel refused, or plain WhatsApp text to a customer who has not written to you in the last 24 hours. Open Run history from the row's menu to see which step and why.

A step marked unknown reached the provider, which never answered: it may have gone out, so it is not sent again.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## Every field

- **Trigger**: What starts a workflow: a contact arriving, a call ending or being missed, or a customer writing back.
- **Wait**: Pauses only the steps after it.
- **Test workflow**: A rehearsal: nothing is sent, nobody is called and no contact is changed.
- **Run history**: Each run, with the step that failed and why.
- **Agent sends during a call**: The trigger that lets an agent send a caller something during the call.

## Costs and what to watch

- A switched-on workflow sends real messages and places real calls.
- A workflow whose connection was disconnected stays on, but those steps send nothing until you reconnect it. Each run they are in fails.
