Templates / Detect KB gaps and auto-draft articles with GPT-4.1, Slack and Gmail

Detect KB gaps and auto-draft articles with GPT-4.1, Slack and Gmail

Needs changes

by Carlo B. · 39 views · created 2026-04-09 · Internal Wiki, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Configuration (Code): runs custom JavaScript code
  2. Send Error Alert (HTTP Request): calls an HTTP API (POST)
  3. Fetch Recent Support Tickets (HTTP Request): calls an HTTP API
  4. Fetch KB Articles (HTTP Request): calls an HTTP API
  5. Normalize Ticket Data (Code): runs custom JavaScript code
  6. Normalize KB Data (Code): runs custom JavaScript code
  7. Merge: merges the data from its input branches
  8. Prepare Analysis Payload (Code): runs custom JavaScript code
  9. Gap Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 (Gap Analysis)
  10. Parse Gap Analysis (Code): runs custom JavaScript code

…plus 14 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGmail

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.0Replace 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)

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…

Excerpt from Carlo B.'s description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.