> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an Automation

> Start a new Automation by describing it to Ask Duvo or from an empty one, then add its Agents and Queues, connect it, and run a test.

Every new process starts as an Automation. You can describe the process and let Ask Duvo build it, or start from an empty Automation and build it yourself.

## Start the Automation

Click **Create Automation** at the top of the **Automations** page and choose how to start.

![The Create Automation menu with Describe automation and Create empty automation](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/create-automation-menu.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=9a757ee7f60d7e05ea80d4446957cf9b)

> [tab] Describe automation
>
> Opens the **Add an Automation** page. Choose **Start empty**, then describe the work you want to automate in your own words: what comes in, which systems are involved, what should happen and who needs to approve what. [Ask Duvo](https://docs.duvo.ai/user-guide/assignment-features/ask-duvo.md) proposes the Agents, Queues and AOPs, asks about anything it needs, and builds the Automation once you agree.
>
> Use this when you know the process but not yet how to split it into Agents. If your team has Clarity, **Map the process first** lets you capture the process before you automate it.
>
> > [!NOTE]
> >
> > Describing the work needs Ask Duvo on your team. Without it, **Start from scratch** creates an empty Automation.

> [tab] Create empty automation
>
> Name the Automation and click **Create**. Duvo adds its first Agent and opens it, ready for you to write its AOP.
>
> ![The Create Automation dialog with Month-End Accruals as the Automation name](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/create-automation-dialog.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=e242b7661a18054689495c630a3fcb88)
>
> Use this when you already know which Agents you need.

## Build it out

An empty Automation starts with one Agent. Most processes need a few more steps. Work through them in this order, because each one depends on the one before:

**1. Check your Connections**

Make sure the systems the process uses, such as a mailbox or an ERP, are connected. See [How to add a Connection](https://docs.duvo.ai/user-guide/connections/how-to-add-connection.md).

**2. Set up the first Agent**

Write its AOP (Agent Operating Procedure) and add the Connections, Skills and Files it needs. Everything in [Building Agents](https://docs.duvo.ai/user-guide/building-assignments/how-to-build-an-assignment.md) applies.

**3. Add Queues and more Agents**

On the **Automation** tab, use **Add** to create the Queues and Agents the process needs. In each Agent's setup, the **Queue** section sets which Queue it adds Cases to and which Queue's Cases it processes. See [Agents and Queues](https://docs.duvo.ai/user-guide/automations/agents-and-queues.md).

**4. Add Policy variables**

Put the values your team will want to change, such as thresholds, mailboxes and approvers, in [Policy variables](https://docs.duvo.ai/user-guide/automations/policy-variables.md), and give each Agent the variables it needs by mentioning them with `@` in its AOP or turning them on in the **Policy** section of its setup.

**5. Run a test**

Start a test Run from the Admin cockpit, or add one test Case to the first Queue, and check the result in [Past Runs](https://docs.duvo.ai/user-guide/automations/runs-and-requests.md).

**6. Turn on schedules and triggers**

Once the test looks right, add a schedule or trigger to the Agent that starts the process. See [Scheduling](https://docs.duvo.ai/user-guide/assignment-features/scheduling-assignments.md) and [Event-driven triggers](https://docs.duvo.ai/user-guide/assignment-features/event-driven-triggers.md).

**7. Give people their roles**

Add the people who work with the process on the [People](https://docs.duvo.ai/user-guide/automations/people-and-roles.md) tab.

The Admin cockpit's **Get started** section tracks these steps for you: it shows a card for each one that's still open, such as **Add Connections to your Agents**, and the card disappears once the step is done. The **Test run your automation** card stays until you dismiss it. Dismiss any card you don't need.

## Run a test

![The Test run your automation card in the Get started section of the Admin cockpit](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/admin-cockpit.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=2c62654990bad2e9bc11c3293768adce)

Click **Test run** on the **Test run your automation** card, pick the Agent to run, and start its Run.

> [!WARNING]
>
> A test Run works on real data. It reads and changes the same emails, files and apps a live Run does. Use test records in your connected systems, or point the Agent at a test mailbox or folder first.

## Change an Automation later

* **Edit automation** at the top of the Admin cockpit opens Ask Duvo with the Automation's flow, so you can describe a change and let Duvo make it. Without Ask Duvo, it opens the flow so you can change it yourself.
* Open any Agent to edit its AOP, Connections, schedules and triggers directly.
* Change a Policy variable to change a rule without editing any Agent. Agents read the new value on their next Run.

> [!TIP]
>
> You can also build an Automation from the terminal. [Automations in the CLI](https://docs.duvo.ai/cli/automations.md) covers the same build order with `duvo` commands.

## Related

> [card] [Agents and Queues](https://docs.duvo.ai/user-guide/automations/agents-and-queues.md)
>
> Add and wire the steps of the process.

> [card] [Admin cockpit](https://docs.duvo.ai/user-guide/automations/admin-cockpit.md)
>
> Follow setup and health from one page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.