AI Manager
Writes product titles, descriptions, attributes and translations into Payload fields via Claude, ChatGPT, Gemini or Kimi, and skips content it already generated.
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 profileBarcodes
Adds Code 128, EAN-13 and QR code generation to Payload product collections with a printable label page and optional admin print buttons.
EU VAT
Records EU VAT on Payload ecommerce orders: country rates, B2B reverse charge, VIES validation, and OSS reporting totals.
Stock Reservation
Validates variant stock and price before checkout and holds reserved inventory until payment settles, extending the official Payload ecommerce plugin.
Stock Alerts
Sends a shop one email when product or variant inventory crosses a low stock threshold, with backorder handling and a storefront-readable status field.
Shipping Rates
Adds shipping zones, rate calculation, and a quote endpoint to Payload ecommerce shops.
Shipping Classes
Adds weight, dimensions, and shipping class fields to Payload products and variants, storing values canonically in grams and millimetres for cart totalling.