Best plugin for DatoCMS: an AI chatbot
Asyntai adds an AI customer support chat to your DatoCMS website. You add one script to your frontend, and it answers visitors around the clock from your own content. Start with 50 free AI replies per month.
- Next.js, Gatsby, Nuxt, React
- Answers from your content
- No credit card required
How the DatoCMS plugin goes live
DatoCMS is a headless CMS. The chat code goes into your frontend application, not into the DatoCMS dashboard.
- 01
Get your code
Create a free account. Your dashboard shows the embed code with your own widget ID.
- 02
Open your frontend
Open the root layout of the app that shows your DatoCMS content, for example
app/layout.tsx. - 03
Add the script
Add the script for your framework and replace
YOUR_WIDGET_IDwith your own ID. - 04
Deploy and check
Deploy your site and open it in a private window. The chat button shows in the bottom right corner.
Not seeing the widget? Make sure the script is in the layout your pages use and runs on the client side. Check the browser console for errors.
Code for your DatoCMS frontend
Pick the framework your site uses. Each snippet loads the chat on every page.
Next.js
App Router. For the Pages Router, add the same Script component topages/_app.tsx.- Open your root layout file,
app/layout.tsx - Import the Script component and add it inside
<body>
import Script from 'next/script'
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
<Script
src="https://widget.asyntai.com/static/js/chat-widget.js"
data-asyntai-id="YOUR_WIDGET_ID"
strategy="afterInteractive"
/>
</body>
</html>
)
}
Gatsby
For sites that use gatsby-source-datocms.- Create or edit
gatsby-ssr.jsin your project root - Restart your Gatsby development server
import React from 'react'
export const onRenderBody = ({ setPostBodyComponents }) => {
setPostBodyComponents([
<script
key="asyntai-chatbot"
async
src="https://widget.asyntai.com/static/js/chat-widget.js"
data-asyntai-id="YOUR_WIDGET_ID"
/>
])
}
Nuxt
Add the script to the app head in your Nuxt config.- Open
nuxt.config.tsand add the script entry - Restart your Nuxt development server
export default defineNuxtConfig({
app: {
head: {
script: [
{
src: 'https://widget.asyntai.com/static/js/chat-widget.js',
async: true,
'data-asyntai-id': 'YOUR_WIDGET_ID'
}
]
}
}
})
React or static HTML
Vite, Create React App or a static site that reads the DatoCMS API.- Open
index.html(Vite),public/index.html(Create React App) or your HTML template - Paste the embed code before the closing
</body>tag
<script src="https://widget.asyntai.com/static/js/chat-widget.js" data-asyntai-id="YOUR_WIDGET_ID" async></script>
Every snippet and the troubleshooting steps are in the DatoCMS installation guide. You can keep your widget ID in an environment variable, such as NEXT_PUBLIC_ASYNTAI_ID or VITE_ASYNTAI_ID.
Why choose the Asyntai plugin for DatoCMS
An AI assistant that knows your DatoCMS site and follows your rules.
Answers from your content
It reads the pages of your live site, plus any PDF or text documents and Q&A pairs you add, and answers from them.
Always on
Visitors get an answer at any time of day or night, also when your team is offline.
Multilingual replies
The AI replies in the language the visitor writes in. This suits DatoCMS projects with localized content.
Focused on your topics
Write custom instructions for your brand voice. The AI stays on your business and declines unrelated questions.
No redeploy for changes
Update colors, position, greeting and behavior in the dashboard. Your frontend code stays the same.
Chat logs and analytics
Read every conversation in your dashboard. See which questions visitors ask most and which pages they come from.
Analytics on Starter and upOn the Standard and Pro plans you can also watch chats live and take over a conversation yourself.
Two ways to give it your DatoCMS content
Start with your live website. On Pro, connect your DatoCMS records directly.
Your live website
Enter the address of your DatoCMS-powered site. Asyntai reads your pages and answers from them. Add documents and Q&A pairs for details that are not on your pages.
- Pages your frontend shows from DatoCMS
- PDF and text documents you upload
- Custom instructions and Q&A pairs
Real-Time Data Feed Max
Expose your DatoCMS records through the GraphQL Content Delivery API with a read-only token and a small proxy. The AI then reads your products, articles or services directly.
- Uses a read-only DatoCMS API token
- Works with your own models, such as allProducts
- Read the DatoCMS setup guide
Get the most from the plugin on DatoCMS
Short tips for a chatbot that gives good answers from the first day.
Test before you rely on it
Ask many different questions in the dashboard preview. Check how it handles unclear questions, and add content where an answer is weak.
Keep the knowledge current
When you publish new products, prices or policies in DatoCMS, update the knowledge base so visitors get correct answers.
Write a useful welcome message
"Need help? Ask me about our courses" works better than a general greeting. Say what the chat can help with.
Set clear boundaries
Use custom instructions to keep the AI on your business topics and to decline questions that are not about your site.
Pick the right position
Bottom right works for most layouts. Move the button in the dashboard if it covers an important part of your design.
Read the chat logs
See what visitors really ask. Add clear information for the questions that come up often.
Start free on your DatoCMS site
Every plan works on DatoCMS. Upgrade at any time as your site grows.
Pro also removes the Asyntai branding. Enterprise plans are sized to your needs. See all plans and prices
Questions about the DatoCMS plugin
Need the full steps? Read the DatoCMS installation guide or email [email protected]. Also see the AI chatbot for DatoCMS page.
How do I add the plugin to my DatoCMS website?
DatoCMS is a headless CMS, so you add the chatbot to your frontend, not to the DatoCMS dashboard. Create a free account, copy your embed code from the dashboard and add it to the root layout of your frontend, for example app/layout.tsx in Next.js. Then deploy your site.
Does the plugin work on all DatoCMS plans?
Yes. The chatbot runs in your own frontend code, so it does not depend on your DatoCMS plan.
Which frontend frameworks are supported?
Any frontend that renders HTML in the browser. The installation guide shows Next.js (App Router and Pages Router), Gatsby, Nuxt, React with Vite or Create React App, and static HTML sites.
How does the plugin learn about my DatoCMS business?
You give it the address of your live site and it reads your pages. You can also upload PDF or text documents, write custom instructions and add your own questions and answers. The AI answers from this content.
Will the plugin slow down my DatoCMS site?
The script loads asynchronously. In Next.js you use the Script component with the afterInteractive strategy, so the chat loads after your page becomes interactive.
What happens when I reach my monthly limit?
We send you an email as you get close to your monthly AI reply limit. You can upgrade at any time from the dashboard, and the count starts again each month.
Can I use the plugin on more than one DatoCMS website?
Yes. Free includes 1 website, Starter 2 websites, Standard 3 websites and Pro 20 websites. See the pricing page for details.
Ready to install the best DatoCMS plugin?
Start free with 50 AI replies per month. No credit card required.