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.
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-chatbot0
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
00 since Oct 11
| Date | Stars |
|---|---|
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
| Nov 28, 2026 | 0 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
| Nov 25, 2026 | 0 |
| Nov 24, 2026 | 0 |
| Nov 23, 2026 | 0 |
| Nov 22, 2026 | 0 |
| Nov 21, 2026 | 0 |
| Nov 20, 2026 | 0 |
| Nov 19, 2026 | 0 |
| Nov 18, 2026 | 0 |
| Nov 17, 2026 | 0 |
| Nov 16, 2026 | 0 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 0 |
| Nov 13, 2026 | 0 |
| Nov 12, 2026 | 0 |
| Nov 11, 2026 | 0 |
| Nov 10, 2026 | 0 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
| Oct 24, 2026 | 0 |
| Oct 23, 2026 | 0 |
| Oct 22, 2026 | 0 |
| Oct 21, 2026 | 0 |
| Oct 20, 2026 | 0 |
| Oct 19, 2026 | 0 |
| Oct 18, 2026 | 0 |
| Oct 17, 2026 | 0 |
| Oct 16, 2026 | 0 |
| Oct 15, 2026 | 0 |
| Oct 14, 2026 | 0 |
| Oct 13, 2026 | 0 |
| Oct 12, 2026 | 0 |
| Oct 11, 2026 | 0 |
43−218 since Oct 15
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 43 |
| Dec 4, 2026 | 40 |
| Dec 3, 2026 | 36 |
| Dec 2, 2026 | 32 |
| Dec 1, 2026 | 25 |
| Nov 30, 2026 | 101 |
| Nov 29, 2026 | 133 |
| Nov 28, 2026 | 197 |
| Nov 27, 2026 | 210 |
| Nov 26, 2026 | 242 |
| Nov 25, 2026 | 291 |
| Nov 24, 2026 | 368 |
| Nov 23, 2026 | 382 |
| Nov 22, 2026 | 384 |
| Nov 21, 2026 | 402 |
| Nov 20, 2026 | 480 |
| Nov 19, 2026 | 455 |
| Nov 18, 2026 | 410 |
| Nov 17, 2026 | 334 |
| Nov 16, 2026 | 247 |
| Nov 15, 2026 | 210 |
| Nov 14, 2026 | 129 |
| Nov 13, 2026 | 38 |
| Nov 12, 2026 | 29 |
| Nov 11, 2026 | 23 |
| Nov 10, 2026 | 23 |
| Nov 9, 2026 | 17 |
| Nov 8, 2026 | 17 |
| Nov 7, 2026 | 18 |
| Nov 6, 2026 | 15 |
| Nov 5, 2026 | 14 |
| Nov 4, 2026 | 16 |
| Nov 3, 2026 | 21 |
| Nov 2, 2026 | 23 |
| Nov 1, 2026 | 26 |
| Oct 31, 2026 | 31 |
| Oct 30, 2026 | 33 |
| Oct 29, 2026 | 30 |
| Oct 28, 2026 | 26 |
| Oct 27, 2026 | 22 |
| Oct 26, 2026 | 20 |
| Oct 25, 2026 | 18 |
| Oct 24, 2026 | 15 |
| Oct 23, 2026 | 12 |
| Oct 22, 2026 | 47 |
| Oct 21, 2026 | 308 |
| Oct 20, 2026 | 305 |
| Oct 19, 2026 | 303 |
| Oct 18, 2026 | 300 |
| Oct 17, 2026 | 296 |
| Oct 16, 2026 | 296 |
| Oct 15, 2026 | 261 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1415033591-root)<a href="https://payloaddirectory.dev/plugins/1415033591-root"><img src="https://payloaddirectory.dev/badge/1415033591-root.svg" alt="Payload Directory"></a>README
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.
Built for Payload 3 by Asyntai.
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
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>
)
}
The settings screen also has a switch to hide the chatbot without disconnecting.
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 Payload | In the chatbot |
|---|---|
| Publish | The page is added |
| Update a published page | The page is replaced with the new text |
| Save a draft | The published text stays |
| Unpublish | The page is removed |
| Delete | The page is removed |
Only changed text is sent again, so saving without edits costs nothing.
| Option | Default | What it does |
|---|---|---|
collections | none | Collections to sync. true, or { url, titleField }. |
collections.<slug>.url | none | ({ doc, locale }) => string: the public page of a document. Paths are joined to siteUrl. |
collections.<slug>.titleField | admin.useAsTitle | Field that holds the title. |
siteUrl | serverURL, then NEXT_PUBLIC_SERVER_URL | Your public website address. |
apiKey | process.env.ASYNTAI_API_KEY | Asyntai API key. Keep it in the environment. |
websiteId | the connected website | Send content to a different Asyntai website. |
widgetId | the connected widget | Fix the widget ID in code instead of connecting. |
background | false | Send after the save finishes. Use it only on a server that keeps running, not on serverless. |
disabled | false | Turn 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.
Documentation: asyntai.com/documentation/integrations/payload/
Questions: [email protected]
MIT
Topics
payload plugin ai
Generate embeddings for Payload fields on save using OpenAI or NLP Cloud
3923/wk15v?
payload typesense
Typesense search for Payload with automatic sync, search endpoints, optional vector search and React search components
851.4k/wk33v3 v4
payload agent
AI chat agent that queries and manages Payload content from Telegram, Slack, WhatsApp and other chat platforms
5774/wk17v3
payload ai admin
Chat panel in the Payload admin where an AI reads and edits content within a declared allowlist and user access
419/wk3v3
payload plugin ai chat
Adds ChatGPT-style chat to Payload collections using OpenAI models
3312/wk15v1
cloud storage
Store Payload uploads in third-party cloud storage through a generic adapter interface
1001.0M/wk46.1kv3 v4