# Building Workflows

Create automation workflows with triggers, conditions, and actions

import Shot from "../../../../components/shot.astro";

Build automated workflows using Qwetty's visual node-graph builder. An automation is a graph: it starts with a **trigger** node, then branches through condition and action nodes that you connect together on a canvas.

<Shot name="automation-editor" alt="Automation editor with a trigger, a condition branch and actions" />

## Node categories

Nodes are grouped into eleven categories. For every node's settings, branches and outputs, see the [Nodes Reference](/en/automations/nodes-reference).

| Category | What it does |
|----------|--------------|
| **Triggers** | Starts the workflow (see the trigger list below) |
| **Send** | Sends a message or a template, or schedules a message |
| **Chat** | Acts on a chat — assign, take over, return to bot, mark read, notify an agent |
| **Contact** | Tags, untags, or updates a contact |
| **Broadcast** | Sends a broadcast |
| **Conditions** | Branches the flow based on a check — message contains, message type, channel, contact tag, contact field, who handles the chat, business hours |
| **AI** | AI steps — detect sentiment, detect language, classify, summarize chat, extract fields, translate, describe image, transcribe audio |
| **Delays** | Waits a fixed time, until a time, or until business hours |
| **Waits** | Pauses until a reply or an event |
| **Integrations** | Calls an action on a connected integration — Google Sheets, Google Drive or Chat Pipeline. See [Integrations](/en/integrations/overview#integrations-in-automations) |
| **End** | Ends the run |

## Triggers

A workflow begins with one trigger. Available triggers are:

- Message Received
- Chat Created
- Chat Assigned
- Chat Taken Over
- Chat Returned to Bot
- Chat Closed
- Chat Reopened
- Contact Created
- Contact Updated
- Contact Tagged
- Broadcast Completed
- Integration Connected
- Integration Disconnected
- On Schedule (run on a recurring schedule)

## Creating an automation

1. Go to **Automations** and click **Add Automation**
2. Name the automation, then click **Add a trigger** to start the graph
3. Add nodes by clicking **Add step** on a node's outlet and choosing from the node picker
4. Connect nodes to define the flow
5. Click **Save**, then **Activate**. If something is missing, open **Problems** to see what (see [Runs and Versions](/en/automations/runs-and-versions#checking-for-problems))

Once an automation is active (or paused), saving keeps your edits as a draft: click **Save draft**, then **Publish** to make them live. Until you publish, the automation keeps running the last published version. Earlier published versions are listed under **Versions**, where you can preview and restore them.

## Testing automations

Click **Test run** in the editor to run the steps against a real chat or contact without sending or changing anything.

Each automation also has a **Run history** page — open it with **View Runs** in the automation's row menu on the list. There you can see each run's status and steps, retry a failed run from the failed step, or cancel runs in progress. See [Runs and Versions](/en/automations/runs-and-versions) for test runs, run statuses and step details.

## Next steps

- [Nodes Reference](/en/automations/nodes-reference) — Every trigger and step, with its settings
- [Runs and Versions](/en/automations/runs-and-versions) — Test, publish and follow runs
- [Automation Examples](/en/automations/examples) — Ready-made recipes
- [Automations Overview](/en/automations/overview) — Automation fundamentals
- [Integrations Overview](/en/integrations/overview) — Connect the tools that integration steps use
