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

# Building an Agent

> Create and configure the AI agents that talk to your customers

An agent is everything about one AI persona in a single place: its prompt, voice, language, model, knowledge, tools, and telephony setup. This page walks through creating an agent and every tab on the agent detail page.

## Creating an agent

Go to **Agents → New agent** and choose:

![The Create agent dialog: agent mode, agent name, prompt structure, and description](https://mintcdn.com/osviai/e8Tq8Iu_12VRzY1L/images/Agents/Create-agent-Light.png?fit=max\&auto=format\&n=e8Tq8Iu_12VRzY1L\&q=85\&s=3e4853117af114a7f652c3d96faf3869)

| Choice | Options |
| - | - |
| **Agent mode** | **Voice Agent** — conducts phone and web calls. **Chat Agent** — handles text conversations (see [Chat agents](https://docs.osvi.ai/platform/chat-agents.md)). |
| **Prompt structure** | **Single Prompt** — one system prompt drives the entire conversation. **Multi Prompt** — chain multiple prompts for complex, branching flows. |
| **Name** | 1–50 characters, shown everywhere the agent appears. |
| **Description** | Optional, for your own reference. |

You can also **duplicate** an existing agent to use it as a starting point, and **archive** agents you no longer need.

> [!NOTE]
>
> New agents start **inactive**. Activate an agent from its page once it's configured — **Activate** for voice agents, **Launch** for chat agents. Only active agents can take calls, handle chats, or be tested.

### Creating an agent with Conductor

Rather than filling in every tab yourself, you can describe the agent in plain language and let [Conductor](https://docs.osvi.ai/platform/conductor) draft it. What it produces is a regular agent, editable on the tabs below like any other.

## The Agent tab — prompt and first message

![The Agent tab with the first message, the system prompt, and the test panel](https://mintcdn.com/osviai/e8Tq8Iu_12VRzY1L/images/Agents/Agent-tab-Light.png?fit=max\&auto=format\&n=e8Tq8Iu_12VRzY1L\&q=85\&s=ca33e1b479862d398f684e977f3c17eb)

* **First message** — what the agent says the moment the call connects. Leave it empty and the agent waits for the other person to speak first (common for inbound). The **interruptible** toggle controls whether the caller can talk over the first message.
* **System prompt** — the agent's identity, goal, rules, and tone. This is the most important field on the platform; read the [prompt writing guide](https://docs.osvi.ai/platform/prompt-writing.md) before writing one. Prompts support `{{variable}}` templating filled from API call data or campaign CSV columns.

> [!NOTE]
>
> Edits on every tab save to **your own draft**, not to the live agent. Customers only get them once you publish a version and make it live — see [Versions and Going Live](https://docs.osvi.ai/platform/agent-versions.md).

For **multi-prompt** agents, the Agent tab shows a visual prompt tree instead: named states, each with its own prompt and the conditions for moving between them.

## The Tools tab

Actions the agent can decide to take mid-call — built-in ones you switch on, and custom ones that call your own API. See [Tools Overview](https://docs.osvi.ai/platform/tools.md), [System Tools](https://docs.osvi.ai/platform/tools-system.md), and [Custom Tools](https://docs.osvi.ai/platform/tools-custom.md).

## The Call Settings tab

Tuning for how the agent *behaves in the audio stream* — interruptions, silences, background sound, response pacing. This is dense enough to get [its own page](https://docs.osvi.ai/platform/call-settings.md).

## The Advanced tab

The model, voice, transcription, knowledge base, and call limits behind the agent — including the recommended stack to start from. A hand-built agent has none of these set and can't be activated until it does. Covered in [Models and Speech](https://docs.osvi.ai/platform/advanced.md).

## The Call Analysis tab

Everything that happens *after* a call: AI summaries, data extraction, tags, callbacks, webhooks, and Google Sheets delivery. Covered in [Call analysis](https://docs.osvi.ai/platform/call-analysis.md).

## The Memory tab

Two independent kinds of memory on their own sub-tabs: **On-Call Memory**, which tracks details while the agent is talking, and **Post-Call Memory**, which extracts structured data from the finished transcript. Covered in [Memory](https://docs.osvi.ai/platform/memory.md).

## The Telephony tab

How calls reach this agent:

* **SIP** (default) — calls flow over a SIP trunk. Works with any supported carrier; see the integration guides for [Plivo](https://docs.osvi.ai/plivo-integration.md), [Ozonetel](https://docs.osvi.ai/ozontel-integration.md), [Exotel](https://docs.osvi.ai/exotel-integration.md), and [Vobiz](https://docs.osvi.ai/vobiz-integration.md).
* **WebSocket** — for Exotel's Voicebot streaming mode. You add one or more **channels**, each binding a phone number to your Exotel credentials (API key/token, subdomain, sample rate). Use this when the call should stay inside an existing Exotel app flow — details in the [Exotel guide](https://docs.osvi.ai/exotel-integration.md).

## The Evals tab

Automated test conversations for the agent: write scenarios, run them against the agent and against prompt or model variants, and read AI-judged scores and failure analysis. Evals work on inactive agents too. Covered in [Test Agent Before You Deploy](https://docs.osvi.ai/platform/evals.md).

## Testing an agent

The agent page includes a test panel. It tests the version you're looking at — your draft, the live version, or any earlier version — so you can try changes before publishing them (see [Testing a version](https://docs.osvi.ai/platform/agent-versions.md#testing-a-version)). The agent must be **active** to test it — if it isn't, starting a test shows *Please activate the agent before testing it.*

* **Web call** — talk to the agent from your browser with a live transcript. No phone number needed.
* **Chat test** — message the agent in text form.

There's also a **public call link** (`/public-call/<agent-id>`) you can share with teammates or stakeholders so they can try the agent in their browser without an Osvi login. It always uses the live version.

> [!TIP]
>
> Iterate in the playground until the agent survives the awkward cases — interruptions, off-topic questions, "are you a robot?" — before attaching real phone numbers or campaigns.


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