Write Website Pages an AI Chatbot Can Answer From

A website chatbot answers from text you give it. Crawling the homepage is not enough when the fact a visitor needs is missing from that text, split across two documents that disagree, or stored only as a note in your head.

A website layout on a screen next to a printed page, with a chat button on the page
The widget can repeat what is written on the page or in a context entry. It cannot invent the fact you never wrote down.

This is the step that setup checklists usually skip. They tell you to paste a site URL, upload a PDF, and drop in a script. HolderChat can do those things. The answers still depend on how the pages are written, and on what you add when a page does not exist yet. If you have not created a bot, start with Creating Your First Chatbot, then add sources as described in Teach Your Website Chatbot with Your Own Documents.

HolderChat is free to use. You can create an account and follow this guide. See Free access.

Put the fact in the page text

Write the answer the way you would say it to a visitor, in the body of a public page. Opening hours, a return rule, a service area, and a how-to step belong in sentences, not only in a banner image or a button label.

On WordPress, a page that is only a shortcode, with no article text, does not become knowledge. The connector sends page and post content. If the content is empty once shortcodes are set aside, the bot has nothing to answer from. Put the fact in the editor as normal text.

Keep one current version of each fact. If a PDF and a live page disagree, both can be used as sources, and the bot can surface either wording. Delete the old file or edit the page so they match, then rebuild. Overlapping context entries cause the same clash: remove the duplicate and align the wording.

When you add a website in Knowledge Sources, review the menu preview and confirm the page is in the set being parsed. After parsing, open Website Info and check the parsed-page count and any crawl errors. A page that never made it into that list cannot answer questions.

Store a fact that has no page

Some facts should not wait for a new URL. Additional Context stores them as a short subject plus a text block, up to 10,000 characters. Use it for a policy note, a clarification, or an answer you are not ready to publish as its own page. It does not replace a crawl of the whole site.

  1. Open the bot and go to the Additional Context tab.
  2. Add an entry. Put a short label in Subject and the full answer in Text.
  3. Save the entry.
  4. When the yellow banner says changes were detected, click Rebuild Bot.

Saving the entry does not update live answers. The rebuild does.

Answer only when the question matches

Context Sources are separate from Additional Context. Each entry has a title, a description of when to use it, and the response text the bot should know. The description is the trigger. A vague description is skipped.

Set the retrieval mode at the top of the tab:

  • Always — use the entry on every related question.
  • When relevant — use it only if the question matches the topic in the description.
  • When missing — the default. Use it when the question matches and the answer is not already in context.

Write the description as the kind of question it is for, for example “Visitor asks how to change a booking,” not “general help.” If an entry never appears, the description is too broad, or When missing is skipping it because the website already contains an answer. Sharpen the description, or switch the mode to When relevant. Changing the mode requires a rebuild, the same as adding or editing an entry.

On WordPress, choose the pages

With the HolderChat Connector, every published page and post is synced unless you turn on custom content selection. That default is fine when the whole site is safe for a visitor to hear back. It is a poor fit when campaign pages, thin landing pages, or internal notes would become answers.

  1. In WP Admin, open HolderChat, then Setup or Settings.
  2. Check Use custom content selection.
  3. Click Refresh, then include only the pages and posts the bot should learn.
  4. Save the selection. A real change triggers a rebuild. Deselected content is removed from knowledge after that rebuild.

The checkbox behavior for parent pages, including page-only versus page-and-children, is documented in WordPress Content Selection. Posts are a simple include or exclude.

Rebuild, then embed

Editing the website, an Additional Context entry, or a Context Source does not change the live bot by itself. Click Rebuild Bot when the yellow banner appears, wait until the bot is Active, and test the questions you care about. The checks are in Test Your Website Chatbot Before You Go Live.

After the answers are right, embed the official widget. Copy the token from your bot’s embed screen and paste this before </body>:

<script src="https://holderchat.com/dynamic/get.js?token=YOUR_TOKEN" async></script>

The iframe method is also one script tag. It loads the same widget inside a sandboxed frame. Custom CSS and JavaScript apply only to this embed, not to the script above:

<script src="https://holderchat.com/dynamic/iframe.js?token=YOUR_TOKEN" async></script>

Replace YOUR_TOKEN with the token shown for that bot. Do not retype the URL from memory. The full install, including where the snippet goes, is in How to Embed a Chatbot on Your Website in 5 Minutes. On WordPress you can skip the snippet and use the WordPress plugin, which places the widget for you.

Frequently asked questions

Why does the bot miss a fact that I can see on the site?

The usual causes are that the fact is not in the page text, the page was not in the crawl or the WordPress selection, or you have not rebuilt since the edit. Check Website Info for crawl errors, confirm the page is selected, and click Rebuild Bot.

Do I need a separate FAQ file?

No. A normal page with the answer written out is enough. Use Additional Context when the fact has no page. Use a Context Source when the reply should appear only for a matching question.

Does saving the WordPress page update the chatbot immediately?

No. WordPress sync sends the new content, and answers change after the rebuild finishes. Until then, test chats can still show the previous wording.

Write the page, then add the widget

Put the answer in the page, add context only for what has no page, rebuild, and test. Other walkthroughs are on HolderChat Guides.