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

# How to Train Your AI Agent with the Knowledge Base in Irelia.ai

> Learn how to structure, upload, and maintain your business information in Irelia.ai's Knowledge Base so your AI agent gives accurate, relevant answers without hallucinating or going off-script.

<Badge color="blue" size="md" shape="pill" icon="clock">\~20–30 minutes setup</Badge>

***

<Columns cols={3}>
  <Card title={`What You'll Need`} icon="clipboard-list" href="#-what-you%E2%80%99ll-need">
    Prerequisites before starting
  </Card>

  <Card title="Knowledge Base vs. Prompt" icon="scale-balanced" href="#-knowledge-base-vs-prompt-what-goes-where">
    The crucial distinction between facts and instructions
  </Card>

  <Card title="Best Practices" icon="pen" href="#-best-practices-for-structuring-your-content">
    Formats that help your AI find the right answers
  </Card>

  <Card title="Quick Path" icon="bolt" href="#-quick-path-experienced-users">
    Condensed steps for experienced users
  </Card>

  <Card title="Step-by-Step Setup" icon="wrench" href="#-step-by-step-setup">
    Complete walkthrough (Steps 1–7)
  </Card>

  <Card title="Using an LLM" icon="robot" href="#-using-an-llm-to-prepare-your-documents">
    Time-saving shortcuts for content creation
  </Card>

  <Card title="Debugging" icon="magnifying-glass" href="#-debugging-understanding-how-your-ai-uses-your-info">
    Inspect and improve AI answers
  </Card>

  <Card title="Quick Checklist" icon="check" href="#-quick-checklist">
    Verify your setup is complete
  </Card>

  <Card title="Troubleshooting & FAQs" icon="screwdriver-wrench" href="#-troubleshooting-%26-faqs">
    Common issues & fixes
  </Card>
</Columns>

***

### Introduction

You've set up your [Irelia.ai agent](/en/How-Irelia.ai-Works), and it's ready to have conversations — but it doesn't know anything about *your* business yet. Without the right information loaded in, your agent can't answer questions about your pricing, services, or policies. And prospects who don't get answers move on fast.

The Knowledge Base (KB) is where you fix that. It's the place you fill with your business's facts, FAQs, and details so your AI agent can search through them and respond accurately to every question a prospect asks.

This guide walks you through everything: understanding how the Knowledge Base works, structuring your content for the best results, uploading it into Irelia, and setting up smart features like document assignment and gap detection.

**By the end of this guide, you'll have:**

✅ A clear understanding of how the Knowledge Base works and what content belongs there<br />
✅ Well-structured Q\&A documents uploaded and trained in your Irelia agent<br />
✅ Customer reviews added for social proof in conversations<br />
✅ Documents assigned to the right agents for maximum accuracy<br />
✅ Notifications set up to automatically catch Knowledge Base gaps

### How This Works

Think of the Knowledge Base as a **reference library** your AI agent can search during conversations. No technical background required — here's the flow:

| Step                                    | What Happens                                                  | Real-World Analogy                                 |
| :-------------------------------------- | :------------------------------------------------------------ | :------------------------------------------------- |
| 📁 **1. You add information**           | You upload FAQs, product details, pricing, etc.               | Stocking the library shelves                       |
| 🗂️ **2. AI indexes the content**       | Irelia processes and organizes your information               | Creating a searchable catalog                      |
| 💬 **3. Prospect asks a question**      | "What are your prices?" arrives in chat                       | Someone walks in with a question                   |
| 🔍 **4. AI searches for relevant info** | The system finds the most relevant pieces from your KB        | The librarian finds the right books                |
| 💡 **5. AI crafts a response**          | Using the found information, the AI generates a natural reply | The librarian explains the answer conversationally |

**The key insight:** your AI agent doesn't memorize your content — it **searches** through your Knowledge Base every time it needs to answer a question. This means:

* ✅ **Information must be findable** — Write content that matches how prospects ask questions
* ✅ **Clarity matters** — Clear, well-structured info = better answers
* ✅ **Updates are instant** — Change a document, and the AI immediately uses the new version

When we say you're "training" the AI, you're not teaching it to think differently. You're simply giving it access to the specific business facts it needs. The AI already knows how to have conversations — your job is to provide the **business-specific information** it needs to be helpful.

### 📝 What You'll Do

Here's a quick overview of the steps in this guide:

1. **Set up your Knowledge Base** — Access the KB, create documents, add content, and train your agent (\~15 minutes)
2. **Add customer reviews** — Upload testimonials for social proof (\~5 minutes)
3. **Assign documents to specific agents** — Control which agents access which information (\~3 minutes)
4. **Set up missing info notifications** — Enable gap detection for continuous improvement (\~2 minutes)

## 📋 What You'll Need

* An Irelia.ai account with at least one active agent <Badge color="orange" size="md" shape="pill">Required</Badge>
* Your business information gathered and ready (FAQs, pricing, product/service details, policies) <Badge color="orange" size="md" shape="pill">Required</Badge>
* An LLM with reasoning capabilities (ChatGPT, Claude, Gemini, or similar) to help format your content — [see the LLM section](#-using-an-llm-to-prepare-your-documents) for ready-to-use prompts <Badge color="gray" size="md" shape="pill">Optional</Badge>

**No coding required.** If you can copy and paste, you can do this.

## ⚖️ Knowledge Base vs. Prompt: What Goes Where?

This is the #1 source of confusion for new users. Let's clear it up.

### The Clear Distinction

|              | Knowledge Base                                     | Prompt (Agent Settings)                                      |
| :----------- | :------------------------------------------------- | :----------------------------------------------------------- |
| **Purpose**  | WHAT the AI knows                                  | HOW the AI behaves                                           |
| **Contains** | Facts, FAQs, product info, pricing, policies       | Personality, tone, conversation rules, goals                 |
| **Analogy**  | The employee handbook & product catalog            | The training on "how to talk to customers"                   |
| **Example**  | "Our premium plan costs €99/month and includes..." | "Be friendly and professional. Always try to book a call..." |

### 📥 What Belongs in the Knowledge Base

Information your AI can look up and share:

* Product/service descriptions
* Pricing and packages
* FAQs and common objections
* Company information and history
* Process explanations (how things work)
* Policies (shipping, refunds, etc.)
* Case studies and results

**Example:** *"Q: What are your pricing plans? A: We offer three plans: Starter at €29/month (up to 100 contacts), Growth at €79/month (up to 1,000 contacts), and Enterprise at €199/month (unlimited contacts with priority support)."*

This is a **fact** about your business. When someone asks about pricing, the AI searches for this information and shares it.

### 🚫 What Doesn't Belong in the Knowledge Base

These are *behavioral instructions* — they belong in the Prompt:

* "Always be friendly and professional"
* "If someone asks about price, first understand their needs"
* "Never promise exact results"
* "Always try to schedule a call"
* "Speak in first person as the company"
* Conversation flow instructions
* Qualifying questions to ask

<Warning>
  **Common mistake:** *"When someone asks about pricing, first ask them about their business size and then recommend the appropriate plan. Be enthusiastic but not pushy."* This tells the AI *how to act*, not *what information to share*. It's an instruction, not a fact — so it goes in the Prompt.
</Warning>

### The Quick Test

Ask yourself: *"Is this a FACT or an INSTRUCTION?"*

* **Fact** → Knowledge Base
* **Instruction** → Prompt

That's it. Keep them separate, and your AI will perform much better.

## ✍️ Best Practices for Structuring Your Content

How you structure your information directly impacts how well your AI can find and use it.

### 💎 The Golden Format: Q\&A Style

The most effective format for Knowledge Base content is **Question & Answer**:

*Q: What are your business hours?*
*A: We're open Monday to Friday, 9 AM to 6 PM (CET). We're closed on weekends and Italian public holidays.*

**Why this works:**

* Mirrors how prospects actually ask questions
* Easy for the AI to match questions to answers
* Simple to maintain and update

### 🔄 Include Question Variations

People ask the same thing in many different ways. Adding variations helps the AI match and retrieve the right information, no matter how a prospect phrases their request.

**Example:** *Q: What are your business hours? / When are you open? / What time do you close? / Are you open on weekends? / Can I reach you on Saturdays?* *A: We're open Monday to Friday, 9 AM to 6 PM (CET). We're closed on weekends and Italian public holidays.*

Five different questions, one answer. The more angles you cover, the more reliably your AI finds the right answer.

### 🧭 The 5W Framework: Anticipate Every Question

Use this framework to brainstorm what questions your prospects might ask:

* ❓ **WHAT** — What is your product? What does it include? What results can I expect?
* 🤔 **WHY** — Why should I choose you over competitors? Why does this approach work?
* ⏰ **WHEN** — When can I start? When will I see results? When are you available?
* 👤 **WHO** — Who is this for? Who's behind the company? Who will I work with?
* 📍 **WHERE** — Where are you located? Where do you ship/operate?
* ⚙️ **HOW** — How does it work? How do I get started? How much does it cost?

Go through each category and write Q\&A pairs for the questions your prospects actually ask.

### 📂 Document Organization: Think in Categories

Don't put everything in one giant document. Split your information by topic — this makes it easier to update specific sections and assign only relevant content to specific agents.

<Tip>
  **Plan ahead for agent assignment.** Before creating your documents, think about which AI agents will need which information. If you're running multiple funnels or selling different products, structure your documents so you can easily assign the right content to the right agent later. See [Step 6](#step-6-assign-documents-to-specific-agents) for details.
</Tip>

For example, you might create separate documents for:

* **Coaching Service FAQs** — your process, onboarding steps, timelines, common questions and objections
* **Online Course FAQs** — costs, what's included, payment options, common questions and objections
* **Company Info** — about us, team, credentials

The exact categories depend on your business. Think about the main topics prospects ask about, and create one document per topic.

### Formatting Tips

✅ **Do:**

* Use clear, simple language
* Include specific numbers and details
* Include variations of how people might ask

❌ **Don't:**

* Use complex jargon without explanation
* Include contradictory information
* Write walls of text without structure

### 💰 Strategic Price Omission for Service Businesses

If you're selling high-ticket services, consider **not including specific pricing** in your Knowledge Base. Instead, add this to your FAQs:

*"Q: How much does it cost? / What are your prices?* *A: Pricing depends on your specific situation and goals. Book a quick call with our team and we'll give you a custom quote based on your needs."*

**Why this works from a sales perspective:** When someone's first question is "how much does it cost?", they're often comparing you on price alone — essentially commoditizing your service.

By directing them to a call, you:

* ✅ **Keep curiosity alive** — Price curiosity is a powerful motivation to book a call. Once you reveal the number, that motivation disappears — they either dismiss you as "too expensive" without context, or they get what they needed and leave.
* ✅ **Create the opportunity to frame value properly** — In a sales meeting, you can understand their specific needs, position your solution, differentiate from competitors, and help them see the true value of what you offer.

This shifts the conversation from *price-based buying* (who's cheapest?) to *value-based buying* (who's the best fit for my needs?). In a call, you can better create the right framing.

Based on our experience, service businesses that use this approach see more booked calls and higher-quality conversations.

<Warning>
  **Important:** This strategy works best for services and high-ticket offers. For e-commerce or standardized products, clear pricing typically converts better.
</Warning>

## ⚡ Quick Path (Experienced Users)

Already familiar with Irelia's Knowledge Base? Here's the condensed version:

1. **Irelia:** Go to [irelia.ai/settings](https://irelia.ai/settings) → click the **Knowledge Base icon** in the left sidebar
2. **Create:** Click **"+ Create a new document"** → Name it descriptively → Add Q\&A formatted content
3. **Save:** Click **"Save"** → Wait for the ✓ checkmark confirming training is complete
4. **Reviews:** Switch to the **"Reviews"** tab → Create one document per review using the format "\[Name] from \[Source] says: \[review text]" → Save each one
5. **Assign:** Go to your agent's settings → **"Knowledge Base"** section → Toggle off **"Allow this agent to access all information"** → Select specific documents
6. **Notify:** Go to your agent's **"Events and Notifications"** tab → Enable the missing info notification → Add a webhook URL or enable email alerts

Need more detail? Continue with the full guide below.

## 🔧 Step-by-Step Setup

<Steps>
  <Step title="Access the Knowledge Base" id="step-1-access-the-knowledge-base">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~1 minute</Badge>

    1. Navigate to your Irelia settings: [irelia.ai/settings](https://irelia.ai/settings)
    2. Click the **Knowledge Base icon** in the left sidebar

    <Frame caption="Knowledge Base screen with the sidebar icon highlighted">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/135.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=3d559b6f4201e1e05bfc98a35a132689" alt="Irelia.ai Knowledge Base training guide, Step 1 — Access the Knowledge Base. The Knowledge base screen for NextWave AI is open on the Informations tab, listing documents like Funzionalità, Integrazione, Configurazione, Partnership, and Pricing, with a red arrow pointing to the Knowledge Base icon in the left sidebar. It shows exactly which sidebar icon opens the Knowledge Base before creating any documents." width="1920" height="874" data-path="images/Guida-KB/135.png" />
    </Frame>

    3. You'll see two tabs at the top:
       * **"Informations"** — For FAQs, product info, company details
       * **"Reviews"** — For customer testimonials and social proof
  </Step>

  <Step title="Create a New Document" id="step-2-create-a-new-document">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~2 minutes</Badge>

    1. Click the **"+ Create a new document"** button at the bottom of the document list

    <Frame caption="The Create a new document button in the documents panel">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/136.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=711895746a210af32c60cd3bf6ca667c" alt="Irelia.ai Knowledge Base training guide, Step 2 — Create a New Document. The same Knowledge base document list is shown with a red arrow and red box highlighting the plus Create a new document button at the bottom of the sidebar, below existing documents like Funzionalità and Pricing. It shows exactly where to click to start a brand-new topic document." width="1920" height="874" data-path="images/Guida-KB/136.png" />
    </Frame>

    2. You'll be prompted to enter a document name — choose a clear, descriptive name (e.g., "Pricing", "FAQs", "Product Features")

    <Frame caption="Enter a descriptive name for your new document">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/137.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=f075ade128afec3d233c5b0ffa32cc93" alt="Irelia.ai Knowledge Base training guide, Step 2 — Create a New Document, naming step. The naming prompt Scrivi qui il nome del documento shows the text field filled with Pricing, with a red arrow pointing to the field and Create and Cancel buttons below, plus a note that the name must be unique among documents. It shows the one-time naming step that cannot be changed after the document is created." width="1920" height="874" data-path="images/Guida-KB/137.png" />
    </Frame>

    <Danger>
      **Document names can't be changed after creation.** If you need to rename a document, you'll have to delete it and create a new one with the correct name. Double-check your naming before confirming!
    </Danger>

    3. Once you confirm the name, your new document appears in the list and you can start editing
  </Step>

  <Step title="Add Your Content" id="step-3-add-your-content">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~10–15 minutes</Badge>

    1. Click on your document to open the editor
    2. Start adding your Q\&A formatted content (see [Best Practices for Structuring Your Content](#-best-practices-for-structuring-your-content) for formatting guidance)

    <Frame caption="Document editor with example Q&A formatted content">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/138.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=8411f6865e3753d1f9963cdfc04ff85c" alt="Irelia.ai Knowledge Base training guide, Step 3 — Add Your Content. The Funzionalità document editor shows three sample entries — How does Irelia work?, What channels does IRELIA work on?, and What's different between IRELIA and other AIs? — each marked with a red arrow, followed by paragraph answers and Save and Delete buttons below. It shows what a finished question-and-answer document looks like before saving and training the agent." width="1920" height="874" data-path="images/Guida-KB/138.png" />
    </Frame>

    <Tip>
      **Plenty of room:** Each document can hold up to **220,000 characters** — that's roughly 35,000–40,000 words. You won't run out of space.
    </Tip>
  </Step>

  <Step title="Save and Train Your Agent" id="step-4-save-and-train-your-agent">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~1 minute</Badge>

    When you've added or edited content, the document icon changes to indicate **unsaved changes**.

    1. Click the **"Save"** button to save your changes and train the AI

    <Frame caption="Unsaved changes indicator and Save button in the editor">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/139.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=1dbcfd27e960154b05c300ab97347574" alt="Irelia.ai Knowledge Base training guide, Step 4 — Save and Train Your Agent. The Funzionalità document is selected in the sidebar with an edit-pencil icon marking unsaved changes, and the Save button below the content is outlined in red with an arrow, next to the Delete button. It shows the exact button to click so the AI gets trained on the newly added content." width="1920" height="874" data-path="images/Guida-KB/139.png" />
    </Frame>

    2. A loading spinner appears next to your document name while the AI processes the new information
    3. When complete, a checkmark icon ✓ appears, confirming your AI is now trained on this content

    <Frame caption="The checkmark confirms your AI is trained on this document">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/140.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=36549dd71b7d81bb55d8ece7d9c59504" alt="Irelia.ai Knowledge Base training guide, Step 4 — Save and Train Your Agent, after saving. The Funzionalità document now shows a checkmark icon instead of the edit-pencil in the sidebar, and the Save and Delete buttons below the content appear greyed out and inactive. It confirms the document has been saved and the AI is trained on this content." width="1920" height="874" data-path="images/Guida-KB/140.png" />
    </Frame>

    <Check>
      **Success!** Your AI agent can now use this information in conversations.
    </Check>
  </Step>

  <Step title="Add Customer Reviews" id="step-5-add-customer-reviews">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~5 minutes</Badge>

    Reviews are powerful for building trust. Irelia has a dedicated section for them, allowing your agent to reference real testimonials when social proof would help the conversation.

    #### Switch to the Reviews tab

    1. Click the **"Reviews"** tab at the top of the Knowledge Base screen

    <Frame caption="The Reviews tab selected in the Knowledge Base">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/141.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=bb5e09c680697cc2ff32437bd1fa9d06" alt="Irelia.ai Knowledge Base training guide, Step 5 — Add Customer Reviews. The Reviews tab, outlined in red with an arrow, is selected next to Informations, listing reviewer names like Diego Lecca, Edoardo Di Coste, and Gabriele Palazzolo, with an info box explaining the required format Name from Source says colon review, plus a Create a new review button. It shows where to add one testimonial per document for the AI to reference as social proof." width="1920" height="874" data-path="images/Guida-KB/141.png" />
    </Frame>

    #### Create and format review documents

    2. Click the **"+ Create a new document"** button for each review you want to add
    3. Use this format for each review: "\[Name] from \[Source] says: \[review text]"

    **Example:** *"Marco R. from Google Reviews says: 'Incredible service! They helped me automate my lead follow-up and I've seen a 40% increase in appointments booked. Highly recommended!'"*

    <Tip>
      **One review per document.** Each document must contain exactly one review. This allows the AI to select the most relevant testimonial for each conversation context.
    </Tip>

    4. Click **"Save"** for each review document and wait for the ✓ checkmark

    <Check>
      **Success!** Your agent now has social proof to reference during conversations.
    </Check>
  </Step>

  <Step title="Assign Documents to Specific Agents" id="step-6-assign-documents-to-specific-agents">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~3 minutes</Badge>

    If you're running multiple agents (e.g., different funnels, multiple products, or different use cases), you can keep each agent focused by controlling which Knowledge Base documents it can access.

    **Why this matters:**

    * **Relevance** — Each agent only sees information relevant to its role
    * **Accuracy** — Less irrelevant information = lower risk of confusion
    * **Organization** — Keep things clean and manageable

    #### Configure document access

    1. Go to your agent's settings (in the agent configuration section)
    2. Find the **"Knowledge Base"** section

    <Frame caption="Assign specific Knowledge Base documents to each agent">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/143.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=fb74ec2f76cfbe5d756c4ed8935da914" alt="Irelia.ai Knowledge Base training guide, Step 6 — Assign Documents to Specific Agents. The agent's Knowledge base modal shows the Allow this agent to access all the information toggle turned off, with Funzionalità and Integrazione checked in green while Configurazione, Partnership, and Pricing remain unselected, and on the right the Reviews toggle Allow this agent to access all reviews turned on. It shows exactly how to limit one agent to only its relevant documents." width="1920" height="874" data-path="images/Guida-KB/143.png" />
    </Frame>

    3. You have two options:
       * **Toggle on** the **"Allow this agent to access all information"** switch — the agent sees everything
       * **Toggle off** and **select specific documents** — the agent only sees what you choose
    4. The same options exist for **"Reviews"** on the right side

    **Example setup:**

    | Agent                      | Documents Assigned                                          | Reviews                    |
    | :------------------------- | :---------------------------------------------------------- | :------------------------- |
    | **Coaching Program Agent** | Coaching Pricing, Program Details, Coach Bio, Coaching FAQs | Coaching testimonials only |
    | **Online Course Agent**    | Course Pricing, Course Curriculum, Course FAQs              | Course testimonials only   |
    | **Agency Services Agent**  | Service Packages, Case Studies, Agency FAQs                 | Agency client testimonials |

    This way, your coaching agent won't accidentally mention course pricing, and vice versa.

    <Check>
      **Success!** Each agent now only accesses the documents relevant to its role.
    </Check>
  </Step>

  <Step title="Set Up Missing Info Notifications" id="step-7-set-up-missing-info-notifications">
    <Badge color="blue" size="md" shape="pill" icon="clock">\~2 minutes</Badge>

    One of the most powerful features in Irelia: get notified when your AI can't find information to answer a question.

    **Why this is valuable:**

    * 🎯 Discover gaps in your Knowledge Base
    * 📊 See what real prospects are actually asking
    * 🔄 Continuously improve your AI's performance

    #### Enable the notification

    1. Go inside one of your agents
    2. Click the **"Events and Notifications"** tab
    3. Enable the notification for questions the AI lacks information to answer

    <Frame caption="Missing info notification toggle with webhook and email options">
      <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/144.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=b96eadd00815ad83d11b0d58af84bb92" alt="Irelia.ai Knowledge Base training guide, Step 7 — Set Up Missing Info Notifications. The agent's Events and Notifications tab shows the A new question has been received that the agent lacks the information to answer section outlined in red, with an empty webhook URL field, a Test button, and the Get an email notification toggle switched on and green. It shows exactly where to enable alerts for questions the Knowledge Base can't answer." width="1920" height="874" data-path="images/Guida-KB/144.png" />
    </Frame>

    4. You can set up either or both options:
       * **Webhook URL** — Send data to Slack, a spreadsheet, or your CRM automatically
       * **Email notifications** — Receive an email for each missing-info question

    #### What you'll receive

    You'll get the **exact question** that stumped your AI. Use this to:

    * Add the missing information to your Knowledge Base
    * Identify patterns — are many people asking the same thing?
    * Improve your Q\&A coverage over time
  </Step>
</Steps>

### 🎉 Congratulations! You Did It!

Take a moment to appreciate what you just built:

✅ Your AI agent has a fully stocked Knowledge Base with your business information<br />
✅ Customer reviews are ready to use as social proof in conversations<br />
✅ Each agent only accesses relevant documents for more accurate responses<br />
✅ Missing info notifications ensure your Knowledge Base keeps improving automatically

**What happens now:** Every time a prospect asks a question, your AI agent searches through your Knowledge Base, finds the most relevant information, and crafts a natural, accurate response — without you lifting a finger.

### What's Next?

Now that your Knowledge Base is set up, the possibilities are wide open.

**Your options from here:**

1. 🤖 **Want help creating content?** Jump to [Using an LLM to Prepare Your Documents](#-using-an-llm-to-prepare-your-documents) for ready-to-use prompts that speed up content creation
2. 🔍 **Want to understand your AI's answers?** Check out [Debugging](#-debugging-understanding-how-your-ai-uses-your-info) to see exactly which information the AI uses for each response
3. 📋 **Want to verify everything's set up correctly?** Use the [Quick Checklist](#-quick-checklist) to make sure nothing was missed
4. ➕ **Have more content to add?** Repeat Steps 2–4 for each new topic — create a new document, add Q\&A content, and save

## 🤖 Using an LLM to Prepare Your Documents

Don't have time to write everything from scratch? Any powerful LLM with reasoning enabled will do — ChatGPT, Claude, Gemini, or similar. Just paste the prompts below into your preferred tool.

### Method 1: Transform Existing Documents and Web Pages

If you already have business information (website copy, brochures, internal docs), use this prompt to convert it into Knowledge Base format:

<Prompt description="Transform existing content into Q&A Knowledge Base format" actions={["copy"]}>
  I need to create a Knowledge Base for my AI chatbot. Generate a comprehensive document by transforming the following unstructured information into a Q\&A format. For each piece of information, create a realistic question that a potential customer might ask, followed by a clear answer.

  Guidelines:

  * Use natural language that matches how people actually ask questions
  * Leverage the 5W+H framework (What, Why, When, Who, Where, How) to find and cover all the potential questions a prospect could ask
  * Include variations of questions where relevant

  Use this format:
  Q: \[Question a prospect might ask]
  A: \[Answer based on the document]

  Here's my document: \[PASTE YOUR CONTENT HERE]
</Prompt>

<Tip>
  **What's the 5W+H framework?** It's a simple brainstorming method for anticipating questions. See the [5W Framework section](#-the-5w-framework-anticipate-every-question) for the full breakdown.
</Tip>

### Method 2: Generate Questions and Objections from Scratch

Don't have existing content? Use this prompt to generate a complete Knowledge Base starting from just a description of your business:

<Prompt description="Generate Q&A content from a business description" actions={["copy"]}>
  I need to create a Knowledge Base for my AI sales assistant.

  Based on the context below, generate:

  1. The most likely questions prospects will ask (use the 5W+H framework: What, Why, When, Who, Where, How)
  2. Common objections and concerns they might have

  BUSINESS CONTEXT:

  * Product/Service: \[DESCRIBE WHAT YOU SELL]
  * Target audience: \[WHO YOU SELL TO]
  * Main benefit: \[KEY VALUE PROPOSITION]
  * Common competitor alternative: \[WHAT THEY'D DO INSTEAD]

  Format everything as:
  Q: \[Question or objection]
  A: \[Leave space for me to fill in OR suggest an answer I can customize]

  Make questions sound natural, like how real people ask in chat.
</Prompt>

This gives you a solid foundation to customize with your specific details.

### Review Before Uploading

Always review AI-generated content before adding it to your Knowledge Base:

* ✅ Adjust the tone to match your brand
* ✅ Add specific details (numbers, names, etc.)
* ✅ Check for accuracy and remove irrelevant information

## 🔍 Debugging: Understanding How Your AI Uses Your Info

Need to understand why the AI gave a specific answer? Irelia has built-in debugging tools that show you exactly which Knowledge Base content the AI used.

### 🔬 How to Access Debug Info

1. Go to [irelia.ai/leads](https://irelia.ai/leads) (your [chat panel](/en/the-Chat-Panel))
2. Find a conversation where the AI responded
3. Look for the **info icon** (ℹ️) next to AI messages — this icon indicates which message pulled information from the Knowledge Base to reply

<Frame caption="Click the info icon next to an AI message to view debug data">
  <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/145.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=b3a5404b05815dd2c85645d4817a18a4" alt="Irelia.ai Knowledge Base training guide, section Debugging — How to Access Debug Info. An Italian WhatsApp conversation about a dental bridge is shown, with a red arrow pointing to the small info icon next to an AI reply timestamped 1:08 pm. It shows exactly which icon to click on an AI message to see which Knowledge Base content produced that answer." width="1920" height="874" data-path="images/Guida-KB/145.png" />
</Frame>

4. Click the icon to open the debug popup

### 👁️ What You'll See

<Frame caption="Debug popup showing which Knowledge Base content the AI used">
  <img src="https://mintcdn.com/irelia/ZUe_TIj6C2C75Jx6/images/Guida-KB/146.png?fit=max&auto=format&n=ZUe_TIj6C2C75Jx6&q=85&s=f546fe39bf90432db6a1df0af55899a0" alt="Irelia.ai Knowledge Base training guide, section Debugging — What You'll See. The debug popup titled Informations used to answer, opened for the lead Giuseppe, shows the raw Q&A chunks about pricing, visit duration, location, and payment methods pulled from the Knowledge Base, followed by a Riassunto summary paragraph the AI used to reply. It shows exactly which Knowledge Base content the AI relied on for that specific response." width="1920" height="874" data-path="images/Guida-KB/146.png" />
</Frame>

The popup shows:

* **Information chunks pulled** — The exact pieces of your Knowledge Base the AI found relevant
* **Summary** — A condensed view of the relevant information pulled (what the AI actually uses to reply)

### 📈 How to Use This for Improvement

| What You See                          | What It Means                                      | Action to Take                         |
| :------------------------------------ | :------------------------------------------------- | :------------------------------------- |
| ❌ **Wrong info was pulled**           | Keywords in the question matched unrelated content | Rewrite your Q\&As to be more specific |
| ⚠️ **Right topic, incomplete answer** | Info exists but isn't complete enough              | Add more detail to that section        |
| 🚫 **No info was found**              | The question isn't covered                         | Add a new Q\&A for this topic          |
| 🔀 **Multiple conflicting chunks**    | Similar topics are causing confusion               | Consolidate or clarify your documents  |

## ✅ Quick Checklist

Use this to verify your Knowledge Base setup is complete:

<AccordionGroup>
  <Accordion title="Content Preparation" icon="list-check" defaultOpen={true}>
    * Gathered existing materials (website, FAQs, brochures)
    * Transformed content into Q\&A format ([use an LLM to speed this up](#-using-an-llm-to-prepare-your-documents))
    * Organized content into topic-based documents (planned for [agent assignment](#step-6-assign-documents-to-specific-agents))
  </Accordion>

  <Accordion title="Upload and Training" icon="cloud-arrow-up">
    * Created and named documents in Irelia
    * Saved each document (look for the ✓ checkmark)
    * Added reviews (one per document)
    * Assigned documents to the appropriate agents
  </Accordion>

  <Accordion title="Optimization" icon="chart-line">
    * Enabled missing info notifications
    * Tested common questions with your agent
    * Filled gaps based on real conversations
  </Accordion>
</AccordionGroup>

✅ **All checked? Your Knowledge Base is ready!**

<Note>
  **Remember the golden rule:** Knowledge Base = WHAT your AI knows. Prompt = HOW your AI behaves. Keep them separate, and your AI will perform beautifully!
</Note>

## 🛠️ Troubleshooting & FAQs

<AccordionGroup>
  <Accordion title={`❌ Issue 1: "The AI isn't using information I added"`} description={`Your AI agent can't find or access your uploaded content`}>
    **What this means:** Your AI agent can't find or access the content you uploaded, so it's either ignoring it or giving generic responses.

    **How to fix it:**

    **Step 1: Check that documents are saved and assigned**

    * Look for the ✓ checkmark icon next to your document name in the Knowledge Base
    * Verify the document is [assigned to this agent](#step-6-assign-documents-to-specific-agents)

    **Step 2: Check question phrasing**

    * The prospect's question may not match how you wrote the information
    * [Use the debug feature](#-debugging-understanding-how-your-ai-uses-your-info) to see what info was pulled
    * If the information exists and is saved but the AI didn't find it, [add multiple question variations](#-include-question-variations) so the AI can match the right content regardless of how the prospect phrases the request
  </Accordion>

  <Accordion title={`❌ Issue 2: "The AI is giving wrong information"`} description="The AI is pulling outdated, conflicting, or incomplete content">
    **What this means:** The AI is pulling outdated, conflicting, or incomplete content from your Knowledge Base.

    **How to fix it:**

    **Step 1: Review your documents**

    * Check for outdated content that's still in the Knowledge Base
    * Look for contradictory information across documents
    * Make answers more specific — vague answers cause the AI to "fill in gaps"

    **Step 2: Use debugging to identify the source**

    * [Open the debug popup](#-debugging-understanding-how-your-ai-uses-your-info) to see exactly which information the AI pulled
    * Update or remove the problematic content
  </Accordion>

  <Accordion title="Should I put everything in the Knowledge Base?">
    No. Focus on information your prospects actually need. Too much irrelevant information can confuse the AI's search.

    * ✅ **Include:** Anything a prospect might ask about
    * ❌ **Exclude:** Internal processes, information only employees need
  </Accordion>

  <Accordion title="How often should I update the Knowledge Base?">
    Update when:

    * Pricing, offerings, or policies change
    * You notice gaps ([use the missing info notifications!](#step-7-set-up-missing-info-notifications))
    * You have new products, services, or information to add

    **Best practice:** Review monthly, plus whenever something changes.
  </Accordion>

  <Accordion title="Can I use Markdown formatting?">
    Plain text works best. Keep formatting simple:

    * Use clear line breaks between Q\&As
    * Avoid complex formatting that might not be supported by WhatsApp, Instagram, or Messenger
  </Accordion>

  <Accordion title="What language should I use?">
    Write in the language your prospects use. Irelia's AI can understand and respond in 50+ languages, but your Knowledge Base should match your audience.
  </Accordion>

  <Accordion title="Should I include my prices in the Knowledge Base?">
    It depends on your business model:

    * **For standardized products / e-commerce:** Yes, include clear pricing. Prospects expect it.
    * **For services and high-ticket offers:** Consider omitting specific prices and directing prospects to book a call instead.

    See [Strategic Price Omission for Service Businesses](#-strategic-price-omission-for-service-businesses) for the full sales logic behind this approach.
  </Accordion>
</AccordionGroup>

<div id="-need-help" />

<Card title="🆘 Need Help?" icon="life-ring">
  **Irelia.ai Support:**

  * Contact support in the WhatsApp priority support group or send an email to [info@irelia.ai](mailto:info@irelia.ai)
  * Include: screenshots of your Knowledge Base setup, your account name, an example of the issue, and what you expected vs. what happened
</Card>
