# How flows work

> Build, test, publish and measure flows that act on their own when something happens, or guide a customer through a conversation.

Source: https://docs.komplian.com/flows/overview

Where: Flows → Flows
Who: Owners, admins and managers build flows. View-only people only read them.
Plan: Growth+

A flow does work for you without anyone pressing a button. There are two kinds: workflows, which react to events, and conversational flows, which guide a customer through a conversation with buttons.

## Choose the kind of flow

Press **New Flow**. Komplian asks **What do you want to build?**

| Kind | Use it for |
| --- | --- |
| **Workflow** | Welcome messages, follow-up tasks, alerts to your team, sending data to other tools. |
| **Conversational flow** | Surveys, review requests and guided questions on WhatsApp, Instagram, Messenger, Telegram or your web chat. See [Conversational flows](https://docs.komplian.com/flows/conversations). |

The list has two tabs, **Workflows** and **Conversational**. Filter each by **All**, **Active**, **Draft** or **Paused**.

## How a workflow runs

A workflow is a chain of steps on a canvas:

- one [trigger](https://docs.komplian.com/flows/triggers) that decides when it starts;
- [actions](https://docs.komplian.com/flows/actions) that do the work;
- [conditions and waits](https://docs.komplian.com/flows/conditions) that choose the path and the timing.

Each time the trigger fires, one run starts and follows the steps for that contact.

## Build a workflow

1. **Nodes**: drag triggers, actions and control steps onto the canvas.
2. The trigger that starts the flow.
3. A wait: each run pauses here.
4. A condition, with a **Yes** path and a **No** path.
5. **Analytics**, **Test**, **Run now** and **Pause**.

### 1. Create it
Press **New Flow**, choose **Workflow** and press **Create**.

### 2. Add the trigger
The flow opens as a list of steps. Press **Choose a trigger** and pick it.

### 3. Add the next steps
Press **+** where you want the step and pick it from the list. It is connected to the step before it.

### 4. Configure each step
Click a step and fill its settings. A step that still needs settings shows **Needs setup**.

### 5. Save
Press **Save**. The flow stays a draft until you publish it.

**Steps** and **Canvas**, above the editor, switch the view. On **Canvas** you drag steps from **Nodes** and connect them by hand, as the picture above shows. Komplian remembers the view you chose.

If a step sends on a channel that is not connected, or an email with no mailbox connected, the step says so with a button to connect it.

## Create a workflow with AI

### 1. Open the AI builder
Press **Create with AI**.

### 2. Describe the automation
Write what should happen, for example "When a cart is abandoned, wait 1 hour and send a reminder". Press **Generate**.

### 3. Review the result
Check the trigger, the steps and the connections. **Regenerate** tries again with the same description.

### 4. Create it
Press **Create flow**. The flow opens as a draft for you to finish and test.

Generating a flow uses [AI credits](https://docs.komplian.com/settings/billing).

## Start from a blueprint

**Templates** opens **Flow blueprints**, ready-made workflows you can copy and change.

| Blueprint | What it does |
| --- | --- |
| Post-Purchase Thank You | Sends a WhatsApp thank-you after an order. |
| Abandoned Cart Recovery | Sends WhatsApp reminders and a coupon to people who left a checkout unfinished. |
| Order Tracking | Sends tracking information and a follow-up after an order. |
| Welcome New Lead | Greets every new lead on WhatsApp and tags them. |
| VIP Customer Coupon | Sends a coupon for orders over 100. |
| Status Change Follow-up | When a lead becomes Qualified, tells the team and creates a follow-up task. |
| Tag-based Nurture | Starts a short follow-up sequence when a contact gets a tag. |
| Support Auto-acknowledge | Answers every incoming message at once and assigns it to an agent. |
| New Conversation Routing | Assigns every new conversation to an agent and creates a task. |
| Service Follow-up Reminder | Schedules a follow-up reminder when a new lead asks for a service. |

## Test a workflow

The editor has two buttons to run a workflow: **Test** opens **Test this flow**, and **Run now**, shown while the flow is active, opens **Run this flow now**.

| Option | What it does |
| --- | --- |
| **Test this flow** | Runs the flow for real and sends to the test contact you enter: **Contact name**, **Test email** and **Test phone (WhatsApp)**. Waits are skipped so the whole flow runs at once. Test runs are not counted in the results. |
| **Run this flow now** | Runs the active flow for real for the contact you enter. Waits are respected, so later steps can take time to arrive. |

> [!WARNING]
> Both options send real messages. Use your own email and phone as the test contact.

## Send a workflow to contacts

A published workflow can also be run for the contacts you choose, without waiting for its trigger.

### 1. Open the send
Press **Send to contacts** on the flow's row or in its editor.

### 2. Choose who gets it
Pick contacts one by one, a group by **Tags** or **Stages**, or **Every contact**.

### 3. Review and send
Komplian says how many contacts it runs for and how many are left out. Press **Send to contacts**.

- Contacts the flow cannot reach are left out: no email if the flow sends email, no phone if it sends WhatsApp.
- Whoever already went through the flow does not go through it again. Sending again only reaches new contacts.
- Emails of these sends carry an unsubscribe link, and whoever uses it is not written to again.
- The send works in the background. **Sends**, in the same window, shows how many contacts entered the flow, how many were left out and why. If the mailbox reaches its daily limit, it waits and carries on the next day.

## Publish, pause and delete

| Action | What it does |
| --- | --- |
| **Publish** | Turns the flow on. From now on, every time the trigger fires a run starts. Publishing is refused when your plan's active-flow limit is reached. |
| **Pause** | Stops new runs. **Resume** turns it back on. |
| **Duplicate** | Creates a copy of the flow. |
| **Delete flow** | Removes the flow. This cannot be undone. |

If a module the flow needs is switched off, the flow shows **Paused** or **Waiting**. It runs again, as published, when the module is back on. A run that waits more than 7 days for the module is cancelled.

## Read the results

In the list, open a flow's menu and choose **View Analytics**, or press **Analytics** in the editor. Pick the last 7, 30 or 90 days, or any two dates. The page opens on the last 30 days.

| Number | Meaning |
| --- | --- |
| **Started** | Runs that the trigger started in the period. Test runs do not count. |
| **Finished** | Runs that reached the end. |
| **Did everything** | Finished with every action done. |
| **Skipped a step** | Finished, but an action was skipped: no recipient, or a channel that is not connected. The list of flows counts these in **Undelivered runs**. |
| **Failed** | Stopped by an error. **Why they failed** groups the reasons. |
| **In progress** | Still running, for example inside a wait. |
| **Cancelled** | Stopped before the end. |
| **Median duration** | How long a typical run takes. |

**Compact**, **Expanded** and **By step** change the view. **By step** shows how many runs reached each step and what happened there. **A/B test** compares the variants of an [A/B Split](https://docs.komplian.com/flows/conditions#decide-the-path). Each run in the list opens to show every step it went through.

## Limits

| Plan | Active flows |
| --- | --- |
| Starter | Not included |
| Growth | 5 |
| Pro | 10 |
| Enterprise | 25 |

## Related

- [Triggers](https://docs.komplian.com/flows/triggers): What starts a workflow.
- [Actions](https://docs.komplian.com/flows/actions): What a workflow can do.
- [Conditions and waits](https://docs.komplian.com/flows/conditions): Choose the path and the timing.
- [Conversational flows](https://docs.komplian.com/flows/conversations): Conversations with buttons.
