AI plugin for DatoCMS

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
yourstudio.com
AI AssistantOnline
Which of your courses are for beginners?
Our Photography Basics and Intro to Editing courses are for beginners. Both start every month and run online.
How long is Photography Basics?
It runs for 6 weeks, with one live session each week. You find the dates on the course page.
Type a message...

How the DatoCMS plugin goes live

DatoCMS is a headless CMS. The chat code goes into your frontend application, not into the DatoCMS dashboard.

  1. 01

    Get your code

    Create a free account. Your dashboard shows the embed code with your own widget ID.

  2. 02

    Open your frontend

    Open the root layout of the app that shows your DatoCMS content, for example app/layout.tsx.

  3. 03

    Add the script

    Add the script for your framework and replace YOUR_WIDGET_ID with your own ID.

  4. 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.

A · Most common

Next.js

App Router. For the Pages Router, add the same Script component to pages/_app.tsx.
  1. Open your root layout file, app/layout.tsx
  2. Import the Script component and add it inside <body>
app/layout.tsx
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>
  )
}
B

Gatsby

For sites that use gatsby-source-datocms.
  1. Create or edit gatsby-ssr.js in your project root
  2. Restart your Gatsby development server
gatsby-ssr.js
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"
    />
  ])
}
C

Nuxt

Add the script to the app head in your Nuxt config.
  1. Open nuxt.config.ts and add the script entry
  2. Restart your Nuxt development server
nuxt.config.ts
export default defineNuxtConfig({
  app: {
    head: {
      script: [
        {
          src: 'https://widget.asyntai.com/static/js/chat-widget.js',
          async: true,
          'data-asyntai-id': 'YOUR_WIDGET_ID'
        }
      ]
    }
  }
})
D

React or static HTML

Vite, Create React App or a static site that reads the DatoCMS API.
  1. Open index.html (Vite), public/index.html (Create React App) or your HTML template
  2. Paste the embed code before the closing </body> tag
HTML
<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 up

On 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.

Every plan

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
Pro

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.

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.

Free50AI replies per month · 1 website
Starter800AI replies per month · 2 websites
Standard15,000AI replies per month · 3 websites
Pro50,000AI replies per month · 20 websites

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.