Detect KB gaps and auto-draft articles with GPT-4.1, Slack and Gmail
Needs changesWhat this workflow does
This AI workflow has 31 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Configuration (Code): runs custom JavaScript code
- Send Error Alert (HTTP Request): calls an HTTP API (POST)
- Fetch Recent Support Tickets (HTTP Request): calls an HTTP API
- Fetch KB Articles (HTTP Request): calls an HTTP API
- Normalize Ticket Data (Code): runs custom JavaScript code
- Normalize KB Data (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Prepare Analysis Payload (Code): runs custom JavaScript code
- Gap Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 (Gap Analysis)
- Parse Gap Analysis (Code): runs custom JavaScript code
…plus 14 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Gap Analysis Agent (v1.7), Article Drafter Agent (v1.7), Quality Reviewer Agent (v1.7)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Gap Analysis Agent (v1.7), Article Drafter Agent (v1.7), Quality Reviewer Agent (v1.7), Report Generator Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Error Trigger
n8n-nodes-base.errorTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Gmail
n8n-nodes-base.gmail
From the author
Who is this for? Support teams, knowledge managers, and ops builders who are drowning in outdated KB articles and repeat tickets. If your team keeps answering the same questions because your knowledge base has gaps nobody has time to find — this template…