Deep Research - Sales Lead Magnet Agent
Needs changesNeeds changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), HTTP Request Tool (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Query Builder (v1.7), Research Leader (v1.7), Project Planner (v1.7), Team of Research Assistants (v1.7), Editor (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| HTTP Request Tool (legacy) Trigify knowledge hub, Trigify knowledge hub2 | HTTP Request node connected to the AI Agent's Tool input |
Nodes used (13)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Google Docs
n8n-nodes-base.googleDocs - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
What it does
Want to check out all my flows, follow me on: https://maxmitcham.substack.com/ https://www.linkedin.com/in/max-mitcham/ This automation flow is designed to generate comprehensive, research-backed lead magnet articles based on a user-submitted topic, conduct deep research across multiple sources, and automatically create a professional Google Doc ready for LinkedIn sharing. ⚙️ How It Works (Step-by-Step): 1. 📝 Chat Input (Entry Point) A user submits a topic through the chat interface: Topic for lead magnet content Target audience (automatically detected) Company context (when relevant) 2. 🔍 Query Builder Agent An AI agent refines the input by: Converting the topic into 5 targeted research queries Determining if topic relates to company for specialized research Using structured output parsing for consistent results 3. 📚 Research Leader Agent Conducts comprehensive research that: Uses Perplexity API for real-time web research Integrates company knowledge base when relevant Creates detailed table of contents with research insights Identifies key trends, expert opinions, and case studies 4. 📋 Project Planner Agent Structures the content by: Generating professional title and subtitle Creating 8-10 logical chapter outlines Developing detailed writing prompts for each section Ensuring step-by-step actionable guidance 5. ✍️ Research Assistant Team Multiple AI agents write simultaneously: Each agent writes one chapter with proper citations Maintains consistent voice across all sections Includes real-world examples and implementation steps Uses both web research and company knowledge 6. 📝 Editor Agent Professional content polishing: Refines tone for authenticity and engagement Adds image placeholders where appropriate Ensures proper flow between chapters Optimizes for LinkedIn lead magnet format 7. 📄 Google Docs Creation Automated document generation: Creates new Google Doc with formatted content Sets proper sharing permissions (public link) Organizes in designated company folder Returns shareable URL for immediate use 🛠️ Tools Used: n8n: Workflow orchestration platform Anthropic Claude: Primary AI model for content generation OpenRouter: Backup AI model options Perplexity API: Real-time research capabilities Company Knowledge Hub: Internal documentation access Google Docs API: Document creation and formatting Google Drive API: File management and sharing 📦 Key Features: End-to-end automation from topic to published document Multi-agent approach ensures comprehensive coverage Real-time research with proper citations Company-specific knowledge integration Professional editing and formatting Automatic Google Docs creation with sharing Scalable content generation (3-5 minutes per article) 🚀 Ideal Use Cases: B2B companies building thought leadership content Sales teams creating industry-specific lead magnets Marketing departments scaling content production Consultants developing expertise-demonstrating resources SaaS companies creating feature-focused educational content Startups establishing market presence without content teams