# Agents

An agent is an AI assistant that answers your customers on your [channels](https://docs.neuronai.uz/platform/channels). You write its instructions, give it knowledge, and choose what it does when a customer is ready to buy.

Open **Agents** from the Agents Platform's sidebar, under **AI Agents**, or go to [my.neuronai.uz/agents/agents](https://my.neuronai.uz/agents/agents).

## Create an agent

1. Select **Create Agent**.
2. Enter a **Name** and select **Create Agent**.

The agent opens in its workspace as a **Draft**. Its settings are on five tabs: **Agent**, **Knowledge Base**, **Lead Capture**, **Tools** and **Details**. After you change anything, select **Update Agent** to save.

## Write its instructions

On the **Agent** tab:

| Field | What it's for |
| --- | --- |
| **System Prompt** | The core instructions: who the agent is, what it helps with and how it talks, on every channel. |
| **First Message** | The greeting the agent sends when a new chat starts. |

The agent answers in the language the customer writes in, so there's no language to set.

## Choose the model

The **Model** section on the **Agent** tab picks the AI model that writes the agent's replies.

- **Provider**: NeuronAI, OpenAI, Anthropic, OpenRouter, or **Custom (OpenAI-compatible)**. With another provider than NeuronAI, enter that provider's **API key**; a custom one also needs its **Base URL**.
- **Model**: the model's name at that provider.
- **Temperature** and **Max tokens**: how varied and how long the replies can be.
- **Advanced**: **Enable thinking**, **Reasoning effort** and **Top P**.

## Give it knowledge

On the **Knowledge Base** tab, attach the questions and answers the agent should know. Each one is an entry, called a document here.

1. Select **Add document**.
2. Choose how:
   - **Existing documents**: search the entries of all your [knowledge bases](https://docs.neuronai.uz/platform/knowledge-bases), tick the ones you need and select **Attach selected**;
   - **Create document**: choose a knowledge base, write a **Question** and an **Answer**, and select **Create and attach**;
   - **Import documents**: choose a knowledge base and a CSV or JSON file, and select **Import and attach**.
3. Select **Update Agent**.

To take a document off the agent, select its trash icon, then **Update Agent**. The entry stays in its knowledge base.

> **The agent reads what you attach**
>
> An agent uses the entries attached to it, not whole knowledge bases: an entry you add to a knowledge base later reaches the agent only once you attach it. The agent reads its attached entries with every reply, up to 200 entries and 24,000 characters, so attach what it needs.

## Decide how it handles orders

On the **Lead Capture** tab, under **Order handling**, choose what happens when a customer is ready to order:

- **Manager handoff**: the AI stops collecting order details and hands the conversation to a manager. It also hands over when a customer asks for a person.
- **Automatic order capture**: the AI asks for the details you tick, **Name**, **Email address**, **Phone number** and **Address**, and only for the ones it doesn't know yet.

Once the AI hands a conversation over, it stops answering there, and the conversation waits in the [inbox](https://docs.neuronai.uz/platform/inbox) for an operator.

## Give it tools

On the **Tools** tab, tick the tools from your [MCP servers](https://docs.neuronai.uz/platform/mcp-servers) that the agent may use, then select **Update Agent**. The agent decides when to call them. An agent can use up to 32 tools.

> **Tools need a capable model**
>
> Tools work best with OpenAI or Anthropic models. With another model, the tab warns you that the agent may not use tools reliably.

The **Details** tab shows the whole configuration in one place, read only.

## Test it

1. Save your changes with **Update Agent**.
2. Select **Preview**. A test chat opens and the agent sends its first message.
3. Write to it as a customer would. The **+** button beside **Sessions** starts a new chat.

The test uses the agent's saved settings, whatever its status, and its chats don't appear in the inbox.

## Put it to work

1. Set the status at the top of the workspace to **Active** and select **Update Agent**. Only an active agent replies on its channels; a draft or inactive one stays silent.
2. [Connect a channel](https://docs.neuronai.uz/platform/channels) and choose this agent for it.

## Delete an agent

On the **Agents** list, select the agent's trash icon and confirm. The agent and its settings are deleted for good. Its channels stay, with no agent, until you choose another.

---

Source: https://docs.neuronai.uz/platform/agents
