# Why your website chatbot should answer from your own content

> A website chatbot should answer from your own content (the published entries in your CMS, the pages in your sitemap and documents you write for it) rather than from what a general model remembers about the web. Nothing has to be trained, so a page you publish is used from the next answer, drafts stay private, every answer can link to the page it came from, and the chatbot can say it does not know instead of guessing. Answers are only as good as that content, so write documents as short, self-contained questions and answers.

Source: https://diggama.com/guides/website-chatbot-grounded-in-your-content/
Last updated: 2026-10-14

A chatbot that answers from a general model knows a lot about the world and nothing reliable about you. Ask it your delivery times and it will produce a plausible number. A chatbot that answers from your own content knows only what you gave it, which is exactly what a visitor on your site needs: your prices, your terms, your articles, with a link to the page.

This guide explains why grounding matters (freshness, links, privacy, control), how to write content that makes good answers, and how to set up Diggama's [AI Chatbot](/press/ai-chatbot) on any website in about fifteen minutes. If you are still deciding whether a chatbot is worth it, start with [the benefits and limits of an AI chatbot on your website](/guides/ai-chatbot-for-your-website/).

## What does "answering from your own content" mean?

It means the model writes each answer from a body of knowledge you control, and is told to use nothing else. The model supplies language: understanding the question, writing a clear reply in the visitor's language. Your content supplies the facts.

The technique has a name, retrieval-augmented generation or RAG, from a [2020 paper by Lewis and colleagues](https://arxiv.org/abs/2005.11401). For each question, the system finds the passages of your knowledge that best match it and hands them to the model with the question. When the knowledge is small, there is no need to pick: Diggama gives the model all of it with every question, and switches to the best-matching passages once it grows.

The knowledge itself has four sources in Diggama:

- **Published entries** of the content types you tick (blog posts, services, team members).
- **Pages from your sitemap**, up to 100, for content that lives outside the CMS.
- **Documents** you write for the chatbot: an FAQ, delivery terms, opening hours.
- **Instructions**: tone, handover rules, and any facts you write in them.

## Why not let a generic model answer?

Because a generic model's knowledge is old, unlinked and not yours. It was trained on a snapshot of the web, may never have seen your site, and has no way to tell your current offer from last year's.

| | Generic model with your logo | Chatbot grounded in your content |
|---|---|---|
| Source of facts | Training data, frozen at a date | Your published content, documents and instructions |
| A new page | Unknown until a new model ships | Used from the next answer |
| Links | Invented or none | To the page the answer came from |
| Unknown question | Answers anyway | Says it does not know, gives your contact details |
| Off-topic question | Answers it, on your bill | Politely declines |
| Your drafts | Not applicable | Never read |

## Freshness: no training, the next answer knows

Training or fine-tuning a model on your content sounds thorough, but it bakes in a snapshot. Every edit means training again. A grounded chatbot reads your content when it answers. Diggama's checks before each answer whether your content or documents changed and, if so, reads them again; **Learn now** forces it. Fix a price at 10:00, and the 10:01 visitor gets the new one. Pages read through the sitemap are refreshed every night, or straight away with **Read again**.

## Links: answers that lead to your pages

An answer that ends with a link sends the visitor to the page with the detail, the images and the call to action. For CMS entries, the chatbot needs to know where each one is published, which only your website decides. In Diggama you give each content type a page address pattern once, such as `https://www.example.com/blog/{slug}`. Any text field of the content type can be a placeholder, plus `{id}`. Pages read through the sitemap need no setup: their address is already known.

## Privacy: drafts stay drafts

A CMS holds more than what is live: the post scheduled for Tuesday, the price change waiting for approval. A chatbot that reads everything leaks all of it. Diggama's reads only **published** entries, so drafts and scheduled entries stay private until they go live. Documents are different: they are read as soon as you save them, so keep internal notes out of them.

## Instructions: tone, priorities and handover

Instructions are where you tell the chatbot how to behave, in plain language. They take up to 8,000 characters, and facts written there are known too. A useful set covers four things:

```text title="Instructions"
We are Northwind Studio, a web agency in Lyon and Paris. We design and build
websites for growing companies.

Tone: friendly and direct, short answers, no jargon. Use "we".
Push: the free 30-minute discovery call. Link to the contact page when someone
asks about a project.
Avoid: never quote a price for a custom project, never promise a launch date.
Handover: for anything about an existing contract or invoice, ask the visitor
to write to hello@example.com. We answer within one working day.
```

Keep instructions about behaviour. Facts belong in your pages or documents, where editors can find and update them.

## How do you write documents and FAQs that make good answers?

Write for retrieval: each question with its answer, self-contained, so that one passage pulled out of context is still complete and correct. Documents in Diggama are plain text or Markdown, up to 50,000 characters each, and questions with answers work best.

Six rules:

1. **One question per heading, in the visitor's words.** "How long does delivery take?" rather than "Logistics".
2. **Fact first.** Start the answer with the number, the yes or the no.
3. **Spell out conditions and exceptions.** "Free delivery from 50€ in mainland France, 6,90€ below" beats "free delivery on most orders".
4. **No references to other answers.** "As mentioned above" means nothing to a passage read on its own.
5. **One fact, one place.** If opening hours appear in a document and on three pages, they will eventually disagree, and the chatbot cannot know which is right.
6. **Link to the page.** End with the address that has the full detail.

A weak entry and a strong one:

```markdown title="Document: Frequently asked questions (before)"
## Delivery
See our shipping page. Usually quick, depends on the destination
and the period. Contact us for more.
```

```markdown title="Document: Frequently asked questions (after)"
## How long does delivery take?
Orders placed before 14:00 on a working day ship the same day.
Delivery takes 2 to 3 working days in mainland France and 4 to 6 in
the rest of the EU. We do not ship outside the EU.
Details: https://www.example.com/delivery

## Is delivery free?
Delivery is free from 50€ in mainland France. Below 50€ it costs 6,90€.
For the rest of the EU, the price is shown at checkout.
```

The first version gives the model nothing to answer with, so a careful chatbot says it does not know. The second answers four questions precisely.

## How do you set it up in Diggama?

The setup takes a Developer or Administrator about fifteen minutes. Editors can then follow the conversations.

![The AI Chatbot settings page in Diggama, with knowledge sources on the left and the live widget preview on the right.](/press/chatbot/setup.png)

1. **Pick what it knows.** In **AI Chatbot › Settings**, under **What it knows**, tick the content types it should read, for example Posts and Services.
2. **Link to your pages.** Click **Link to your pages** next to each content type and enter its page address, such as `https://www.example.com/blog/{slug}`.
3. **Add your sitemap.** Switch on **Use your website's sitemap to enrich answers** and paste `https://www.example.com/sitemap.xml`, or just your website's address: Diggama finds the sitemap through `robots.txt`, then `/sitemap.xml` and `/sitemap_index.xml`. Up to 100 pages on that domain are read, shallowest first.
4. **Add documents** for what is not on your site yet: the FAQ, delivery terms, opening hours.
5. **Write the instructions**, as above.
6. **Set the look.** A name, a colour (eight presets or any hex code), bottom left or right, a welcome message (also shown as a small nudge bubble) and up to four suggested questions that visitors tap to ask.
7. **Choose lead capture.** **Never**, **Optional** (name and email with a Skip button) or **Required** (an email before the first message).
8. **Switch it on and save**, then install the snippet before `</body>` on every page where the chat should appear:

```html title="Every page, before </body>"
<script src="https://api.diggama.com/chat/widget.js" data-chatbot="cb_xxxxxxxx" defer></script>
```

It works on WordPress, Webflow, Astro, Next.js or plain HTML. The widget is isolated from your styles, adapts to phones and keeps the conversation when the visitor changes page. To open it from your own button, call `DiggamaChat.open()`. Under **Allowed domains**, list your domains so the snippet only works on your site.

## How do you test it before visitors do?

Use the live preview in Settings: preview conversations are free and labelled **Test**. Ask four kinds of question:

- **Your top ten real questions**, from your inbox. Each answer should be correct and link to the right page.
- **Questions you have not answered anywhere.** The right reply is "I don't know" with your contact details.
- **Off-topic questions**, such as a recipe or a homework problem. It should decline.
- **A question in another language.** The answer should come back in that language.

When an answer is wrong, fix the content it came from rather than adding a correction to the instructions. The page is wrong for human visitors too.

## How do you keep it accurate after launch?

Treat conversations as editorial feedback. Once a week, open **Conversations**, filter on **Unhelpful answers** and read what was asked. Each one points to a page to fix, a document to extend or a question to answer for the first time. Because nothing is trained, the fix takes effect from the next answer.

The AI Chatbot is included in every Diggama plan, metered in conversations: 30 a month on Starter (29,90€ /month), 100 on Growth (89€ /month, 3 months free trial) and 400 on Enterprise (249€ /month), with extra conversations at 49€ per 100 conversations / month on any plan. See [pricing](/pricing) and the [chatbot documentation](https://docs.diggama.com/chatbot) for every setting.

## FAQ

### Do I need to train an AI chatbot on my website content?

No. A grounded chatbot does not change the model at all: it gives the model the relevant parts of your content with each question and tells it to answer only from them. With Diggama's AI Chatbot, nothing is trained, and before each answer it checks whether your content or documents changed, so a publication is used from the next answer.

### What is a grounded or RAG chatbot?

A chatbot that answers from documents you provide instead of from the model's general knowledge. RAG (retrieval-augmented generation) is the usual technique: find the passages that best match the question, then have the model write the answer from those passages. When the knowledge is small enough, the whole of it can be given to the model instead.

### Can the chatbot see my draft or scheduled content?

Not in Diggama. The chatbot reads only published entries of the content types you tick, so drafts and scheduled entries stay private until they go live. Documents you add in the chatbot settings are read as soon as you save them, so do not put anything there that visitors should not learn.

### How should I write an FAQ so a chatbot answers well?

One question per heading, phrased the way visitors ask it, followed by an answer that stands on its own: the fact first, with numbers, conditions and exceptions spelled out, and the link to the page that has the detail. Avoid answers that depend on the previous one, and keep each fact in one place so two versions never contradict each other.

### Can a chatbot use pages that are not in my CMS?

Yes, through your sitemap. Diggama's chatbot can read up to 100 pages of your website from its sitemap, shallowest first, keeps their main content without menus or footers, links answers to them and reads them again every night. That suits a site where only the blog is in the CMS and the service pages are hardcoded.
