Templates / Generate knowledge base articles with GPT & Perplexity AI for Contentful CMS

Generate knowledge base articles with GPT & Perplexity AI for Contentful CMS

Needs changes

by Varritech ✓ · 5,927 views · created 2025-05-13 · Content Creation, Multimodal AI

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), Function (legacy). 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 19 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. Initialize Count (Edit Fields (Set)): sets or maps fields
  2. AI Writer Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  3. Increment Count (Function): runs custom JavaScript (legacy Function node)
  4. Create Perplexity Content (HTTP Request): calls an HTTP API
  5. JSON.parse (Code): runs custom JavaScript code
  6. Merge: merges the data from its input branches
  7. Format Perplexity Output & Add Citations (Code): runs custom JavaScript code
  8. Format (Code): runs custom JavaScript code
  9. AI Editor Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Accept and Publish)
  10. Check Limit (If): checks a condition and branches into true / false

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

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • AI Agent v1 (old agent modes) in AI Writer Agent (v1.7), AI Editor 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.
  • Function (legacy) in Increment Count: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Writer Agent (v1.7), AI Editor Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Function (legacy)
Increment Count
Code node, mode 'Run Once for All Items'

Nodes used (12)

From the author

Workflow: Auto Knowledge Base Article Generator ⚡ About the Creators This workflow was created by Varritech Technologies, an innovative agency that leverages AI to engineer, design, and deliver software development projects 500% faster than traditional…

Excerpt from Varritech'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.