AI chat for your Astro site, answered from your own pages.
Add your sitemap, then paste one script tag into your base layout. Visitors ask questions and get answers from your pages, with links to the sources.
Setup
Three steps from sign up to answers.
You need your sitemap URL and access to your layout file.
Add your sitemap
Paste your sitemap URL when you add your site. If you use @astrojs/sitemap, it writes sitemap-index.xml, and sitemap index files work. We index every page it lists, in the background.
Paste the tag in your base layout
Copy your snippet from the Embed the widget card. Add it before </body> in the layout every page uses, with is:inline. Deploy your site.
Verify your domain
Add a DNS TXT record, or put the verification meta tag in the <head> of your home page. Click Check now. The widget then answers visitors.
The Astro install
One tag in your base layout.
Put the snippet before </body> in the layout that wraps every page, so it loads on every page. is:inline tells Astro to leave the tag as it is instead of bundling it.
Replace YOUR_SITE_ID with the ID from your own snippet. Copy it from Sites, then your site, then Copy snippet.
Base layout (.astro)<body> <slot /> <script is:inline src="https://app.talktomysites.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script></body>What you get
Answers for visitors. Questions for you. Visitors get answers with sources. You see what they asked and what your pages are missing.
Sources on every answer
Each answer lists the pages used to write it under Sources. Visitors can click through and read the full page.
Answers from your pages
The assistant is told to answer only from your indexed pages, not the wider web. Like any AI model it can still get things wrong, so check important topics in the dashboard preview.
Replies in their language
The assistant replies in the language of the question, even when your pages are in another language.
See what visitors ask
Every question is recorded with its answer. Analytics shows top questions, answer rate and which source pages visitors open.
Find your content gaps
Questions your pages couldn't answer show up under Content gaps. Add the missing information, re-crawl, and the assistant can answer it.
Locked to your domain
The widget only answers on your site's widget domain, so a copied snippet doesn't work on someone else's website.
Test it in astro dev
localhost and 127.0.0.1 always work, so you can try the widget on your dev server before you deploy.
Questions, answered.
Didn't find yours? Ask the chat bubble on this page, or read the docs below.
Will it slow down my Astro site?
The tag has the defer attribute, so the browser doesn't wait for it before it shows your page. The widget draws itself inside a Shadow DOM, so its styles and your styles stay apart.
Why is:inline?
is:inline tells Astro to leave the tag as it is instead of bundling it. The widget is loaded straight from app.talktomysites.com, so there's nothing to install from npm.
Which pages does it read?
Every page listed in your sitemap, RSS feed or llms.txt, or in a list of page URLs you paste, up to your plan's page limit. Path filters let you leave some paths out. Before indexing we remove navigation, the page header, footers, sidebars, forms and scripts, so answers come from your content and not your menus. Pages that aren't listed in your source aren't indexed.
Why does the widget say "This assistant isn't turned on yet"?
Your domain isn't verified yet. The widget only answers visitors once you've shown you control the domain. Add the DNS TXT record or the meta tag shown on your site page, then click Check now. We also check again every hour for a week after you add the site.
The preview bubble in your dashboard works before verification, so you can test answers first.
What does the Free plan include?
One site, up to 50 pages and 100 questions a month, for $0. Sign up with an email, name and password. No card needed.
If your sitemap lists more than 50 pages, we index the first 50 and leave out the rest. PDFs are skipped on Free. Starter and Pro raise the limits and add PDF indexing.
Read the docs
Every step on this page is covered in the docs:
- Add the widget to your framework: the Astro, Next.js and plain HTML snippets.
- Install the widget: widget domains and domain verification.
- Add your site: sitemap rules and what gets indexed.
- How answers work: how answers are found and how sources are listed.
- Analytics and content gaps: what visitors ask and what your pages can't answer.
- Plans and limits: pages, questions and what happens at a limit.
Put an assistant on your Astro site.
Free for one site with up to 50 pages and 100 questions a month. No card needed. Upgrade when you need more.