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

# Agent

> Run a saved agent from a workflow step by selecting the agent and sending it a message

Use **Agent** when you want a workflow step to call one of your existing workspace agents. The step sends a message to that agent. The agent's own instructions, model, and tools apply — those settings stay on the agent, not on the step.

This is different from **AI Prompt**, which configures a one-off LLM call on the step itself.

## Configuration

| Option              | Required | Description                                                                                                                         |
| ------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Name                | No       | Label for the step in the workflow canvas.                                                                                          |
| Agent               | Yes      | The saved workspace agent to run. Open the agent editor from the step settings to change the agent's instructions, model, or tools. |
| Message             | Yes      | The message sent to the agent. Supports workflow variables such as `{{step_1.output}}`.                                             |
| When the step fails | No       | Controls whether the workflow should **Terminate Workflow** or **Continue** if this step fails.                                     |

Pick an agent from the searchable list. Only active workspace agents appear. After you select one, the settings sheet shows a short summary (model and tool count) and a link to edit the agent.

Write the message the agent should receive. Use **Insert Variable** to pass earlier step output into the message.

Credits for this step are charged on the agent run itself, not as a separate workflow-step fee.

## Output

This step stores the agent's reply as the step output.

```text theme={null}
{{STEP_IDENTIFIER.output}}
```

For example, if this is `step_2`:

```text theme={null}
{{step_2.output}}
```

Later steps can insert that text with the variable picker.

## Example

Add **Agent** from the workflow step picker.

Select a support or research agent you already configured.

Set **Message** to something like:

```text theme={null}
Summarize this for a customer: {{step_1.output}}
```

Click **Run** in the step header to test. The agent's reply appears in **Output**, and later steps can reference it.

## See also

* [AI Prompt](./ai-prompt)
* [Creating and Editing](../../creating-and-editing)
* [Testing and Iteration](../../testing-and-iteration)
* [Error Handling](../../error-handling)
