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

# Train Your AI Agent

> Learn how to train your AI agent with knowledge and custom actions

Train your SupportUnicorn AI agent to understand your business and take action on behalf of your customers.

## Knowledge Sources

Add knowledge to your AI agent using any of these sources:

<CardGroup cols={2}>
  <Card title="Files" icon="file-pdf" href="/ai-agent/train/files">
    Upload PDF documents, manuals, and other files containing information about your products or services.
  </Card>

  <Card title="Websites" icon="globe" href="/ai-agent/train/websites">
    Provide website URLs and the AI will learn from your existing web content.
  </Card>

  <Card title="Text" icon="text" href="/ai-agent/train/text">
    Write or paste content directly using our Notion-style editor.
  </Card>

  <Card title="Q&A" icon="comments-question" href="/ai-agent/train/qna">
    Add specific question-answer pairs for immediate, precise training.
  </Card>
</CardGroup>

These knowledge sources help your AI agent understand your company, products, policies, and procedures.

## Actions

Sometimes your AI agent needs to do more than answer questions—it needs to take action on behalf of customers.

For example, to process a refund, the AI needs to:

1. Identify which customer is requesting the refund
2. Determine what action to perform (e.g., issue refund, check status)
3. Execute that action in your system

**Actions** give your AI agent these capabilities. SupportUnicorn provides a growing library of built-in actions, and you can also create custom actions by specifying a webhook URL that the AI will call.

<Card title="Learn More" icon="arrow-right" href="/ai-agent/train/actions">
  See the Actions documentation for setup instructions and examples.
</Card>
