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

# AI Knowledge Base

> Train the AI Agent on your own business content under Chatbot Manager → AI → AI Knowledge Base — set a Prompt Message and load Content/FAQ, a URL, a File, a Google Sheet, or an HTTP API as the training source, so AI replies stay accurate to the business instead of generic. Use this when a customer's AI assistant gives vague or wrong answers and they want it grounded in their own docs.

<Frame caption="Chatbot Manager → AI → AI Knowledge Base, with the add-content icon highlighted on a campaign with no training data yet.">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-01-ai-knowledge-base-list.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=32130ef934f482371b2ace16bb36e8d5" alt="AI Knowledge Base list showing several training campaigns, one flagged No training data found. Please add data, with its add-content action icon highlighted" width="1241" height="548" data-path="images/learn/whatsapp-ai-knowledge-base/step-01-ai-knowledge-base-list.png" />
</Frame>

**Chatbot Manager → AI → AI Knowledge Base** trains the AI Agent on your own business content —
FAQs, product information, internal docs — so its replies stay accurate to your business instead
of sounding generic. This requires [AI Agents and Intent Detection](/learn/whatsapp-ai-agent) to
be enabled and connected first; the knowledge base supplies the *knowledge*, the AI Agent
settings supply the *behavior* that uses it.

Click **New Campaign** to create one. A campaign with no data yet is flagged **"No training data
found. Please add data."** and won't affect AI replies until you add content.

## Creating a campaign

<Steps>
  <Step title="Name the campaign">
    Give it a name that helps you identify its purpose later, e.g. `Customer Support`.
  </Step>

  <Step title="Write the Prompt Message">
    <Frame>
      <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-02-create-training-campaign-prompt.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=11c2dbba9e80601dd175a3455fa3f00a" alt="Create A Training Campaign modal with Campaign Name and Prompt Message fields, Prompt Message filled with an example support-agent instruction" width="603" height="584" data-path="images/learn/whatsapp-ai-knowledge-base/step-02-create-training-campaign-prompt.png" />
    </Frame>

    The **Prompt Message** is the initial training text — a starting guide that tells the AI its
    role and tone. Example used in practice:

    > "You are our support agent. Always respond as a representative of our \[company], referring
    > to 'we' or 'our company' when discussing features, services, or policies. Maintain a
    > professional and friendly tone. Your role is to assist customers with accurate and helpful
    > information about our offerings."

    This is separate from the **Instruction to AI** field under **AI API Integration** on the
    [AI Agents and Intent Detection](/learn/whatsapp-ai-agent) page: that one sets the
    assistant's overall behavior across the whole account, while the Prompt Message here is
    specific to this campaign's content and role.
  </Step>

  <Step title="Choose one content source">
    Add content from exactly **one** of these sources — click its tab to open the matching
    panel:

    * **Content or FAQ** — type or paste text/Q\&A pairs directly.
    * **URL** — point at a page (e.g. an FAQ or docs page) to pull content from.
    * **File** — upload a document.
    * **Google Sheet** — pull structured content from a connected sheet.
    * **API** — pull content dynamically from one of your configured
      [HTTP APIs](/learn/whatsapp-http-api-integration).

    You can only pick one source at a time — selecting one automatically disables the others,
    to avoid conflicting data:

    * Choosing **Content or FAQ**, **URL**, or **File** disables **Google Sheet** and **API**.
    * Choosing **Google Sheet** disables all other options.
    * Choosing **API** disables the remaining options.

    <Tip>
      Pick the source that matches how your content is already organized — you can always reset
      and switch to a different source later if it turns out to be the wrong fit.
    </Tip>
  </Step>
</Steps>

### Content or FAQ

<Frame caption="Add Content or FAQs for Training — a free-text box for a summary or FAQ list, with Add More FAQ to add additional entries.">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-03-add-content-faq.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=28cfd9412f04b23755c003b2dd9a0a3d" alt="Add Content to a Training Campaign panel with the Content or FAQ tab active and a free-text box for training content" width="1093" height="495" data-path="images/learn/whatsapp-ai-knowledge-base/step-03-add-content-faq.png" />
</Frame>

Enter a **Summary** (a detailed overview the AI can reference for highly contextual replies, at
the cost of more tokens) or break content into specific **Question/Answer** pairs (more
token-efficient, since the bot references only the exact match). Click **Add More FAQ** for
additional entries.

### URL

<Frame caption="Add URLs — a page link plus optional selectors to include or exclude specific parts of the page.">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-04-add-url.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=c2a1ef6e50ce16d6862682a159433cef" alt="Add URLs panel with a Campaign URL field, Fetch Content Configuration selectors, and Remove Content Configuration selectors" width="1076" height="536" data-path="images/learn/whatsapp-ai-knowledge-base/step-04-add-url.png" />
</Frame>

Enter the page URL, and optionally use **Fetch Content Configuration** / **Remove Content
Configuration** selectors (by class or ID) to control exactly which part of the page the AI
learns from. Then choose **Generate Raw Response** (one detailed answer, more tokens) or
**Generate FAQ** (split into concise Q\&A entries, fewer tokens).

### File

<Frame caption="Add Files — upload a document (PDF, Word, Excel, CSV, OpenDocument, or TXT).">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-05-add-file.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=63ab815c9f4cfe95375f6aef64baec41" alt="Add Files panel with an Upload button for PDF, Word, Excel, CSV, OpenDocument, and TXT files" width="1094" height="534" data-path="images/learn/whatsapp-ai-knowledge-base/step-05-add-file.png" />
</Frame>

Upload training manuals, product guides, or FAQs as PDF, Word (`.doc`/`.docx`), Excel
(`.xls`/`.xlsx`), CSV, OpenDocument (`.ods`/`.odt`), or TXT. Same **Generate Raw Response** /
**Generate FAQ** choice applies once uploaded.

### Google Sheet

<Frame caption="Add Google Sheet — pick a connected sheet to import as training content.">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-06-add-google-sheet.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=eebaaeb917b6eb8eabb034709795cbe8" alt="Add Google Sheet panel with an Import From Google Sheet dropdown" width="1106" height="541" data-path="images/learn/whatsapp-ai-knowledge-base/step-06-add-google-sheet.png" />
</Frame>

Pick a sheet already connected under
[Google Sheet Integration](/learn/control-panel-google-sheet-integration).

### API

<Frame caption="Add HTTP API — pick one of your configured HTTP APIs as a dynamic training source.">
  <img src="https://mintcdn.com/chatsyncs/FizLP_1ybB1FGp5E/images/learn/whatsapp-ai-knowledge-base/step-07-add-http-api.png?fit=max&auto=format&n=FizLP_1ybB1FGp5E&q=85&s=c0b0563c80835669d28fb1d76b66ee76" alt="Add HTTP API panel with an HTTP API List dropdown" width="1086" height="534" data-path="images/learn/whatsapp-ai-knowledge-base/step-07-add-http-api.png" />
</Frame>

Pick one of your configured [HTTP APIs](/learn/whatsapp-http-api-integration) — content is
pulled dynamically from that endpoint's response rather than stored statically.

## Google Account permissions this needs

If you plan to use **Google Sheet** as a training source, or want subscriber contacts synced
alongside it, make sure the connected [Google account](/learn/control-panel-google-sheet-integration)
granted **both** the Sheets and Contacts permissions during sign-in — granting only Sheets
access will leave contact-dependent features without data.

## Use cases

* **Customer support** — answer common questions the way a trained support agent would, in the
  business's own voice.
* **Product information** — ground answers in the business's actual catalog or specs instead of
  generic AI guesses.
* **Internal documentation** — let staff-facing bots answer from internal wikis or SOPs.
* **Business FAQs** — turn an existing FAQ page or document directly into AI training content.

## Frequently asked

<AccordionGroup>
  <Accordion title="How do I make the AI assistant answer based on my own business info instead of generic answers?">
    Create a campaign under **AI Knowledge Base**, write a **Prompt Message** describing the
    AI's role and tone, then add your business content (FAQs, product info, docs) as training
    data from one source — Content/FAQ, URL, File, Google Sheet, or API.
  </Accordion>

  <Accordion title="Can I add my FAQ page URL and a Google Sheet to the same campaign?">
    No — you can only use one content source at a time per campaign. Choosing **Google Sheet**
    or **API** disables every other source; choosing **Content or FAQ**, **URL**, or **File**
    disables Google Sheet and API. Create separate campaigns if you need multiple sources.
  </Accordion>

  <Accordion title="What's the difference between the Prompt Message here and Instruction to AI under AI API Integration?">
    **Instruction to AI** (under **AI API Integration** on the
    [AI Agents and Intent Detection](/learn/whatsapp-ai-agent) page) is the account-wide system
    prompt. The **Prompt Message** here is scoped to this specific campaign — its role, tone,
    and content — layered on top of that account-wide instruction.
  </Accordion>

  <Accordion title="My campaign says 'No training data found' — why aren't AI replies using it?">
    A campaign with no content added yet does nothing. Open it and add data from one of the five
    supported sources — the flag clears once real training content is present.
  </Accordion>
</AccordionGroup>

<Warning>
  * **An AI Knowledge Base campaign with no data does nothing** — it must show actual training
    content, not the "No training data found" flag, before it affects AI replies.
  * **Content sources are mutually exclusive per campaign** — picking a new source silently
    disables the others rather than combining them; don't assume unchecked sources are still
    contributing data.
</Warning>
