Skip to content
Free for one site, 50 pages, 100 questions a month. No card.

Add AI chat to your docs site (Docusaurus, MkDocs, Hugo and others)

You can add an AI assistant to a docs site with one script tag. Add your docs' sitemap to Talk To My Sites, paste the tag into a place that loads on every page, and visitors can ask questions and get answers drawn only from your docs, with links to the pages used. It works with any public docs site that has a sitemap, an RSS feed or an llms.txt, and somewhere to add a script tag. The free plan covers one site and 50 pages, with no card.

This page covers what you get, how to check your sitemap, where the tag goes, and how to use the questions your docs couldn't answer to improve them.

What you get

Answers for readers. A to-do list for you. It answers only from your indexed pages, not from the wider web. Like any AI model it can still get things wrong, so check answers for important topics in the dashboard preview.

  • Answers from your docs, with sources

    Every answer lists the pages it was written from. Visitors can click through, and you can check them.

  • A list of what your docs miss

    Questions your pages can't answer are marked Unanswered in your dashboard under analytics, so you can see what to write next.

  • Replies in the visitor's language

    Even when your docs are in another one.

  • No build step

    The widget is plain JavaScript, under 10 KB compressed. It loads after your page, and renders in a Shadow DOM so it won't clash with your theme's CSS.

  • An Ask AI box in your header

    Add data-mode="search" and data-target to the tag, and the widget puts an "Ask AI" box inside that element. Pressing Enter opens the chat with the question.

  • Search for coding agents

    On Starter and Pro, turn on the site's MCP server and developers can search your docs from Claude Code, Cursor, VS Code or the Claude apps with one URL.

Step 1: check your sitemap

Talk To My Sites reads your site through its sitemap. Every page listed there is fetched, cleaned up and indexed. Sitemap index files (up to 25 child sitemaps) and gzipped sitemaps work. The sitemap must be on your site's own domain.

Open https://your-docs-site.example/sitemap.xml and look for your key pages. Most docs generators can produce one.

If you don't know your sitemap URL, try /sitemap.xml or /sitemap-index.xml on your domain.

No sitemap? The same field takes an RSS or Atom feed or an llms.txt, or you can paste a list of page URLs. Path filters let you index only some paths, like /docs/*, or leave some out. See Add a site.

Step 2

Add your site and paste the tag

Create an account, paste your sitemap URL, and click Add site. You'll get a site ID. The tag looks like this, with your own ID in place of YOUR_SITE_ID.

For a plain HTML site, that goes before </body> on each page, or in the shared footer include. For a docs generator, you need a way to add that script to every page. The usual options are a config setting that injects scripts, a theme footer or layout override, or a custom-HTML slot.

Every page
<script src="https://app.talktomysites.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>

Where the tag goes in your docs generator

Docusaurus

In docusaurus.config.js, add the widget to the scripts array. Docusaurus puts these tags in the <head> of every page and passes extra attributes through: scripts: [{ src: 'https://app.talktomysites.com/widget.js', defer: true, 'data-site-id': 'YOUR_SITE_ID' }]. See the scripts option.

MkDocs

Set custom_dir: overrides under theme in mkdocs.yml. Then create overrides/main.html and add the tag to the theme's scripts block: {% extends "base.html" %}{% block scripts %}{{ super() }}<script src="https://app.talktomysites.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>{% endblock %}. {{ super() }} keeps the theme's own scripts. See Customizing your theme.

VitePress

In your VitePress config file (.vitepress/config), add the tag to head. VitePress renders it in the <head> of every page: head: [['script', { src: 'https://app.talktomysites.com/widget.js', 'data-site-id': 'YOUR_SITE_ID', defer: '' }]]. See the head option.

Other generators

Add the tag to the layout or template that every page uses, just before </body>. Most tools have a setting or theme override for this. Check your tool's docs for where it lives.

Content Security Policy

If your site uses a Content Security Policy, allow https://app.talktomysites.com in script-src and connect-src. The widget also adds its own styles, so style-src needs 'unsafe-inline' or the panel appears unstyled. Docs hosted on a static platform with strict headers are where this tends to show up.

Start free, no card

Free for one site, 50 pages, 100 questions a month. No credit card.

Step 3: verify your domain and test it

Your site is indexed straight away, but the widget on your own site only answers visitors once you've shown you control the domain. Until then, visitors see "This assistant isn't turned on yet." Open the site page, follow the Verify your domain card, and click Check now. Only team owners and admins can do this.

The widget only works on your site's widget domain. If your docs live on a subdomain like docs.example.com, set the widget domain to match, or use *.example.com to cover every subdomain.

Then ask it ten questions your readers really ask, including one your docs don't answer. Check each answer's sources. I wrote a short routine for this: Before you tell anyone: test your assistant with ten questions.

Step 4 (optional)

Put "ask" buttons on key pages

The widget has a small JavaScript API. You can add a button on a page that opens the chat with a question.

Swap in a question your docs answer. This works well on a getting-started or troubleshooting page.

Some docs tools don't allow inline onclick handlers in page content. There, call TalkToMySites.ask() from your own script instead.

Any docs page
<button type="button" onclick="TalkToMySites.ask('How do I reset my password?')">
  How do I reset my password?
</button>

Step 5: use the Unanswered list to fix your docs

After a week, open the analytics for your site. Answer rate shows the share of questions your pages could answer. Top questions groups what visitors ask most, and shows how many of each went unanswered. Questions the assistant couldn't answer appear as Unanswered under content gaps. Add the missing information to your docs, then re-crawl so the assistant can use it. I describe a fifteen-minute weekly routine in Your visitors' questions are a content roadmap.

Free sites can re-crawl manually once every seven days, Starter sites once a day and refresh weekly, and Pro sites refresh daily.

How this compares with a vendor "Ask AI"

Services like Kapa are aimed at larger technical products. Kapa's pricing page lists a 14-day free trial with no card, sources like docs, websites and GitHub, and a Growth plan with private sources and past tickets, with pricing on request (kapa.ai/pricing). Algolia's docs say its Ask AI is part of Agent Studio and isn't available as a standalone feature for new applications (Algolia docs). Checked Nov 30, 2026.

Talk To My Sites is the lighter option: a sitemap and one tag, on a free plan for one site. It doesn't connect to ticketing systems or learn from past tickets. It reads public pages from your sitemap, feed, llms.txt or URL list, plus PDFs and Notion pages on paid plans. If your docs need more than that, a larger tool may fit better.

FAQ

Does this work with Docusaurus, MkDocs and VitePress?

Yes. Any public site with a sitemap, RSS feed or llms.txt and a place to add a script tag works. The section above shows where the tag goes in Docusaurus, MkDocs and VitePress.

Is it free for a docs site?

The free plan covers one site, up to 50 pages and 100 questions a month, with no card. If your docs have more than 50 pages in the sitemap, the first 50 are indexed. Starter is $19 a month for up to 500 pages per site and 2,000 questions a month.

Will it answer from my versioned docs?

It answers from every page your sitemap lists, including older versions if they're listed. To leave old versions out, add a path filter under Never index these paths, like /docs/1.0/*. Filters apply before the page limit, so pages you leave out don't use it up.

Can it read PDFs?

On Starter and Pro, it indexes PDFs listed in your sitemap or linked from your pages, and you can upload more. Free doesn't include PDFs.

What if it can't answer?

It's told to say so, and suggest what to search for instead. The question is marked Unanswered in analytics.

Put an assistant on your docs site.

Free for one site, 50 pages, 100 questions a month. No credit card.