Personalized outreach for lawyers with LinkedIn scraping, GPT-4o, Google Sheets
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day). Along the way it connects Google Sheets, OpenRouter Chat Model and OpenAI. It also calls googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every day).
- Set Fields (Edit Fields (Set)): sets 1 field: currentStartIndex
- Google Search (HTTP Request): calls googleapis.com
- Results (Code): runs custom JavaScript code
- Add to Google (Google Sheets): append
- Pages (Code): runs custom JavaScript code
- Research Agent (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
- Pages Check (If): checks a condition and branches into true / false
- Outreach Agent (OpenAI): uses OpenAI
- Google Sheets: append or update
Services it uses
HTTP calls to: googleapis.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Research 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.
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) Research Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - AI Agent
@n8n/n8n-nodes-langchain.agent - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
⚠️ This template uses only official n8n nodes. No community nodes required. 🧑💼 Who is this for? This workflow is designed for: - Legal tech founders - Marketing freelancers or consultants - Agencies supporting lawyers and small law firms - Anyone doing…