Templates / Generate B2B lead magnet articles with AI deep research and Google Docs

Generate B2B lead magnet articles with AI deep research and Google Docs

Ready for 3.0

by Veena Pandian ✓ · 304 views · created 2026-03-03 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs when a chat message arrives. Along the way it connects Google Sheets and Ollama Chat Model. It also calls docs.googleapis.com over HTTP.

How it runs

Trigger: When a chat message arrives.

  1. Refine into 5 Strategic Queries (AI Agent): runs an AI agent, with model: Ollama Chat Model
  2. Validate Queries (Code): runs custom JavaScript code
  3. Split into 5 Research Tasks (Split Out): splits a list into separate items
  4. Deep Web Researcher (AI Agent): runs an AI agent, with model: Ollama Chat Model
  5. Parse Research Output (Code): runs custom JavaScript code
  6. Build TOC and Compile Research (Code): runs custom JavaScript code
  7. Final Editor and Polish (AI Agent): runs an AI agent, with model: Ollama Chat Model
  8. Prepare Document Content (Code): runs custom JavaScript code
  9. Create Google Doc (HTTP Request): calls docs.googleapis.com (POST)
  10. Extract Doc ID (Code): runs custom JavaScript code

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

Services it uses

Google SheetsOllama Chat Model

HTTP calls to: docs.googleapis.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Who is this for? This workflow is built for B2B marketers, consultants, founders, and agency owners who need to produce high-quality, research-backed thought leadership content — without spending hours on research and writing. What this workflow does This…

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