Deep Research - Sales Lead Magnet Agent
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs when a chat message arrives. Along the way it connects Google Docs, HTTP Request, Anthropic Chat Model and Google Drive and 1 more. It also calls chatbase.co over HTTP.
How it runs
Trigger: When a chat message arrives.
- Query Builder (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 2 tools (Perplexity tool, Trigify knowledge hub); output parser: Structured Output Parser
- Research Leader (AI Agent): runs an AI agent, with model: Anthropic Chat Model; 2 tools (Perplexity tool, Trigify knowledge hub)
- Project Planner (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 2 tools (Perplexity tool, Trigify knowledge hub); output parser: Structured Output Parser
- Split Out: splits a list into separate items
- Team of Research Assistants (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 2 tools (Perplexity tool, Trigify knowledge hub)
- Merge: merges the data from its input branches
- Code: runs custom JavaScript code
- Editor (AI Agent): runs an AI agent, with model: Anthropic Chat Model
- Google Docs: uses Google Docs
- Google Docs: update
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: chatbase.co
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 Query Builder (v1.7), Research Leader (v1.7), Project Planner (v1.7)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- HTTP Request Tool (legacy) in Trigify knowledge hub, Trigify knowledge hub2: replace with HTTP Request node connected to the AI Agent's Tool input.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| 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
From the author
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…