Generate B2B lead magnet articles with AI deep research and Google Docs
Ready for 3.0What 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.
- Refine into 5 Strategic Queries (AI Agent): runs an AI agent, with model: Ollama Chat Model
- Validate Queries (Code): runs custom JavaScript code
- Split into 5 Research Tasks (Split Out): splits a list into separate items
- Deep Web Researcher (AI Agent): runs an AI agent, with model: Ollama Chat Model
- Parse Research Output (Code): runs custom JavaScript code
- Build TOC and Compile Research (Code): runs custom JavaScript code
- Final Editor and Polish (AI Agent): runs an AI agent, with model: Ollama Chat Model
- Prepare Document Content (Code): runs custom JavaScript code
- Create Google Doc (HTTP Request): calls docs.googleapis.com (POST)
- Extract Doc ID (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
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)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama
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…