AI Manager

Writes product titles, descriptions, attributes and translations into Payload fields via Claude, ChatGPT, Gemini or Kimi, and skips content it already generated.

Community 1 139/wk MIT v1.0.0

Installation

pnpm add payload-ai-manager

About

payload-ai-manager generates product copy for Payload collections. For each configured collection you name source fields and target fields, and the plugin asks a language model to produce titles, descriptions, attribute lists or translations, then writes the result into the documents. It is built on top of @payloadcms/plugin-ecommerce and targets a product catalogue, where attributes and locale translations matter. Four providers are selectable from the admin panel: Claude (Anthropic), ChatGPT (OpenAI), Gemini (Google) and Kimi (Moonshot). Claude runs through the official @anthropic-ai/sdk, installed as an optional peer dependency; the other three are called over their REST APIs with fetch. The key can be read from an environment variable at request time and never stored in the database, and the in-database key field has read access disabled. Generation runs automatically through a collection afterChange hook, or on demand through a POST /ai-manager/generate endpoint. A SHA-256 fingerprint is stored per document over both the source field values and the target definitions, so unchanged content is never sent to the model a second time. Changing a target's instructions or a translation locale changes the fingerprint and triggers a regenerate. An AI Manager settings global lets editors toggle generation, pick a provider, set a house style and switch individual target fields off without a deploy; a switched-off target keeps its existing content untouched. The plugin avoids custom admin components entirely, marking written fields through admin.description instead, which keeps it stable across Payload minor releases. Empty or malformed model output is refused and existing copy is left in place.

Package info

Package name
payload-ai-manager
Latest version
1.0.0
Unpacked size
52 kB
License
MIT
Weekly downloads
139
Last publish
Aug 21, 2026

More from Poseidonas

View profile