# Knowledge bases

> Giving your agent your pricing, policies, and FAQs to answer from — the three ways to add content, and what actually works.

Source: https://docs.cleartalk.ai/docs/guides/knowledge-base

A knowledge base is a body of information your agent can look things up in during a conversation. It's the difference between an agent that says "let me have someone get back to you" and one that answers the question.

<Summary
  items={[
  "Three ways to add content: paste text, upload a file, or scrape a website.",
  "Attach a knowledge base to an agent and it can answer from it mid-conversation.",
  "Scraping your own website is the fastest useful minute in setup.",
  "Small and current beats large and stale — every time.",
]}
/>

## Creating one

**Knowledge Base** in the sidebar, then **Create Knowledge Base**. Give it a name and a description, then pick how you're adding the content.

<Screenshot
  src="/img/knowledge-base-list.png"
  alt="The Knowledge Base page with a search box and Source and Status filters above the list of existing knowledge bases."
  caption="What you already have, with search and filters on top. Create Knowledge Base opens the form."
  pins={[
  { x: 96.7, y: 12.7, from: "right", at: 102, label: "Opens the form, with its three ways to add content." },
  { x: 21, y: 33.6, from: "left", at: -2, label: "Filter by source or processing status." },
  { x: 21, y: 47.3, from: "left", at: -2, label: "Existing knowledge bases, each with the description you gave it." },
]}
  redactions={[{ x: 3.4, y: 93.6, w: 11.6, h: 5.2, reason: "Account name and email hidden" }]}
/>

<Screenshot
  src="/img/knowledge-base-tabs.png"
  alt="The Create Knowledge Base dialog with the Web Scrape tab selected"
  caption="Three ways in. Web Scrape is selected here — Discover previews the pages before anything is pulled in."
  pins={[
  { x: 26.7, y: 33, from: "left", at: -2, label: "Text, File Upload or Web Scrape." },
  { x: 73.3, y: 44.1, from: "right", at: 102, label: "The description is for you, not the agent — name it for what it answers." },
  { x: 48.9, y: 63.4, from: "right", label: "Lists the pages that would be scraped, before anything is saved." },
]}
  redactions={[{ x: 3.4, y: 93.6, w: 11.6, h: 5.2, reason: "Account name and email hidden" }]}
/>

### Text

Paste content straight in. Best for things that don't exist as a document anywhere — pricing you keep in your head, the answers your team gives on the phone every day, the three objections you always get.

This is the highest-quality source, because you're writing exactly what you want the agent to say rather than hoping it extracts it from a brochure.

### File upload

Upload a document: TXT, PDF, MD, DOCX, MP3, MP4, CSV, JSON, XML, or HTML.

Good for material that already exists in a usable form — a price list, a policy document, a product manual. Less good for marketing PDFs, which are mostly design and slogans with very little answerable content.

### Web scrape

Point it at your website. Two modes:

* **Single Base URL** — give it your domain and click **Discover** to preview which pages would be scraped, then scrape them.
* **Multiple URLs** — paste a specific list, up to 100.

**Discover first.** It shows you what's about to be pulled in, and it's usually the moment you notice your blog archive and every paginated listing page are included.

<Key>
  Scraping your own site is the fastest useful thing you can do here — one minute of work for an agent that knows your services, hours, and locations. Do it even if you plan to write something better later.
</Key>

## Attaching it to an agent

On a voice agent's form (Inbound or Outbound), the **Knowledge Base** wizard on the right rail lets you attach one or more. From then on the agent can consult them while it's talking.

Texting agents don't have that rail — they're pathway-driven, and there's no agent-level attach point. Add a **Knowledge Base** step to the pathway instead; see [Building a texting agent](/docs/texting/texting-agents) and the [pathway node reference](/docs/pathways/node-reference).

Attach the ones relevant to that agent's job. An agent booking roof inspections doesn't need your employee handbook, and every irrelevant document is one more thing it might answer from when it shouldn't.

## What makes a good knowledge base

<DoDont
  goodTitle="Works well"
  badTitle="Works badly"
  good={[
  "Direct answers to questions people actually ask.",
  "Current pricing, hours, service areas, and policies.",
  "Your top ten objections, with the answer you'd want given.",
  "Plain statements of fact, in short sections.",
]}
  bad={[
  "A 90-page PDF where three paragraphs are relevant.",
  "Marketing copy with no factual content.",
  "Anything with prices you haven't updated in a year.",
  "Internal documents with information customers shouldn't hear.",
]}
/>

<Callout type="warn" title="Assume everything in here can be said out loud">
  An agent may quote anything in an attached knowledge base to a customer. Don't upload internal pricing floors, margin information, competitor notes, or anything about a customer you wouldn't say to their face.
</Callout>

## A better use than you might expect

Most people load a knowledge base with product information. The higher-value content is usually **the objection handling** — the things your best salesperson says when someone pushes back.

> "It's too expensive." → We're not the cheapest. What we do include is X and Y, which the cheaper quotes don't. Most people find it works out even after the first year.

That's a knowledge base entry. It's also the difference between an agent that folds at the first objection and one that has a conversation.

## Keeping it current

The failure mode isn't a bad knowledge base — it's an out-of-date one. An agent confidently quoting last year's prices is worse than one that says it'll check.

Two habits:

1. **When your prices change, update the knowledge base the same day.** Put it on the same checklist as your website.
2. **Re-scrape after a site redesign.** The old scrape doesn't know your pages moved.

To change a text knowledge base, open the &#x2A;*⋯** menu on its row and choose **Edit content**. For a file, choose **Replace file** and upload a new one of the same type. Agents and Pathways using it stay connected, and its status shows **Processing** until the new content is ready.

You can also ask the Assistant. It reads a text knowledge base and proposes the edit for you to approve. For a file, it shows a card in the chat where you upload the new version.

<Callout title="Small and current beats large and stale">
  Ten accurate paragraphs beat a hundred pages nobody has read since the upload. If you're not sure whether something is still true, it doesn't belong in here.
</Callout>

## When a knowledge base isn't the answer

A knowledge base is for *static* information. If the answer changes per customer — their order status, their appointment time, their balance — you need a [tool](/docs/tools) instead, which looks the answer up live in your system.

The distinction in one line: knowledge base for what's true about your business, tools for what's true about this customer.
