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

# Overview

**Agents** are the core of the VIVI platform. An agent is your virtual team member, interacting with guests, staff, or systems on your behalf. Agents combine components — like knowledge bases and prompts — into one system that delivers helpful, accurate, and efficient support. At a minimum, every agent needs a **name**, **prompt**, **model**, and **channel** to go live. Once configured, use **Test Agent** or **Evaluations** to validate responses before deployment.

Unlike traditional decision trees or scripted bots, VIVI agents are **dynamic** — they reason, act, and adapt to context. Agents can be duplicated, customized, or scaled as your organization evolves.

***

## Building Agents

<video autoPlay muted loop playsInline className="w-full aspect-video rounded-xl" src="https://mintcdn.com/ksg-ea85c748/Vks9o3B-pSxqY0Lp/videos/vivi_agent_components.mp4?fit=max&auto=format&n=Vks9o3B-pSxqY0Lp&q=85&s=13d0b68108399e47139bba7e19a636ab" data-path="videos/vivi_agent_components.mp4" />

You can customize every detail of an agent to match your organization's standards, tone, and goals.

### Core Requirements

<Columns cols={4}>
  <Card title="Name & Description" color="#0066ff" icon="signature" iconType="regular">
    A clear name and description that reflects the agent's purpose.
  </Card>

  <Card title="Prompt" color="#0066ff" icon="message-lines" iconType="regular" href="/documentation/core-concepts/prompts">
    Defines the agent's role, tone, and rules of engagement.
  </Card>

  <Card title="Model" color="#0066ff" icon="head-side-gear" iconType="regular" href="/documentation/core-concepts/agents/models">
    The large language model that powers the agent.
  </Card>

  <Card title="Channel" color="#0066ff" icon="tower-broadcast" iconType="regular" href="/documentation/core-concepts/channels/web-chat">
    Where the agent will be active — web chat, WhatsApp, API, and more.
  </Card>
</Columns>

### Optional Enhancements

<Columns cols={3}>
  <Card title="Knowledge Bases" color="#0066ff" icon="graduation-cap" iconType="regular" href="/documentation/core-concepts/knowledge-bases/websites">
    Connect internal sources of truth so responses stay grounded in your approved information.
  </Card>

  <Card title="Integrations" color="#0066ff" icon="bolt" iconType="regular" href="/documentation/core-concepts/integrations/apps">
    Connect MCP servers, APIs, or even other agents for advanced actions.
  </Card>

  <Card title="Prompt Add-ons" color="#0066ff" icon="bars-staggered" iconType="regular" href="/documentation/core-concepts/prompts/prompt-add-ons">
    Attach reusable, structured instructions to this agent's prompt.
  </Card>

  <Card title="Skills" color="#0066ff" icon="wand-magic-sparkles" iconType="regular" href="/documentation/core-concepts/skills">
    Add custom-built skills to let the agent run code locally.
  </Card>

  <Card title="Realtime Voice" color="#0066ff" icon="waveform-lines" iconType="regular" href="/documentation/core-concepts/agents/realtime-voice/overview">
    Let the agent reply in both voice and text, instead of text alone.
  </Card>

  <Card title="Citations" color="#0066ff" icon="book-open" iconType="regular" href="/documentation/core-concepts/agents/citations">
    Include numbered references to knowledge base sources in responses.
  </Card>

  <Card title="Structured Output" color="#0066ff" icon="brackets-curly" iconType="regular" href="/documentation/core-concepts/agents/structured-output">
    Reply with a typed JSON object instead of free-form text on /invoke and /batch — useful for API-driven workflows.
  </Card>

  <Card title="Web Search" color="#0066ff" icon="globe" iconType="regular">
    Enable public web search so the agent can pull in information beyond its knowledge bases.
  </Card>

  <Card title="Conversation Retention" color="#0066ff" icon="clock-rotate-left" iconType="regular">
    Set how many days this agent keeps conversation history before it's automatically deleted. Defaults to 90 days, and must be between 30 and 365 days.
  </Card>
</Columns>

### Before You Launch

Once your agent is configured, verify it before exposing it to guests or staff. VIVI gives you two ways to do this:

* **Test Agent** — Chat with your agent directly to check tone, accuracy, and behavior in real time. This is the fastest way to catch issues while you're still tuning a prompt or knowledge base.
* **Evaluations** — Run your agent against a saved dataset of questions to measure accuracy and groundedness at scale, useful once you're validating a larger set of scenarios or comparing changes over time. See [Evaluations](/documentation/features/evaluations/runs) for setup details.

We recommend Test Agent for quick iteration, and Evaluations before any major launch or update.

***

## Best Practices

* **Use descriptive names** so team members can quickly identify each agent's role.
* **Enable citations** when your agent draws from knowledge bases — it builds user trust and makes responses easier to verify.
* **Use structured output only for API-driven workflows** where a downstream system needs to parse the agent's response as JSON.
* **Set conversation retention deliberately** — shorter windows reduce how much guest data you store, while longer windows help with support follow-ups and evaluations.
* **Test thoroughly** after configuring each component to ensure accuracy and reliability.
