Adds an admin interface for generating content for chosen collection fields using OpenAI's API. Each field gets a prompt, and defaults such as model, temperature and max tokens can be set globally. It is added through the plugins array and requires an OpenAI API key in the environment. It targets Payload 1.x and is marked as a work in progress.
Payload Plugin AI Completions: Generate dynamic content with OpenAI's API in Payload CMS.
Installation
npm i @mycast-ai/payload-plugin-ai-completions8
Stars
0
Forks
3
Open Issues
3 years ago
Last Updated
12
Weekly Downloads
v0.0.1
npm Version
95.6 KB
Unpacked Size
2
Dependencies
8+1 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 8 |
| Dec 5, 2026 | 8 |
| Dec 4, 2026 | 8 |
| Dec 3, 2026 | 8 |
| Dec 2, 2026 | 8 |
| Dec 1, 2026 | 8 |
| Nov 30, 2026 | 8 |
| Nov 29, 2026 | 8 |
| Nov 28, 2026 | 8 |
| Nov 27, 2026 | 8 |
| Nov 26, 2026 | 8 |
| Nov 25, 2026 | 8 |
| Nov 24, 2026 | 8 |
| Nov 23, 2026 | 8 |
| Nov 22, 2026 | 8 |
| Nov 21, 2026 | 8 |
| Nov 20, 2026 | 8 |
| Nov 19, 2026 | 8 |
| Nov 18, 2026 | 8 |
| Nov 17, 2026 | 8 |
| Nov 16, 2026 | 8 |
| Nov 15, 2026 | 8 |
| Nov 14, 2026 | 8 |
| Nov 13, 2026 | 8 |
| Nov 12, 2026 | 8 |
| Nov 11, 2026 | 8 |
| Nov 10, 2026 | 8 |
| Nov 9, 2026 | 8 |
| Nov 8, 2026 | 8 |
| Nov 7, 2026 | 8 |
| Nov 6, 2026 | 8 |
| Nov 5, 2026 | 8 |
| Nov 4, 2026 | 8 |
| Nov 3, 2026 | 8 |
| Nov 2, 2026 | 8 |
| Nov 1, 2026 | 8 |
| Oct 31, 2026 | 8 |
| Oct 30, 2026 | 8 |
| Oct 29, 2026 | 8 |
| Oct 28, 2026 | 8 |
| Oct 27, 2026 | 8 |
| Oct 26, 2026 | 8 |
| Oct 25, 2026 | 8 |
| Oct 24, 2026 | 8 |
| Oct 23, 2026 | 8 |
| Oct 22, 2026 | 8 |
| Oct 21, 2026 | 8 |
| Oct 20, 2026 | 8 |
| Oct 19, 2026 | 8 |
| Oct 18, 2026 | 8 |
| Oct 17, 2026 | 8 |
| Oct 16, 2026 | 8 |
| Oct 15, 2026 | 8 |
| Oct 14, 2026 | 8 |
| Oct 13, 2026 | 8 |
| Oct 12, 2026 | 8 |
| Oct 11, 2026 | 8 |
| Oct 10, 2026 | 8 |
| Oct 9, 2026 | 8 |
| Oct 8, 2026 | 8 |
| Oct 7, 2026 | 8 |
| Oct 6, 2026 | 8 |
| Oct 5, 2026 | 8 |
| Oct 4, 2026 | 8 |
| Oct 3, 2026 | 7 |
| Oct 2, 2026 | 7 |
| Oct 1, 2026 | 7 |
| Sep 30, 2026 | 7 |
| Sep 29, 2026 | 7 |
| Sep 28, 2026 | 7 |
| Sep 27, 2026 | 7 |
| Sep 26, 2026 | 7 |
| Sep 25, 2026 | 7 |
| Sep 24, 2026 | 7 |
| Sep 23, 2026 | 7 |
| Sep 22, 2026 | 7 |
| Sep 21, 2026 | 7 |
| Sep 20, 2026 | 7 |
| Sep 19, 2026 | 7 |
| Sep 18, 2026 | 7 |
| Sep 17, 2026 | 7 |
| Sep 16, 2026 | 7 |
| Sep 15, 2026 | 7 |
| Sep 14, 2026 | 7 |
| Sep 13, 2026 | 7 |
| Sep 12, 2026 | 7 |
| Sep 11, 2026 | 7 |
| Sep 10, 2026 | 7 |
| Sep 9, 2026 | 7 |
| Sep 8, 2026 | 7 |
| Sep 7, 2026 | 7 |
12−2 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 12 |
| Dec 5, 2026 | 13 |
| Dec 4, 2026 | 11 |
| Dec 3, 2026 | 12 |
| Dec 2, 2026 | 9 |
| Dec 1, 2026 | 13 |
| Nov 30, 2026 | 22 |
| Nov 29, 2026 | 27 |
| Nov 28, 2026 | 26 |
| Nov 27, 2026 | 26 |
| Nov 26, 2026 | 27 |
| Nov 25, 2026 | 27 |
| Nov 24, 2026 | 23 |
| Nov 23, 2026 | 14 |
| Nov 22, 2026 | 10 |
| Nov 21, 2026 | 9 |
| Nov 20, 2026 | 11 |
| Nov 19, 2026 | 9 |
| Nov 18, 2026 | 10 |
| Nov 17, 2026 | 11 |
| Nov 16, 2026 | 10 |
| Nov 15, 2026 | 13 |
| Nov 14, 2026 | 20 |
| Nov 13, 2026 | 19 |
| Nov 12, 2026 | 19 |
| Nov 11, 2026 | 19 |
| Nov 10, 2026 | 21 |
| Nov 9, 2026 | 20 |
| Nov 8, 2026 | 17 |
| Nov 7, 2026 | 11 |
| Nov 6, 2026 | 8 |
| Nov 5, 2026 | 10 |
| Nov 4, 2026 | 10 |
| Nov 3, 2026 | 6 |
| Nov 2, 2026 | 6 |
| Nov 1, 2026 | 4 |
| Oct 31, 2026 | 3 |
| Oct 30, 2026 | 3 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 1 |
| Oct 25, 2026 | 1 |
| Oct 24, 2026 | 1 |
| Oct 23, 2026 | 1 |
| Oct 22, 2026 | 2 |
| Oct 21, 2026 | 4 |
| Oct 20, 2026 | 5 |
| Oct 19, 2026 | 4 |
| Oct 18, 2026 | 5 |
| Oct 17, 2026 | 5 |
| Oct 16, 2026 | 6 |
| Oct 15, 2026 | 5 |
| Oct 14, 2026 | 4 |
| Oct 13, 2026 | 3 |
| Oct 12, 2026 | 6 |
| Oct 11, 2026 | 6 |
| Oct 10, 2026 | 6 |
| Oct 9, 2026 | 6 |
| Oct 8, 2026 | 7 |
| Oct 7, 2026 | 6 |
| Oct 6, 2026 | 7 |
| Oct 5, 2026 | 5 |
| Oct 4, 2026 | 7 |
| Oct 3, 2026 | 9 |
| Oct 2, 2026 | 9 |
| Oct 1, 2026 | 9 |
| Sep 30, 2026 | 9 |
| Sep 29, 2026 | 10 |
| Sep 28, 2026 | 9 |
| Sep 27, 2026 | 6 |
| Sep 26, 2026 | 9 |
| Sep 25, 2026 | 8 |
| Sep 24, 2026 | 7 |
| Sep 23, 2026 | 8 |
| Sep 22, 2026 | 8 |
| Sep 21, 2026 | 10 |
| Sep 20, 2026 | 10 |
| Sep 19, 2026 | 6 |
| Sep 18, 2026 | 6 |
| Sep 17, 2026 | 7 |
| Sep 16, 2026 | 6 |
| Sep 15, 2026 | 7 |
| Sep 14, 2026 | 5 |
| Sep 13, 2026 | 9 |
| Sep 12, 2026 | 11 |
| Sep 11, 2026 | 12 |
| Sep 10, 2026 | 12 |
| Sep 9, 2026 | 14 |
| Sep 8, 2026 | 13 |
| Sep 7, 2026 | 14 |
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/692223457-root)<a href="https://payloaddirectory.dev/plugins/692223457-root"><img src="https://payloaddirectory.dev/badge/692223457-root.svg" alt="Payload Directory"></a>README
A Payload CMS AI Completions plugin that utilizes OpenAI's API to generate content for fields. It provides an interface for generating content.
This plugin is currently a work in progress and may not have all features implemented or may contain bugs. Use at your own risk.
pnpm add @mycast-ai/payload-plugin-ai-completions
# OR
yarn add @mycast-ai/payload-plugin-ai-completions
# OR
npm i @mycast-ai/payload-plugin-ai-completions
To install any plugin, simply add it to your payload.config.ts in the Plugin array.
import { aiCompletions } from '@mycast-ai/payload-plugin-ai-completions';
export const config = buildConfig({
plugins: [
// minimal configuration
aiCompletions({
enabled: true,
collections: [
{
slug: 'your-collection-slug'
fields: [
{
path: 'title',
prompt: 'Tell me a joke!'
}
]
}
]
}),
]
});
To use the plugin, make sure the plugin is enabled in the plugin options. You can also configure the default values and dashboard settings as desired. Add collections to the collections array to enable content generation for specific collections and fields.
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 ?
Currently the following field types are fully supported:
export const SUPPORTED_FIELD_TYPES = [
'text',
'textarea',
'richtext',
'collapsible',
'date',
'email',
'group',
'tabs',
'code',
]
export const config = buildConfig({
plugins: [
// You can pass options to the plugin
aiCompletions({
enabled: false, // Specify if the plugin is enabled or disabled
defaults: {
model: 'gpt-3.5-turbo-16k', // Specify the default model to use for generating content
temperature: 1, // Specify the default temperature to use for generating content
frequency_penalty: 0.0, // Specify the default frequency penalty to use for generating content
presence_penalty: 0.0, // Specify the default presence penalty to use for generating content
max_tokens: 2048, // Specify the default max tokens to use for generating content
},
dashboard: {
collapsed: false, // Specify if the dashboard is collapsed by default
completeAllButton: true, // Specify if the "Complete All" button is enabled in the dashboard
minimalisticUi: true, // Specify if the dashboard has a minimalistic user interface
},
collections: [
{
slug: 'posts', // Specify the slug of the collection
fields: [
{
path: 'body', // Specify the field path
prompt: 'Write a blog post about', // Specify the prompt to generate content for the field
},
],
context: {
// Context options for generating content
denylist: ['title', 'description'], // Specify the fields to exclude in the content generation
// allowlist: ['body'] // or
// omitAllFields: true
},
},
],
})]
})
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.
Contributions to this plugin are welcome. If you encounter any issues or have suggestions for improvements, please create a new issue in the repository.
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:seed to start the dev server and seed data.[email protected] and password test.payload plugin ai chat
Adds ChatGPT-style chat to Payload collections using OpenAI models
3312/wk15v1
payload ai manager
Generate product titles, descriptions, attributes and translations with Claude, ChatGPT, Gemini or Kimi
7022/wk1v3
payload ai plugin
AI assistant in the Payload admin with multiple providers, CMS mentions and signed action proposals
54301/wk4v3
payload agent
AI chat agent that queries and manages Payload content from Telegram, Slack, WhatsApp and other chat platforms
5774/wk17v3
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