AI plugin for Contentful

Best plugin for Contentful: an AI chatbot

Asyntai adds an AI customer support chat to your Contentful website. You add one script to the frontend that shows your content, and it answers visitors around the clock from your own pages. Start with 50 free AI replies per month.

  • Next.js, Gatsby, React, Nuxt
  • Answers from your content
  • No credit card required
yourbrand.com
AI AssistantOnline
Does your API support webhooks?
Yes. You can add webhooks in your account settings under Integrations. The developer docs list every event you can subscribe to.
Is there a free tier?
Yes, the Hobby plan is free for personal projects. The pricing page shows what each plan includes.
Type a message...

How the Contentful plugin goes live

Contentful is a headless CMS. It sends content through its API, and your own frontend shows it. So the chat code goes into that frontend, not into the Contentful web app.

  • Get your code. Create a free account. Your dashboard shows the embed code with your own widget ID.
  • Open your root layout. In Next.js this is app/layout.tsx (App Router) or pages/_app.tsx (Pages Router).
  • Add the script. Use the Script component and replace YOUR_WIDGET_ID with your own ID.
  • Deploy and check. Open your site in a private window. The chat button shows in the bottom right corner.
app/layout.tsx · Next.js
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="lazyOnload"
        />
      </body>
    </html>
  )
}

The lazyOnload strategy loads the chat after the rest of your page.

Code for other Contentful frontends

Not on Next.js? Pick the framework your site uses. Each snippet loads the chat on every page.

A

Gatsby

For sites that pull content with gatsby-source-contentful.
  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"
    />
  ])
}
B

Nuxt 3

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'
        }
      ]
    }
  }
})
C

React, Vue or static HTML

Vite, Create React App, Vue 3, or a static site that reads the Content Delivery API.
  1. Open index.html (Vite, Vue 3), 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 Contentful installation guide. With server-side rendering, make sure the script runs on the client side. You can keep your widget ID in an environment variable, such as NEXT_PUBLIC_ASYNTAI_ID.

Why choose the Asyntai plugin for Contentful

An AI assistant that knows your Contentful 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 Contentful spaces with several locales.

No redeploy for changes

Update colors, position, greeting and behavior in the dashboard. Your frontend code stays the same.

Focused on your topics

Write custom instructions for your brand voice. The AI stays on your business and declines unrelated questions.

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 Contentful content

Start with your live website. On Pro, connect your Contentful entries directly.

Every plan

Your live website

Enter the address of your Contentful-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 Contentful
  • PDF and text documents you upload
  • Custom instructions and Q&A pairs
Pro

Real-Time Data Feed Max

Expose any Contentful content type as a JSON feed through the Content Delivery API. The AI then reads your products, articles or services directly.

Start free on your Contentful site

Every plan works with Contentful. 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

Get the most from the plugin on Contentful

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 Contentful, update the knowledge base so visitors get correct answers.

Write a useful welcome message

"Need help? Ask me about our plans" 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.

Questions about the Contentful plugin

Need the full steps? Read the Contentful installation guide or email [email protected]. Also see the AI chatbot for Contentful page.

How do I add the plugin to my Contentful website?

Contentful is a headless CMS, so you add the chatbot to the frontend that shows your Contentful content, not to the Contentful web app. 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 Contentful plans?

Yes. The chatbot runs in your own frontend code, so it does not depend on your Contentful 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, React, Vue and Nuxt, and static HTML sites that read the Content Delivery API.

How does the plugin learn about my Contentful 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 Contentful site?

The script loads asynchronously. In Next.js you use the Script component with the lazyOnload strategy, so the chat loads after the rest of your page.

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 Contentful website?

Yes. Free includes 1 website, Starter 2 websites, Standard 3 websites and Pro 20 websites. See the pricing page for details.

Do I need coding knowledge to use the plugin on Contentful?

You need access to your frontend code, because a Contentful site is built by your own application. Adding the script is a small change to one file, and the guide shows the code for each framework.

Ready to install the best Contentful plugin?

Start free with 50 AI replies per month. No credit card required.