ashh.ai
Ashh.ai home

For Gatsby sites

AI chatbot for Gatsby — embed in gatsby-ssr.js, React-friendly

Gatsby is the React static-site framework. Despite Netlify's acquisition and the platform shift toward Astro/Next, thousands of production Gatsby sites still serve real traffic. Ashh.ai embeds via gatsby-ssr.js — one line, every page, no plugin install.

Embed via gatsby-ssr.js or Layout

Easiest: add the script in gatsby-ssr.js via onRenderBody's setHeadComponents. Or add it to your shared Layout component's head. Works with the gatsby-plugin-react-helmet pattern.

Reads your GraphQL-built content

Point Ashh at your sitemap (typically generated by gatsby-plugin-sitemap). We crawl every URL — Markdown pages, MDX, headless-CMS-sourced content, anything Gatsby renders.

Plays nice with gatsby-plugin-mdx

MDX content is web-public after build. Bot ingests MDX-rendered pages like any other URL. Custom MDX components render normally; the bot doesn't interact with them.

Future-proof for the Gatsby → Astro migration

If you're planning to migrate from Gatsby to Astro (a common move), the Ashh widget is portable — drop it in your new framework's head, no re-training needed. Same bot, same knowledge, same script tag.

Questions Gatsby sites ask

Where exactly does the script go in Gatsby?+

gatsby-ssr.js at your project root → use onRenderBody's setHeadComponents to inject the script tag. Or add directly to your shared Layout component's head.

Will it work with Gatsby Cloud / Gatsby Hosting?+

Yes. The widget is a CDN-loaded script; doesn't care about your hosting. Works on Gatsby Cloud, Netlify, Vercel, custom hosts.

Does it work with headless CMS sources (Contentful, Sanity, etc.)?+

Yes via sitemap crawl. As long as your headless-CMS-sourced content ends up in your sitemap, Ashh ingests it. Doesn't need direct CMS API access; reads the rendered output.

Should we migrate from Gatsby to Astro?+

Out of scope for this page. But if you do: Ashh ports over seamlessly. Same widget, same bot, new framework. Bot content (your real site) determines knowledge quality, not the framework.

Try it on your gatsby site in 5 minutes.

Free tier is genuinely free. No card required to ship a bot.