> ## 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.

# Agents and Queues

> Use the Automation tab to see how an Automation's Agents and Queues hand work to each other, add new ones, and open each one to change it.

The **Automation** tab, under **Manage** in an Automation's navigation, shows every Agent and Queue in the Automation and how work moves between them. The navigation also lists them by name under **Agents** and **Queues**, so you can jump straight to one.

## Flow view

**Flow** draws the process as a graph. Agents are boxes with the icons of the Connections they use; Queues are the rounded boxes between them, with the number of Cases waiting. Arrows show where an Agent adds Cases and which Agent processes them.

![The flow of Invoice Processing: Invoice intake adds Cases to Invoices to match, Three-way match processes them and adds exceptions to Match exceptions, which Supplier follow-up processes](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/automation-tab-flow.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=847044d167145031f3bf0f534b32ca31)

Click an Agent or Queue to open its details beside the graph. The rest of the flow fades, so you can see what it connects to.

![The Three-way match Agent selected in the flow, with a side pane listing its Connections, the Queues it adds to and processes, its trigger and its AOP](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/automation-tab-agent-pane.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=ba579909990518eb84057f06c3e40499)

An Agent's pane shows its **Connections**, its **Queues** (which it **Adds cases to** and which it **Processes cases from**), its **Schedules & Triggers** and its AOP. A Queue's pane shows which Agents **Add cases** and which **Process cases**. Click **Edit** to open the Agent's full page.

Use the zoom controls in the corner to zoom in, out, or fit the whole flow.

## List view

**List** shows the same members as two tables with their numbers.

![The list view with an Agents table showing schedules, total Runs, Needs Input, Critical, Failed and Success Rate for each Agent, and a Queue table with each Queue's producers, consumers and Case counts](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/automation-tab-list.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=0bda26d5077700dad2d6a7c41874fc93)

| Table | Columns |
| - | - |
| **Agents** | **Schedule & Triggers**, **Created by**, **Total Runs**, **Needs Input**, **Critical**, **Failed**, **Success Rate** |
| **Queue** | **Adds cases**, **Processes cases**, **Total Cases**, **Pending**, **Postponed**, **In Progress**, **Needs Input**, **Critical**, **Failed**, **Success Rate** |

Use the list to spot the step that fails most or the Queue where work piles up.

## Add Agents and Queues

Click **Add** at the top of the tab.

![The Add menu with Create new agent and Create new queue](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/automation-tab-add-menu.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=05ece42e7c2d97d4419b8b39df79408e)

* **Create new agent** adds an Agent to this Automation and opens it so you can write its AOP.
* **Create new queue** adds a Queue to this Automation.

To connect them, open the Agent and use the **Queue** section of its setup: choose a Queue the Agent adds Cases to, a Queue whose Cases it processes, or both. An Agent that processes a Queue has a **Run on new cases** trigger under **Triggers**. Turn it on so the Agent starts whenever a Case arrives.

In the list view, a member's **...** menu renames it or deletes it.

> [!WARNING]
>
> On this tab, deleting an Agent or Queue deletes it from your team, not only from the Automation. It stops running at once.

## Open an Agent

Click an Agent in the navigation, the flow or the list to open its page inside the Automation. It's the same Agent page you know from [Building Agents](https://docs.duvo.ai/user-guide/building-assignments/assignment-builder.md), with **Configuration**, **Memory**, **Past Runs**, **Evaluations** and **My Settings** tabs, and the breadcrumb shows the Automation it belongs to.

![The Three-way match Agent page with its AOP on the left and, on the right, its Connections, the Queues it processes and adds to, and its Run on new cases trigger](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/agent-in-automation.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=f0bb63234d27412f6f24fef12f2fb19e)

The Agent receives the Automation's [Policy variables](https://docs.duvo.ai/user-guide/automations/policy-variables.md) that its AOP mentions with `@` or that are turned on in the **Policy** section of its setup, such as the **Price tolerance** and **Auto-approve threshold** this AOP works with. Use **Run Agent** to start a Run by hand.

## Open a Queue

Click a Queue to open its Cases.

![The Invoices to match Queue with Invoice intake adding Cases and Three-way match processing them, status counters, and a list of invoice Cases with Success, Needs Input and Failed statuses](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/queue-in-automation.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=7b6b4ab140f2128ed15927f9dacf5aa4)

The header shows which Agents add Cases to the Queue and which process them. The counters below filter the list by status: **Pending**, **Postponed**, **Canceled**, **In progress**, **Needs input**, **Failed** and **Completed**. Search and **Add filter** narrow it further. Open a Case to see its data and history. [Queue](https://docs.duvo.ai/user-guide/assignment-features/case-queue.md) explains Case statuses and operations in detail.

## Related

> [card] [Past Runs and Requests](https://docs.duvo.ai/user-guide/automations/runs-and-requests.md)
>
> Follow the work the Agents did.

> [card] [Queue](https://docs.duvo.ai/user-guide/assignment-features/case-queue.md)
>
> Case statuses, triggers and operations.


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