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

# Manage Agents

> Manage Cashfree Relay agents from the Merchant Dashboard: view runs, edit logic, activate or pause, and delete unused agents.

Manage your Relay agents from the dashboard: edit, activate, deactivate, delete, and monitor them from the **Agents** and **Runs** tabs.

## Edit an agent

You can edit an existing agent from either the **Agents** tab or the **Runs** tab. Editing opens the same canvas used during creation, where all components, including the trigger, nodes, and conditions, are editable.

### Edit from the Agents tab

To edit an agent from the Agents tab, follow these steps.

1. Log in to the [Merchant Dashboard](https://merchant.cashfree.com/auth/login) and go to \*\* Relay > View my agents\*\*.
2. On the **Agents** tab, click the name of the agent you want to edit. The agent canvas opens.
3. Make the required changes to the trigger, nodes, or conditions.
4. Click **Save** to apply your changes.

### Edit from the Runs tab

To edit an agent from the Runs tab, follow these steps.

1. On the **Runs** tab, click the name of the agent you want to edit. The canvas opens in read-only mode, showing the execution state of that run.
2. Click **Edit Flow** in the top-right corner of the canvas to switch to edit mode.
3. Make the required changes.
4. Click **Save** to apply your changes.

## Activate or deactivate an agent

You can activate or deactivate an agent from the **Actions** column on the **Agents** tab.

1. Go to **Relay > View my agents**.
2. In the **Actions** column for the agent, click the toggle.
   * Turning the toggle on activates the agent. The status changes to **Active**.
   * Turning the toggle off deactivates the agent. The status changes to **Paused**.

<Note>
  An agent stays in the **Inactive** state until you activate it for the first time. Activating an Inactive agent for the first time requires no confirmation step. Turning the toggle on changes the status directly to **Active**.
</Note>

## Delete an agent

To delete an agent, follow these steps.

1. Go to **Relay > View my agents**.
2. In the **Actions** column for the agent, click the delete icon. A confirmation dialogue appears.
3. Click **Delete** to confirm, or **Cancel** to go back.

<Warning>
  Deleting an agent permanently removes all configuration, including its triggers, nodes, and conditions, and cannot be undone.
</Warning>

## Monitor agent runs

The **Runs** tab displays the execution history for all agents. Use this tab to track run status, duration, and timing.

1. Go to **Relay > View my agents**.
2. Click the **Runs** tab. The list displays the following information for each run.

| Column     | Description                                                                                             |
| ---------- | ------------------------------------------------------------------------------------------------------- |
| Agent Name | The name of the agent that was executed. Click the name to view the execution canvas for that run.      |
| Started At | The date and time when the agent run started.                                                           |
| Duration   | The length of time the run took to complete, for example `0s` or `1m 2s`.                               |
| Status     | The result of the run. Possible values are **In Queue**, **In Progress**, **Completed** and **Failed**. |

The list is paginated and shows up to 10 entries per page.

<Note>
  Clicking an agent name in the **Runs** tab opens a read-only canvas showing the execution state of that run. To make changes to the agent, click **Edit Flow** on the canvas.
</Note>
