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

# Past Runs and Requests

> Follow each piece of work an Automation did, from the trigger that started it to every Agent Run and Case behind it, and answer the questions and approvals it's waiting on.

Every Automation keeps a history of its work on **Past Runs** and a list of what it's waiting on from you on **Requests**. Both are under **Manage** in the Automation's navigation. In the team sidebar, **Past Runs** lists individual Agent Runs from every Automation, and **Requests** collects every request waiting on you.

## What counts as one run

An Automation run is one piece of work, followed from start to finish across the Agents it passes through. It starts when something triggers work and ends when that work is done or waiting.

* A schedule that starts an Agent once is one run.
* When that Agent adds three Cases to a Queue, the first Case's processing continues the same run, and each of the other two starts a run of its own.
* When a Case moves on to the next Agent, a retry happens, or someone answers a request, the work continues in the same run.

In the invoice example, matching one invoice and then chasing the supplier about a price mismatch is one run with two Agent Runs inside it.

## Past Runs

![Past Runs for Invoice Processing, listing invoice Cases and Schedule Trigger runs with their status, trigger, start time and duration](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/past-runs.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=073c1bba59bfe767843ca9591c81640e)

Choose how to read the history:

> [tab] By Run
>
> One row per Automation run, newest first. A run working on a Case is named after the Case, such as **Invoice INV-88835 from Baltic Packaging**. Columns show **Status**, **Trigger**, **Created by**, **Started** and **Duration**.
>
> Statuses match the Case or Run behind the row: **Success**, **Completed**, **Needs Input**, **Failed** and the others described in [Queue](https://docs.duvo.ai/user-guide/assignment-features/case-queue.md#case-statuses).

> [tab] By Trigger
>
> One row per thing that started work: a schedule firing, a Case trigger or someone starting a Run. Expand a row to see the runs it led to. Use this view to answer "what happened when the 9:00 schedule ran?".
>
> ![Past Runs grouped by trigger, with Case trigger and Schedule Trigger rows](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/past-runs-by-trigger.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=a0221f09230f8b8c80fa3251bffea17a)

**By Run** shows runs started in the last 30 days. Click **Show all history** below the list to see older ones.

### Open a run

Click a run to see what happened.

![The detail of a price mismatch run: Case trigger, started Nov 23, 13m 48s duration, 2 runs, latest run Completed, and the Case data with invoice number, supplier, PO number, amount and the price difference](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/automation-run-detail.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=801472781b7d2c302ef4548f98b293ba)

* **Run Details** sums the run up: what triggered it, when it **Started**, its **Duration**, how many Agent **Runs** it took, and the status of the **Latest run**.
* **Case Data** shows the Case the run worked on. Switch between the readable view and raw data with the buttons above it.
* Further down, the Cases the run touched and its activity show each step, so you can see where a failed run stopped.

Use the arrows next to the status to move to the previous or next run without going back to the list.

## Requests

When a Run needs a person, such as an approval above a threshold or a question it can't answer on its own, it pauses and sends a request. The Run's status and its Case show **Needs Input** until someone answers.

![The Requests tab with a list of approval requests from the Three-way match Agent and one request open, showing the Run's steps and a Request for Approval card with Approve, Decline and Add a note](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/requests.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=7734a7b3ce164db8b8a72e8110f2f85b)

**1. Open the request**

Pick a request from the list. Answered requests are dimmed. The filter narrows the list.

**2. Read what the Agent did**

The right side shows the Agent, the Case it's working on, and the steps it took before it asked, so you have the context to decide.

**3. Answer**

Click **Approve** or **Decline**, and the Run continues. **Add a note** sends the Agent guidance or a question first; the request stays open until you approve or decline it.

Who gets a request depends on how the Agent asks. A request goes to the person who started the Run, or to the team members the AOP @-mentions as approvers. If nobody named can answer, it goes to the team's Owners and Administrators. For designing good approval steps, see [Human-in-the-loop](https://docs.duvo.ai/user-guide/assignment-features/human-in-the-loop.md) and [When to ask a human](https://docs.duvo.ai/best-practices/when-to-ask-a-human.md).

## Related

> [card] [Retries and failures](https://docs.duvo.ai/user-guide/reliability/retries-and-failures.md)
>
> What happens when a Run fails, and how to recover.

> [card] [Notifications](https://docs.duvo.ai/user-guide/reliability/notifications.md)
>
> Get told when a Run fails or a Connection breaks.


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