DeskCrew

Forwards new documents in selected Payload collections to DeskCrew as support tickets via an afterChange hook.

Community 0 18/wk MIT v1.0.0

Installation

pnpm add payload-plugin-deskcrew

About

This plugin turns new documents in your Payload collections into DeskCrew support tickets. DeskCrew is an AI-powered helpdesk with a site widget, knowledge-base-grounded answers, and a human approval step before replies send. You list the collections your forms write to (contact submissions, feedback, support requests) and map which fields hold the sender's name, email, and message. Integration with Payload is minimal and non-invasive. The plugin appends one `afterChange` hook to each listed collection and changes nothing else in your config, so your own hooks stay intact. The hook fires only on `create` operations, skips documents that lack an email or a message, and never blocks the document create while submitting. Configuration is a single plugin call. You pass a `widgetKey` (the `pub_...` public key from your DeskCrew dashboard), a `siteUrl` used as the request origin, and a `ticketSources` array where each entry pairs a collection slug with a field map. Field maps support dot paths, so nested fields work. Only the mapped name, email, and message leave your project, posted to `https://deskcrew.io/api/widget/submit` with the widget key. The plugin ships as plain JavaScript with TypeScript definitions and peers against `payload >=2.0.0`. Without a valid widget key and at least one ticket source it logs a warning and stays idle. The DeskCrew widget itself is separate and installed on your frontend, not through this plugin.

Package info

Package name
payload-plugin-deskcrew
Latest version
1.0.0
Unpacked size
10 kB
License
MIT
Weekly downloads
18
Last publish
Sep 3, 2026

Similar plugins

More in Integrations