π Generate PII-safe Helpdocs from Crisp Support chats with GPT-4.1-mini
β‘ 119 views Β· π Internal Wiki & Knowledge Base
Description
Turn Crisp chats into Helpdocs
Automatically create help articles from resolved Crisp chats. This n8n workflow listens for chat events, formats Q&A pairs, and uses an LLM to generate a PIIβsafe helpdoc saved to a Data Table.
Highlights
- π§© Trigger: Crisp Webhook when a chat is marked resolved.
- ποΈ Store: Each message saved in a Data Table (
crisp). - π§ Generate: LLM turns Q&A into draft helpdoc.
- πΎ Save: Draft stored in another Data Table (
crisphelp) for review.
How it works
- Webhook receives
message:send,message:received, andstate:resolvedevents from Crisp. - Data Table stores messages by
session_id. - On
state:resolved, workflow fetches the full chat thread. - Code node formats messages into
Q:andA:pairs. - LLM (OpenAI
gpt-4.1-mini) creates a redacted helpdoc. - Data Table
crisphelpsaves the generated doc withpublish = false.
G5engABXQAAx96x.jpeg
Requirements
- Crisp workspace with webhook access (Settings β Advanced β Webhooks)
- n8n instance with Data Tables and OpenAI credentials
Customize
- Swap the model in the LLM node.
- Add a Slack or Email node after
store-docto alert reviewers. - Extend prompt rules to strengthen PII redaction.
Tips
- Ensure Crisp webhook URL is public.
- Check IF condition:
{{$json.body.data.content.namespace}} == "state:resolved". - Use the
publishflag to control autoβpublishing.
Category: AI β’ Automation β’ Customer Support
π Nodes Used
Webhook, Basic LLM Chain, OpenAI Chat Model, Data table
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File