Adds ChatGPT-like chat functionality to selected Payload collections. It is registered in the plugins array and provides chat completion and admin chat completion endpoints. Requires an OpenAI API key set in the environment and targets Payload 1.x. The author marks it as in development.
ChatGPT-like Plugin for Payload
Installation
npm i payload-plugin-ai-chat15
Stars
1
Forks
2
Open Issues
3 years ago
Last Updated
13
Weekly Downloads
v0.1.0-beta.3
npm Version
52.5 KB
Unpacked Size
2
Dependencies
150 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 15 |
| Dec 4, 2026 | 15 |
| Dec 3, 2026 | 15 |
| Dec 2, 2026 | 15 |
| Dec 1, 2026 | 15 |
| Nov 30, 2026 | 15 |
| Nov 29, 2026 | 15 |
| Nov 28, 2026 | 15 |
| Nov 27, 2026 | 15 |
| Nov 26, 2026 | 15 |
| Nov 25, 2026 | 15 |
| Nov 24, 2026 | 15 |
| Nov 23, 2026 | 15 |
| Nov 22, 2026 | 15 |
| Nov 21, 2026 | 15 |
| Nov 20, 2026 | 15 |
| Nov 19, 2026 | 15 |
| Nov 18, 2026 | 15 |
| Nov 17, 2026 | 15 |
| Nov 16, 2026 | 15 |
| Nov 15, 2026 | 15 |
| Nov 14, 2026 | 15 |
| Nov 13, 2026 | 15 |
| Nov 12, 2026 | 15 |
| Nov 11, 2026 | 15 |
| Nov 10, 2026 | 15 |
| Nov 9, 2026 | 15 |
| Nov 8, 2026 | 15 |
| Nov 7, 2026 | 15 |
| Nov 6, 2026 | 15 |
| Nov 5, 2026 | 15 |
| Nov 4, 2026 | 15 |
| Nov 3, 2026 | 15 |
| Nov 2, 2026 | 15 |
| Nov 1, 2026 | 15 |
| Oct 31, 2026 | 15 |
| Oct 30, 2026 | 15 |
| Oct 29, 2026 | 15 |
| Oct 28, 2026 | 15 |
| Oct 27, 2026 | 15 |
| Oct 26, 2026 | 15 |
| Oct 25, 2026 | 15 |
| Oct 24, 2026 | 15 |
| Oct 23, 2026 | 15 |
| Oct 22, 2026 | 15 |
| Oct 21, 2026 | 15 |
| Oct 20, 2026 | 15 |
| Oct 19, 2026 | 15 |
| Oct 18, 2026 | 15 |
| Oct 17, 2026 | 15 |
| Oct 16, 2026 | 15 |
| Oct 15, 2026 | 15 |
| Oct 14, 2026 | 15 |
| Oct 13, 2026 | 15 |
| Oct 12, 2026 | 15 |
| Oct 11, 2026 | 15 |
| Oct 10, 2026 | 15 |
| Oct 9, 2026 | 15 |
| Oct 8, 2026 | 15 |
| Oct 7, 2026 | 15 |
| Oct 6, 2026 | 15 |
| Oct 5, 2026 | 15 |
| Oct 4, 2026 | 15 |
| Oct 3, 2026 | 15 |
| Oct 2, 2026 | 15 |
| Oct 1, 2026 | 15 |
| Sep 30, 2026 | 15 |
| Sep 29, 2026 | 15 |
| Sep 28, 2026 | 15 |
| Sep 27, 2026 | 15 |
| Sep 26, 2026 | 15 |
| Sep 25, 2026 | 15 |
| Sep 24, 2026 | 15 |
| Sep 23, 2026 | 15 |
| Sep 22, 2026 | 15 |
| Sep 21, 2026 | 15 |
| Sep 20, 2026 | 15 |
| Sep 19, 2026 | 15 |
| Sep 18, 2026 | 15 |
| Sep 17, 2026 | 15 |
| Sep 16, 2026 | 15 |
| Sep 15, 2026 | 15 |
| Sep 14, 2026 | 15 |
| Sep 13, 2026 | 15 |
| Sep 12, 2026 | 15 |
| Sep 11, 2026 | 15 |
| Sep 10, 2026 | 15 |
| Sep 9, 2026 | 15 |
| Sep 8, 2026 | 15 |
| Sep 7, 2026 | 15 |
| Sep 6, 2026 | 15 |
11+6 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 11 |
| Dec 4, 2026 | 7 |
| Dec 3, 2026 | 7 |
| Dec 2, 2026 | 7 |
| Dec 1, 2026 | 12 |
| Nov 30, 2026 | 15 |
| Nov 29, 2026 | 22 |
| Nov 28, 2026 | 23 |
| Nov 27, 2026 | 26 |
| Nov 26, 2026 | 26 |
| Nov 25, 2026 | 26 |
| Nov 24, 2026 | 18 |
| Nov 23, 2026 | 14 |
| Nov 22, 2026 | 9 |
| Nov 21, 2026 | 8 |
| Nov 20, 2026 | 10 |
| Nov 19, 2026 | 12 |
| Nov 18, 2026 | 12 |
| Nov 17, 2026 | 12 |
| Nov 16, 2026 | 12 |
| Nov 15, 2026 | 12 |
| Nov 14, 2026 | 12 |
| Nov 13, 2026 | 8 |
| Nov 12, 2026 | 8 |
| Nov 11, 2026 | 8 |
| Nov 10, 2026 | 9 |
| Nov 9, 2026 | 11 |
| Nov 8, 2026 | 11 |
| Nov 7, 2026 | 10 |
| Nov 6, 2026 | 8 |
| Nov 5, 2026 | 7 |
| Nov 4, 2026 | 12 |
| Nov 3, 2026 | 11 |
| Nov 2, 2026 | 13 |
| Nov 1, 2026 | 10 |
| Oct 31, 2026 | 14 |
| Oct 30, 2026 | 19 |
| Oct 29, 2026 | 18 |
| Oct 28, 2026 | 13 |
| Oct 27, 2026 | 17 |
| Oct 26, 2026 | 13 |
| Oct 25, 2026 | 14 |
| Oct 24, 2026 | 16 |
| Oct 23, 2026 | 11 |
| Oct 22, 2026 | 13 |
| Oct 21, 2026 | 13 |
| Oct 20, 2026 | 11 |
| Oct 19, 2026 | 13 |
| Oct 18, 2026 | 12 |
| Oct 17, 2026 | 7 |
| Oct 16, 2026 | 8 |
| Oct 15, 2026 | 7 |
| Oct 14, 2026 | 7 |
| Oct 13, 2026 | 5 |
| Oct 12, 2026 | 7 |
| Oct 11, 2026 | 8 |
| Oct 10, 2026 | 7 |
| Oct 9, 2026 | 6 |
| Oct 8, 2026 | 5 |
| Oct 7, 2026 | 5 |
| Oct 6, 2026 | 5 |
| Oct 5, 2026 | 3 |
| Oct 4, 2026 | 5 |
| Oct 3, 2026 | 6 |
| Oct 2, 2026 | 8 |
| Oct 1, 2026 | 8 |
| Sep 30, 2026 | 8 |
| Sep 29, 2026 | 10 |
| Sep 28, 2026 | 8 |
| Sep 27, 2026 | 6 |
| Sep 26, 2026 | 9 |
| Sep 25, 2026 | 8 |
| Sep 24, 2026 | 8 |
| Sep 23, 2026 | 9 |
| Sep 22, 2026 | 11 |
| Sep 21, 2026 | 11 |
| Sep 20, 2026 | 11 |
| Sep 19, 2026 | 7 |
| Sep 18, 2026 | 6 |
| Sep 17, 2026 | 7 |
| Sep 16, 2026 | 7 |
| Sep 15, 2026 | 4 |
| Sep 14, 2026 | 6 |
| Sep 13, 2026 | 6 |
| Sep 12, 2026 | 6 |
| Sep 11, 2026 | 6 |
| Sep 10, 2026 | 5 |
| Sep 9, 2026 | 7 |
| Sep 8, 2026 | 6 |
| Sep 7, 2026 | 6 |
| Sep 6, 2026 | 5 |
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/687694848-root)<a href="https://payloaddirectory.dev/plugins/687694848-root"><img src="https://payloaddirectory.dev/badge/687694848-root.svg" alt="Payload Directory"></a>README
The AI Chat Payload Plugin is a plugin for Payload CMS that adds ChatGPT-like functionality to your collection. It enables seamless interaction with ChatGPT models within Payload and provides out-of-the-box chat completion and admin chat completion endpoints. This README file provides instructions on how to install and use the plugin.
⚠️ Please note that this plugin is still in development and may contain bugs or incomplete features. Your feedback and suggestions during the beta testing phase are highly appreciated.
During the beta testing phase, your feedback and bug reports play a crucial role in improving the plugin. If you encounter any issues, have suggestions for improvements, or need assistance, please open an issue on the GitHub repository. Your contributions will help make the AI Chat Payload Plugin more stable and reliable.
Thank you for participating in the beta testing phase of the AI Chat Payload Plugin! Your support and feedback are highly appreciated.
You can install the AI Chat Payload Plugin using one of the following methods:
pnpm add payload-plugin-ai-chat
// or
yarn add payload-plugin-ai-chat
// or
npm i payload-plugin-ai-chat
To use the AI Chat Payload Plugin, follow these steps:
.env.example -> .envOPENAI_API_KEY. How to generate your API KEY ?Here's an example of how to configure the plugin in your Payload config file:
import { buildConfig } from 'payload/config';
import { aiChat } from 'payload-plugin-ai-chat'
const config = buildConfig({
collections: ['chats'],
plugins: [
aiChat({
collections: ['chats'],
groupName: 'aiChat',
groupLabel: 'AI Chat',
defaults: {
model: 'gpt-3.5-turbo-16k',
messageRole: 'user',
temperature: 1,
maxToken: 2_048,
frequencyPenalty: 0,
presencePenalty: 0,
},
})
]
});
export default config;
The AI Chat Payload Plugin provides a set of configurable options to customize its functionality:
enabled (boolean | default: true): Flag to determine if the plugin functionality should be enabled or not.collections (string[]): An array of collection slugs to enable the AI Chat functionality.groupName (string | default: 'aiChat'): Name for the AI Chat group in your configuration.groupLabel (string | default: 'AI Chat'): Display label for the AI Chat group in the Payload admin panel.defaults (object): Set of default values for the AI Chat parameters.
model (string | default: 'gpt-3.5-turbo-16k'): Specifies which GPT model to use.messageRole (string | default: 'user'): Role for the message (usually 'user' or 'assistant').temperature (number | default: 1): Controls the randomness of the model's output.maxToken (number | default: 2_048): Maximum number of tokens for the response.frequencyPenalty (number | default: 0): Adjusts the likelihood of frequently used tokens appearing.presencePenalty (number | default: 0): Adjusts the likelihood of new tokens appearing.Make sure to have the OPENAI_API_KEY set in your environment variables for the plugin to work seamlessly.
How to generate your API KEY ?
To actively develop or debug this plugin, you can work directly within the dev directory of this repository or link your own project.
This repository includes a fully working, self-seeding instance of Payload. To spin up the dev, follow these steps:
yarn to install the dependencies.dev directory and run yarn to install the dev dependencies.yarn dev to start the dev server.[email protected] and password test.The dev allows you to test and make changes to the plugin. Keep in mind that the dev database is automatically seeded on every startup, and any changes you make to the data will be destroyed each time you reboot the app.
Topics
payload plugin ai completions
Generate field content in the Payload admin with OpenAI completions using configurable per-field prompts
2812/wk8v1
payload ai manager
Generate product titles, descriptions, attributes and translations with Claude, ChatGPT, Gemini or Kimi
7022/wk1v3
payload agent
AI chat agent that queries and manages Payload content from Telegram, Slack, WhatsApp and other chat platforms
5774/wk17v3
payload ai plugin
AI assistant in the Payload admin with multiple providers, CMS mentions and signed action proposals
54301/wk4v3
payload ai
AI text, image and voice generation for Payload fields and the Lexical editor with configurable providers
833.5k/wk568v3
payload plugin alt text generator
Generate SEO-friendly alt text for Payload media images one at a time, in bulk, or on upload
6115/wk0v3