Use this powerful n8n workflow to automatically convert Crisp support chat transcripts into sanitized, PII-safe help documentation using the OpenAI GPT model. Ideal for knowledge base management.
Download this n8n workflow template and start using it instantly.
Markdown-formatted:
Customer Support Managers seeking to automate knowledge base creation.
Technical writers needing rapid drafts of common customer solutions.
Organizations requiring strict PII compliance when handling internal support data.
Automation specialists looking for advanced examples of conditional logic and AI integration in an n8n workflow.
Generating high-quality, reusable help documentation from complex customer support transcripts is traditionally time-consuming and prone to exposing sensitive Personal Identifying Information (PII).
This specialized n8n workflow solves this by fully automating the process. It acts as an intelligent bridge between your live chat platform (Crisp) and your knowledge base. Every component in this n8n template works synergistically: the n8n trigger receives the resolution signal, custom code organizes the raw data, and the integrated OpenAI n8n node applies specific instructions to cleanse and format the output. This guarantees that your final help document is both accurate and compliant, saving significant manual effort and reducing risk. This sophisticated n8n workflow ensures your documentation scales efficiently.
Markdown-formatted:
This automated process relies on two distinct branches handled by the initial n8n trigger and subsequent logic.
state:resolved signal is received, the closed (If) n8n node directs the flow to the documentation generation path.formattedConversation string.[USER_EMAIL]. The selected language model for this n8n workflow is gpt-4.1-mini.Markdown-formatted:
dataTableId parameter in the get and insert n8n nodes.dataTableId parameter in the store-doc n8n node.Markdown-formatted:
crisp (Webhook n8n trigger):
Function: Acts as the starting point (n8n trigger) of the n8n workflow, receiving POST requests from Crisp upon chat events.
Key Configuration: Uses a unique webhook path to ensure secure communication.
closed (If n8n node):
Function: Filters the incoming data stream, executing the documentation generation path only if the chat status matches state:resolved.
insert (Data Table n8n node):
Function: Logs all individual chat events (non-resolved) into the 'raw chats' Data Table for later full conversation retrieval. A crucial logging step in this n8n workflow.
get (Data Table n8n node):
Function: Retrieves all logged messages from the 'raw chats' Data Table matching the current session_id once the resolved signal is hit.
format (Code n8n node):
Function: Custom JavaScript n8n node to process raw JSON inputs, sort messages chronologically, separate them into user Questions and operator Answers, and compile them into a readable formattedConversation string for the LLM.
OpenAI Chat Model (LLM n8n node):
Function: Provides the computational engine for the AI processing. Uses the gpt-4.1-mini model.
Key Configuration: Requires OpenAI API credentials.
Gen Help (Chain LLM n8n node):
Function: Executes the core task of the n8n workflow. It uses a detailed prompt instructing the AI to transform the Q&A conversation into a structured help article and strictly remove or neutralize PII.
store-doc (Data Table n8n node):
Function: Saves the final, sanitized document text output by the AI into the 'helpdocs' Data Table.
Generate professional, custom PDF invoices instantly using a powerful n8n workflow triggered by a webhook. Learn how this n8n template uses custom code and PDF tools for billing automation.

Automate PDF invoice creation directly from Google Sheets data using this powerful n8n workflow. Perfect for small businesses needing reliable, automated PDF generation.

Use this comprehensive n8n workflow to automate content generation with the jfirma1/test_model on Replicate. This n8n template includes a custom polling loop for reliable results.

Use this powerful n8n workflow to automatically generate professional Product Requirements Documents (PRDs) and Gherkin-style test scenarios using GPT-4 and Claude via OpenRouter, then export the final output as a PDF.

Automate personalized cold email icebreakers using GPT-4, detailed website scraping, and Google Sheets. This sophisticated n8n workflow template enhances outreach conversion rates and scales your lead generation.








































