asyntai

payload ai chatbot

by asyntai
AI search & embeddings
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds an Asyntai-powered chatbot to a Payload 3 site that answers visitors from the content of the collections you choose. The plugin adds an admin settings screen for connecting an Asyntai account, plus a server component for the frontend layout. With an Asyntai API key, published content is sent to the knowledge base and kept current on update, unpublish and delete.

Features

  • Admin settings screen with one-click connect to an Asyntai account
  • Server component that renders the chat widget in the root layout
  • Syncs configured collections to the knowledge base on publish, update, unpublish and delete
  • Per-collection URL and title field options so answers link to the right page
  • Sends only changed text and converts Lexical and Slate rich text to plain text
  • Switch to hide the widget without disconnecting

Use cases

  • Answer visitor questions on a marketing site using pages and posts managed in Payload
  • Keep a support chatbot knowledge base current without manual content imports
  • Add lead capture and live-agent handoff to a Payload-powered website

From the author

AI chatbot for Payload CMS: answers visitors from your Payload content and keeps the Asyntai knowledge base in sync on every publish.

Installation

npm i payload-ai-chatbot

0

Stars

0

Forks

0

Open Issues

1 months ago

Last Updated

52

Weekly Downloads

v1.0.0

npm Version

178.4 KB

Unpacked Size

0

Dependencies

GitHub stars

00 since Oct 11

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 20260
Dec 4, 20260
Dec 3, 20260
Dec 2, 20260
Dec 1, 20260
Nov 30, 20260
Nov 29, 20260
Nov 28, 20260
Nov 27, 20260
Nov 26, 20260
Nov 25, 20260
Nov 24, 20260
Nov 23, 20260
Nov 22, 20260
Nov 21, 20260
Nov 20, 20260
Nov 19, 20260
Nov 18, 20260
Nov 17, 20260
Nov 16, 20260
Nov 15, 20260
Nov 14, 20260
Nov 13, 20260
Nov 12, 20260
Nov 11, 20260
Nov 10, 20260
Nov 9, 20260
Nov 8, 20260
Nov 7, 20260
Nov 6, 20260
Nov 5, 20260
Nov 4, 20260
Nov 3, 20260
Nov 2, 20260
Nov 1, 20260
Oct 31, 20260
Oct 30, 20260
Oct 29, 20260
Oct 28, 20260
Oct 27, 20260
Oct 26, 20260
Oct 25, 20260
Oct 24, 20260
Oct 23, 20260
Oct 22, 20260
Oct 21, 20260
Oct 20, 20260
Oct 19, 20260
Oct 18, 20260
Oct 17, 20260
Oct 16, 20260
Oct 15, 20260
Oct 14, 20260
Oct 13, 20260
Oct 12, 20260
Oct 11, 20260
npm weekly downloads

43−218 since Oct 15

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202643
Dec 4, 202640
Dec 3, 202636
Dec 2, 202632
Dec 1, 202625
Nov 30, 2026101
Nov 29, 2026133
Nov 28, 2026197
Nov 27, 2026210
Nov 26, 2026242
Nov 25, 2026291
Nov 24, 2026368
Nov 23, 2026382
Nov 22, 2026384
Nov 21, 2026402
Nov 20, 2026480
Nov 19, 2026455
Nov 18, 2026410
Nov 17, 2026334
Nov 16, 2026247
Nov 15, 2026210
Nov 14, 2026129
Nov 13, 202638
Nov 12, 202629
Nov 11, 202623
Nov 10, 202623
Nov 9, 202617
Nov 8, 202617
Nov 7, 202618
Nov 6, 202615
Nov 5, 202614
Nov 4, 202616
Nov 3, 202621
Nov 2, 202623
Nov 1, 202626
Oct 31, 202631
Oct 30, 202633
Oct 29, 202630
Oct 28, 202626
Oct 27, 202622
Oct 26, 202620
Oct 25, 202618
Oct 24, 202615
Oct 23, 202612
Oct 22, 202647
Oct 21, 2026308
Oct 20, 2026305
Oct 19, 2026303
Oct 18, 2026300
Oct 17, 2026296
Oct 16, 2026296
Oct 15, 2026261

Each point is npm's rolling 7-day download count.

Health Score

64/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1415033591-root.svg)](https://payloaddirectory.dev/plugins/1415033591-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1415033591-root"><img src="https://payloaddirectory.dev/badge/1415033591-root.svg" alt="Payload Directory"></a>
Updated Oct 12, 2026Created Oct 12, 2026Published Oct 12, 2026

README

Asyntai AI Chatbot for Payload CMS

An AI chatbot for your Payload website. It answers your visitors around the clock from your own content, and it stays current by itself: every page or post you publish in Payload reaches the chatbot's knowledge base, and every update, unpublish and delete follows.

  • Answers questions from your pages, posts, FAQs and any other collection
  • Links visitors to the page where the answer is
  • Picks up new and changed content on publish, with no manual import
  • Hands the chat to your team when a visitor asks for a person
  • Captures leads, books meetings and answers in your visitors' language
  • One-click connect from the Payload admin panel

Built for Payload 3 by Asyntai.

Install

pnpm add payload-ai-chatbot

Add the plugin to payload.config.ts and name the collections the chatbot should know:

import { asyntaiChatbot } from 'payload-ai-chatbot'

export default buildConfig({
  // ...
  plugins: [
    asyntaiChatbot({
      collections: {
        pages: { url: ({ doc }) => (doc.slug === 'home' ? '/' : `/${doc.slug}`) },
        posts: { url: ({ doc }) => `/posts/${doc.slug}` },
      },
    }),
  ],
})

The plugin adds a settings screen and one small table. Create a migration as you do for any schema change (payload migrate:create), or let Payload push the schema in development.

Then regenerate the admin import map:

pnpm payload generate:importmap

Show the chatbot on your website

Put the component once in your root layout, for example src/app/(frontend)/layout.tsx:

import config from '@payload-config'
import { getPayload } from 'payload'
import { AsyntaiChatbot } from 'payload-ai-chatbot/rsc'

export default async function RootLayout({ children }: { children: React.ReactNode }) {
  const payload = await getPayload({ config })
  return (
    <html lang="en">
      <body>
        {children}
        <AsyntaiChatbot payload={payload} />
      </body>
    </html>
  )
}

Connect

  1. Open the admin panel and go to Asyntai > Asyntai AI Chatbot.
  2. Press Connect Asyntai, then sign in or create your free account in the window that opens.
  3. The screen saves the connection by itself. The chatbot now shows on your website.

The settings screen also has a switch to hide the chatbot without disconnecting.

Keep the knowledge base in sync

The chatbot reads your website from the start. To send your Payload content directly and keep it current on every publish, add your Asyntai API key to the environment of your Payload server:

ASYNTAI_API_KEY=your-key

You find the key in your Asyntai dashboard under Settings > API (Starter plan or higher). Restart Payload, open the Asyntai settings screen and press Send all published content now once. After that:

In PayloadIn the chatbot
PublishThe page is added
Update a published pageThe page is replaced with the new text
Save a draftThe published text stays
UnpublishThe page is removed
DeleteThe page is removed

Only changed text is sent again, so saving without edits costs nothing.

Options

OptionDefaultWhat it does
collectionsnoneCollections to sync. true, or { url, titleField }.
collections.<slug>.urlnone({ doc, locale }) => string: the public page of a document. Paths are joined to siteUrl.
collections.<slug>.titleFieldadmin.useAsTitleField that holds the title.
siteUrlserverURL, then NEXT_PUBLIC_SERVER_URLYour public website address.
apiKeyprocess.env.ASYNTAI_API_KEYAsyntai API key. Keep it in the environment.
websiteIdthe connected websiteSend content to a different Asyntai website.
widgetIdthe connected widgetFix the widget ID in code instead of connecting.
backgroundfalseSend after the save finishes. Use it only on a server that keeps running, not on serverless.
disabledfalseTurn the sync off. The settings screen and the table stay.

Text, textarea, rich text (Lexical and Slate), arrays, groups, tabs, blocks, selects, numbers, dates and emails become text. Relations, uploads, colours, slugs, ids and hidden fields stay out.

Help

Documentation: asyntai.com/documentation/integrations/payload/

Questions: [email protected]

License

MIT

Similar plugins