# Agent Node

> Agent steps hold the conversation: one prompt per stage of the call, with tools, files, catalogs and the paths to the next stage.

URL: https://docs.lemuai.com/voice-agent/agent
For: Everyone
Checked against LemuAI app version 1.0.51
Related: [Editing a Workflow](https://docs.lemuai.com/voice-agent/editing-a-workflow), [Start Call](https://docs.lemuai.com/voice-agent/start-call), [Global Node](https://docs.lemuai.com/voice-agent/global), [HTTP API](https://docs.lemuai.com/voice-agent/tools/http-api), [Lemu Tickets](https://docs.lemuai.com/integrations/lemu-tickets)

An **Agent** step is one stage of a call, like "confirm the address" or "handle an objection". A voice agent is a set of these steps joined by arrows (edges), starting at [Start Call](https://docs.lemuai.com/voice-agent/start-call) and ending at [End Call](https://docs.lemuai.com/voice-agent/end-call).

The arrows leaving an Agent step are the paths the AI can take next. Give each arrow a clear label and condition (for example "the customer agreed to pay"); the AI picks the path that fits what was said.

## Fields

The panel is titled **Edit Agent**.

| Field | What it does |
|---|---|
| **Name** | A short name for the stage, shown in call logs, like `Confirm address`. |
| **Prompt** | What the agent does in this stage. Write it as instructions: the goal, the questions to ask, what to do with each kind of answer. |
| **Allow Interruption** | Whether the caller can talk over the agent. |
| **Add Global Prompt** | Adds the [Global Node](https://docs.lemuai.com/voice-agent/global)'s shared instructions to this prompt. Usually on. |
| **Enable Variable Extraction** | Saves details said in this stage into variables, each with a type (String, Number or Boolean) and its own extraction prompt. |
| Tools | [Tools](https://docs.lemuai.com/tools-library/overview) the agent can use here, like [Call Transfer](https://docs.lemuai.com/voice-agent/tools/call-transfer) or an [HTTP API](https://docs.lemuai.com/voice-agent/tools/http-api) lookup. |
| Documents | Knowledge base files it can read from ([Files](https://docs.lemuai.com/knowledge-base/overview)). |
| Catalogs | Catalogs it can look up price, stock and details in ([Catalog](https://docs.lemuai.com/records/catalog)). |
| Offers | Offers it can talk about, and give the caller their own code for. |
| **Use tools & files shared with every step** | Adds what's set under [Available in every step](#available-in-every-step). On by default. |
| **Language & Voice Overrides** | Use another voice or language for this stage only: **Voice Provider**, **Voice Model**, **Voice Override**, **Voice Language**, **Transcriber Provider**, **Transcriber Model**, **Transcriber Language**. |

## Available in every step

Some things the agent needs throughout the conversation, not in one step. Press **Tools & files for every step** in the editor toolbar to open **Available in every step**. What you add there goes to every Agent step on top of its own items. The Start, End and Global steps don't get them, and a step can turn off **Use tools & files shared with every step**.

| Section | What it does |
|---|---|
| **Knowledge files** | Files for FAQs, policies and price lists the caller may ask about at any point. |
| **Catalogs** | Catalogs the agent looks products, sizes and stock up in. |
| **Offers** | Offers the agent can tell callers about, with their personal code. |
| **Agent can open support tickets** | Lets the agent open a ticket in [Lemu Tickets](https://docs.lemuai.com/integrations/lemu-tickets) in calls and chats, for problems it can't solve, and give the customer the ticket number. Needs Lemu Tickets connected. |
| **Tools** | Other tools. Usually better on the step that needs them. |

With **Agent can open support tickets** on:

| Field | What it does |
|---|---|
| **When to open a ticket** | Plain words the agent follows, like "A refund started more than 5 days ago that hasn't arrived. A damaged or wrong item. A payment taken twice." Up to 1,000 characters. Empty lets the agent judge. |
| **Priority when the agent doesn't choose one** | P1 (urgent) to P4 (low). Default P3. |
| **Project for new tickets** | A Lemu Tickets project, or **Default project**. |
| **Customers can ask about their tickets** | The agent can also look up the status of the customer's own tickets. On by default. |

The ticket is for the person the agent is talking to: on a phone call, the caller's number and the contact it belongs to. On your website only verified visitors get a ticket (see [Web Widget](https://docs.lemuai.com/voice-agent/web-widget#support-tickets)), and the widget's own ticket settings are used there when they're on. A step that has its own saved **Create ticket** tool uses that one instead.

Example: a support agent with **When to open a ticket** set to "The order hasn't arrived 7 days after the delivery date, or the item came damaged". A caller says their order SO-10422 came damaged. The agent says "I've raised ticket SUP-1042 for the damaged item. Our team will call you within a day." and carries on helping.

## Example

A payment reminder agent with three stages:

1. **Remind**: "Tell the customer that EMI {{emi_amount}} is due on {{due_date}}. Ask when they will pay." Paths: "customer gives a date" → **Note date**; "customer has a problem paying" → **Hardship**.
2. **Note date**: "Repeat the date back and confirm." Variable `promised_date` (String). Path → End Call.
3. **Hardship**: "Listen, be kind, and offer a call from the collections team." Tool: Call Transfer. Path → End Call.

## Tips

- One goal per step. A long prompt that tries to do everything is harder for the AI to follow than three short steps.
- Name paths by what the caller said, not by what happens next.
- Test each path with a web call before going live (see [Testing Your Agent](https://docs.lemuai.com/voice-agent/testing)).
