---
title: "How to give your AI chat bot knowledge: text, web pages and files"
description: "An agent answers your visitors from its knowledge: a list of items, each one Markdown you write, a web page read from its URL, or a PDF or image from your media library. Add your menu page, a price list PDF or a photo of a flyer, and the chat bot behind your QR code answers from it."
canonical: "https://linkbreakers.com/help/article/how-to-give-your-ai-chat-bot-knowledge-text-web-pages-and-files"
last-updated: 2026-11-26
---

# How to give your AI chat bot knowledge: text, web pages and files

> An agent answers your visitors from its knowledge: a list of items, each one Markdown you write, a web page read from its URL, or a PDF or image from your media library. Add your menu page, a price list PDF or a photo of a flyer, and the chat bot behind your QR code answers from it.

:::try-ai-prompt {"prompt":"Add our menu page fernhillkitchen.com/menu and the allergen PDF I'm attaching to the knowledge of our agent Sage, then tell me when both are ready.","target":"assistant","description":"Ask the Assistant to add a web page and a file to an agent's knowledge."}:::

## Short answer

An agent's knowledge is a list of **knowledge items**. Each item is one of three kinds:

- **Markdown**: text you write or paste in the item, such as your opening hours, prices or an FAQ.
- **Web page**: the address of one page of a website, such as your menu page or a property listing. Linkbreakers reads the page and keeps its text.
- **File**: a PDF or an image (PNG, JPEG or WebP) from your [media library](/help/article/your-media-library-kinds-where-its-used-and-storage), such as a PDF menu, a price list or a photo of a flyer. An AI model reads it into text.

All the items together are what the agent answers from when it chats with the people who scan your QR code in a [Chat bot step](https://linkbreakers.com/help/article/how-to-add-an-ai-chat-bot-to-a-qr-code). Add them in the **Knowledge** section of the agent, in **Build > Agents**, or ask the Assistant.

## Quick summary

- One item is one line in the agent's **Knowledge**: its kind, its title, its address or file name, and its status.
- A Markdown item is ready at once. A web page or a file is read in the background: **Reading**, then **Ready**, or **Failed** with the reason.
- One web page item reads one page, not a whole website. Add one item per page that matters.
- **Refresh** (the circular arrows on the item's line) reads a web page or file again, after the page changed or to retry one that failed. The agent keeps the text it had until the new reading is ready.
- Replacing a file in the media library reads it again on its own.
- Up to 20 items per agent and 50,000 characters in all. A web page or file counts as the text read from it.
- Markdown and web pages cost nothing to add. Reading a file uses a few platform credits, like a chat message.
- Available in the dashboard, from the Assistant, through the MCP server and the API.

## Step-by-step

1. Open **Build > Agents** in the dashboard menu and open your agent (or [create one](https://linkbreakers.com/help/article/how-to-create-an-agent)).
2. In **Knowledge**, click **Markdown**, **Web page** or **File**.
3. Fill it in as in the table below, and save.
4. Wait for a web page or file to show **Ready**. It usually takes a few seconds, and up to a minute for a long PDF.
5. Scan your QR code and ask the chat a question that only the new item answers, to check it reads the way you expect.

| You choose | You give | Title |
|---|---|---|
| Markdown | The text, written or pasted | Required, up to 120 characters |
| Web page | The page's address, starting with `http://` or `https://` | Optional: left empty, the item takes the page's title |
| File | A PDF or an image, uploaded or picked from your media library | Optional: left empty, the item takes the file's name |

To change an item, edit its title, its text, its address or its file: a new address or file is read again. The kind of an item cannot change; to switch, add a new item and remove the old one. Removing a file item leaves the file in your media library.

## The three kinds of items

| Kind | Best for | Read | Cost to add |
|---|---|---|---|
| Markdown | Facts you know by heart, notes for the agent, anything that is not online | Ready at once | Free |
| Web page | A page you already keep up to date: a menu, a listing, a product page, an FAQ page | Read once in the background, again when you refresh it | Free |
| File | A PDF menu, a brochure, a price list, a photo of a sign or a flyer | Read once by an AI model, again when you refresh or replace the file | A few platform credits |

You can mix them. A restaurant can add its menu page, the allergen chart as a PDF and a Markdown item with tonight's specials. An estate agency can add one web page item per home for sale and a Markdown item on how viewings work. A shop can add a photo of its price board.

### Markdown

Markdown is plain text with a few marks for headings and lists. Headings, short paragraphs and lists help the agent find the right answer:

```markdown
## Opening hours
- Monday to Friday: 12pm to 2:30pm, 7pm to 10:30pm
- Saturday: 7pm to 11pm
- Closed on Sundays
```

A Markdown item needs a title, up to 120 characters.

### Web pages

Linkbreakers fetches the page as its own bot, the way a search engine would, and turns it into text. Navigation menus, cookie banners and scripts are left out, so the agent keeps the content of the page. An address that serves a PDF is read like a file.

A page is read when you add it and when you click **Refresh**, not on a schedule. When you change your menu page, refresh the item so the agent knows.

Some pages cannot be read:

- a page that is built in the browser by JavaScript, with almost no text in what the site sends,
- a page behind a sign-in or a paywall,
- a site that blocks automated visitors.

For those, paste the page's text in a Markdown item, or save the page as a PDF and add it as a file.

### Files

A file item reads a PDF of up to 25 MB, or a PNG, JPEG or WebP image of up to 10 MB, from your media library. An AI model reads it and writes out its text, tables and lists included. A scanned menu or a photo of a printed price list works, as long as the text can be read on the picture.

Reading a file uses platform credits, priced like a chat message from what the model used: a long PDF takes a few credits, a short one about 1. Markdown and web pages cost nothing to add.

A file an agent reads shows in the media library under **Used as**, as **Agent knowledge** with the agent's name, and it cannot be deleted while an agent uses it. **Replace file** in the media library puts a new version in place and the agent reads it again on its own: your weekly menu PDF stays the agent's menu without touching the agent. The new file must still be a PDF or an image.

## Statuses and why an item fails

| Status | What it means |
|---|---|
| Reading | The page or file is being read. A new item is not known by the agent yet; an item being read again keeps its previous text until the new one is ready. |
| Ready | The agent knows the item's text. |
| Failed | The page or file could not be read, and the agent does not know it. The item says why. |

The reasons are written in plain words. The common ones:

- **The page answered 404 Not Found** (or another error): the address is wrong or the page was removed.
- **The page shows almost no text to read**: it may be built by JavaScript or be mostly images.
- **The site may block automated visitors or need a sign-in**.
- **No readable text was found in the file**: an image with no text, for example.
- **Not enough room left**: the page or file has more text than the agent's other items leave room for. Remove or shorten other items, then refresh this one.
- **No platform credits left to read this file**: add credits, then refresh the item.

Click **Refresh** on a failed item to try again once the cause is fixed.

## Limits

- 20 items per agent.
- 50,000 characters of text across all items. A web page or file counts as the text read from it, not its size.
- A title holds up to 120 characters.
- Files: a PDF of up to 25 MB, or a PNG, JPEG or WebP image of up to 10 MB.
- One web page item reads one page. Linkbreakers does not follow links or crawl a whole site.
- Pages and files are read when added, refreshed or replaced, never on a schedule.

The agent reads its knowledge every time it answers, so more knowledge makes each chat message cost a little more. See [what a chat costs](https://linkbreakers.com/help/article/how-to-add-an-ai-chat-bot-to-a-qr-code#what-it-costs).

## For developers and AI assistants

Knowledge items have their own endpoints in the [API](https://linkbreakers.com/help/api): `POST /v1/agents/{agentId}/knowledge-items` with `kind` `AGENT_KNOWLEDGE_ITEM_KIND_MARKDOWN` (`title`, `content`), `AGENT_KNOWLEDGE_ITEM_KIND_WEB_PAGE` (`url`) or `AGENT_KNOWLEDGE_ITEM_KIND_MEDIA` (`mediaId`), then `PATCH` and `DELETE` on `/v1/agents/{agentId}/knowledge-items/{id}`, and `POST /v1/agents/{agentId}/knowledge-items/{id}:refresh`. Getting the agent returns each item with its `status`, its `failureReason` and the text read in `content`. The MCP server and the Assistant have the same as the tools `agents_knowledge_items_create`, `agents_knowledge_items_update`, `agents_knowledge_items_refresh` and `agents_knowledge_items_delete`.

## Frequently asked questions

### Can my chat bot answer from my website?

Yes, page by page. Add a web page item for each page that holds answers, such as your menu, your prices or your FAQ page. Linkbreakers reads each page you add; it does not follow links to the rest of the site. Refresh an item when its page changes.

### Can I give the chat bot a PDF menu?

Yes. Add it as a file item, from your computer or from the media library. If an Open media step already hands the same PDF to your guests, pick that one: when you replace it next week, guests get the new menu and the agent reads it again.

### Why did my web page fail?

The item says why. Most often the page is built by JavaScript in the browser, sits behind a sign-in, or the site blocks bots. Paste the page's text in a Markdown item, or add the page as a PDF.

### Does the agent see changes to my website?

Not on its own. A page is read when you add it and each time you click **Refresh**. While it reads again, the agent keeps answering from the text it had.

### Does adding knowledge cost anything?

Markdown and web pages are free to add. Reading a file uses a few platform credits, priced like a chat message. Every chat message then costs a little more when the agent has more knowledge to read.

### Will the agent make things up when its knowledge has no answer?

Turn on the **Only answer from knowledge** guardrail in the agent's settings. It then says it does not know rather than guessing. A guardrail steers the AI model; it is not a guarantee, so test the chat with the questions your visitors ask.

## Last reviewed

2026-11-26
