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

# Agent Training

> Equip your agent with Knowledge Base documents, external API tools, and cross-call memory

The **Training** tab gives your agent the specific knowledge and real-time capabilities it needs to resolve customer inquiries. Rather than relying solely on general model knowledge, training allows your agent to consult your company documents and take real actions mid-call.

<Frame>
  <img src="https://mintcdn.com/vaaniai/1z97x591P_yo5Lyb/images/screenshots/training-agent.png?fit=max&auto=format&n=1z97x591P_yo5Lyb&q=85&s=9dd5e5e257214bbbd3870d8c8004b5ab" alt="Training Tab in Vaani Dashboard" width="1919" height="990" data-path="images/screenshots/training-agent.png" />
</Frame>

## Video Walkthrough

<div style="position: relative; padding-bottom: 62.7906976744186%; height: 0;">
  <iframe src="https://www.loom.com/embed/74edda24a2eb4e5e995fc7358c846983" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" />
</div>

***

## 1. Knowledge Base (Retrieval-Augmented Generation / RAG)

Upload your company's product catalogs, return policies, price charts, and FAQs directly to your agent.

<CardGroup cols={3}>
  <Card title="Document Upload" icon="file-pdf">
    Upload PDF, DOCX, TXT, CSV, or Markdown manuals. Vaani extracts text and indexes vectors automatically.
  </Card>

  <Card title="Website Crawling" icon="globe">
    Enter your documentation or help center URL. Vaani recursively indexes your help pages.
  </Card>

  <Card title="Live Knowledge Retrieval" icon="magnifying-glass">
    During calls, relevant chunks are retrieved in \~100ms and supplied to the model as context.
  </Card>
</CardGroup>

### Best Practices for Knowledge Documents

* **Keep files organized**: Use clear section headings (`## Pricing`, `## Refund Policy`).
* **Include exact numbers**: Provide exact timelines, fees, and office hours.
* **Instruct fallback behavior**: In the system prompt, specify: *"If the information is not found in your knowledge base, politely state that you'll have a specialist follow up."*

***

## 2. Tools & Actions (Function Calling)

Empower your agent to perform actions while talking to the caller - such as looking up an order, sending an OTP, checking a calendar, or submitting a lead to your CRM.

### Adding a Tool via cURL

You can define a new tool in seconds by pasting a standard `cURL` request:

```bash theme={null}
curl -X POST https://api.yourstudio.com/v1/appointments/check \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"date": "2026-10-25", "time": "14:00"}'
```

Vaani parses the endpoint, headers, and request body parameters automatically:

| Parameter | Type | Description |
| - | - | - |
| `date` | `string` | The requested consultation date (YYYY-MM-DD) |
| `time` | `string` | The requested time slot in IST |

### Natural Language Tool Triggering

Provide a concise description of when the tool should be executed:

> *"Trigger this tool whenever the caller asks to book an appointment or check designer availability for a specific day."*

***

## 3. Context & Memory

Ensure callers never have to repeat themselves across different calls or departments:

<Tabs>
  <Tab title="Previous Calls Memory">
    Remembers caller preferences, previous issues, and unfinished inquiries tied to their phone number. When the customer calls back, the agent greets them personally:

    > *"Welcome back, Priya! Are you calling regarding the 3BHK interior estimate we discussed on Tuesday?"*
  </Tab>

  <Tab title="Cross-Agent Memory">
    Shares conversational context across different agents in your organization (e.g. Sales Agent handoff to Support Agent).
  </Tab>
</Tabs>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Configure Experience" icon="waveform-lines" href="/getting-started/agent-config/experience">
    Tune ambient background noise, speech delays, and interruption thresholds
  </Card>

  <Card title="Post-Call Analysis" icon="chart-mixed" href="/getting-started/agent-config/analysis">
    Define structured data extraction and automated QA evaluation
  </Card>
</CardGroup>


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