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

AI chat for your Next.js site, answered from your own pages.

Add your sitemap, then load one script in your root layout with next/script. 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 root layout.

  1. Add your sitemap

    Paste your sitemap URL when you add your site. If you use the App Router's sitemap file, it's served at /sitemap.xml. We index every page it lists, in the background.

  2. Add the script to your root layout

    Copy your site ID from the Embed the widget card. Add the script to app/layout.tsx with next/script and deploy.

  3. 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 Next.js install

One Script in your root layout.

Add the script to your root layout with next/script. The layout stays mounted between page changes, so the widget loads once.

Replace YOUR_SITE_ID with the ID from your own snippet. Copy it from Sites, then your site, then Copy snippet.

app/layout.tsx
// app/layout.tsx
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://app.talktomysites.com/widget.js"
          data-site-id="YOUR_SITE_ID"
          strategy="afterInteractive"
        />
      </body>
    </html>
  );
}

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 next 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 Next.js site?

The snippet uses next/script with strategy="afterInteractive". Next.js loads those scripts after some or all of the page has hydrated, not before its own code. The widget draws itself inside a Shadow DOM, so its styles and your styles stay apart.

Does it reload on every route change?

No. The root layout stays mounted between page changes, so the widget loads once. Adding the tag more than once on a page does nothing extra; only the first copy runs.

My site is on vercel.app. Can I use it?

Yes, with your full subdomain, like yourname.vercel.app. A shared hosting suffix such as vercel.app on its own is refused. The sitemap must be on the same domain.

I use a Content Security Policy. What do I allow?

Allow https://app.talktomysites.com in script-src and connect-src. The widget adds its own styles, so style-src needs 'unsafe-inline', or the panel appears unstyled. If you set a launcher icon, allow its host in img-src. If you turn on Turnstile bot protection, also allow https://challenges.cloudflare.com in script-src and frame-src.

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:

Put an assistant on your Next.js site.

Free for one site with up to 50 pages and 100 questions a month. No card needed. Upgrade when you need more.