This workflow corresponds to n8n.io template #12342 — we link there as the canonical source.
This workflow follows the Agent → Datatable recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "80b595bd-733a-49b5-94f3-c0d3c0bb984b",
"name": "Lead Information",
"type": "n8n-nodes-base.set",
"position": [
-944,
1168
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "7352cf64-7c38-41d3-bcc3-4d14f88fa5e1",
"name": "full_name",
"type": "string",
"value": "={{ $json.name }}"
},
{
"id": "e7cdcdc9-7646-4754-b512-51fc50e83d13",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "ddf02512-113a-482c-b75f-b322cfd74ae2",
"name": "location",
"type": "string",
"value": "={{ $json.location }}"
},
{
"id": "3c5a34a6-2746-4f5b-a2cd-bc103ce4273e",
"name": "company_industry",
"type": "string",
"value": "={{ $json.company_industry }}"
},
{
"id": "8cd616c3-140e-4711-8b00-e1ee4ab22ded",
"name": "company_domain",
"type": "string",
"value": "={{ $json.company_domain }}"
},
{
"id": "a03e3868-dec2-4787-96ee-14de4810d1f9",
"name": "company_revenue",
"type": "string",
"value": "={{ $json.company_revenue_range }}"
},
{
"id": "08d2b63f-850f-40c2-ba64-bdbbd9b550d0",
"name": "company_size",
"type": "string",
"value": "={{ $json.company_size }}"
},
{
"id": "bee87b2d-ed7e-44b9-ae96-f48adfc16634",
"name": "company_type",
"type": "string",
"value": "={{ $json.company_type }}"
},
{
"id": "2bd5661a-c96c-4211-8ae8-3a926a38b94b",
"name": "company_description",
"type": "string",
"value": "={{ $json.company_description }}"
},
{
"id": "a5b27ca3-1ba3-4021-89cf-f2bf69dd7589",
"name": "company_location",
"type": "string",
"value": "={{ $json.company_location }}"
},
{
"id": "074a6000-98a8-4ea1-b38a-cf21e90deea1",
"name": "email",
"type": "string",
"value": "={{ $json.email }}"
},
{
"id": "cdfb0564-6a53-4ed1-8c38-c7aa5320a8c7",
"name": "id",
"type": "number",
"value": "={{ $json.id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "586ded6a-7cbb-4da2-a1b4-bedc456bebd7",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
784,
1392
],
"parameters": {
"jsonSchemaExample": "{\n \"lead_full_name\": \"Josh Gonsalves\",\n \"subject_line\": \"quick idea for leadtube\",\n \"email_address\": \"user@example.com\",\n \"icebreaker_email\": \"I was looking at how small YouTube shops scale, and your setup stood out.\\nWe\u2019re seeing a lot of founder-led teams lose hours to prospecting \u2014 we helped a 3-person studio book 12 meetings in 30 days.\\nHappy to share the playbook if you\u2019re curious.\"\n}\n"
},
"typeVersion": 1.3
},
{
"id": "f33f8d0d-7bc0-4a8a-bc5d-4ab455025f19",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
464,
1392
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5",
"cachedResultName": "gpt-5"
},
"options": {}
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "e8c17bdc-345f-45f0-98aa-a84cd7d5177a",
"name": "Ice Breaker Email Generator",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
528,
1168
],
"parameters": {
"text": "=You are an AI email personalization agent.\n\nGOAL\nTransform a research report into a short, personalized cold email and output:\n1) a clear, benefit-led subject line (SHORT and punchy - 4-6 words max)\n2) an HTML email body that uses <br> for line breaks (no <p>, no CSS)\n\nOUTPUT (MUST be valid JSON)\n{\n \"subject\": \"string\",\n \"html_body\": \"string\"\n}\n\nIMPORTANT CONTEXT:\nALL leads were sourced because they posted SDR/BDR job openings on LinkedIn.\nThis is your primary Tier 1 signal \u2014 use it as the foundation of every email.\n\nSTYLE & RULES\n- Keep the body under 120 words.\n- Sound HUMAN, conversational, and peer-to-peer (like one professional writing to another).\n- Be concrete and specific. No fluff, no jargon, no hype.\n- Use only details implied or stated in the research_report.\n- Avoid repetitive phrases (\"replace SDRs\", \"$10.5k/month\", etc.).\n- Keep CTAs simple \u2014 \"full breakdown\" or \"the playbook\", not long lists of features\n- HTML rules: Use ONLY plain text and <br> tags for new lines. No other tags, no inline CSS, no images.\n\nDATA USAGE RULES (CRITICAL):\n- Use company-specific details ONLY if they're unlikely to change (domain, industry, hiring signal itself)\n- AVOID brittle details like exact headcount, revenue bands, or office locations unless critical to the angle\n- Frame case studies as \"similar-sized\" or \"similar-stage\" rather than exact matches\n- If you use company stage, keep it vague: \"companies hiring reps\" not \"11-person companies\"\n\nWORKFLOW\n1) ANCHOR on the hiring signal (they're scaling sales team = Tier 1)\n\n2) LAYER additional signals from research to determine template:\n - Template A (Question-led): Hiring + additional Tier 1 signal (funding, exec change, tech stack shift)\n - Template B (Direct value): Hiring + Tier 2 signal with strong case study match\n - Template C (Hiring-focused): Hiring signal only, minimal other info\n\n3) FRAME the challenge as a QUESTION with specific cost/risk/urgency in the SECOND sentence\n\n4) INJECT credibility in the THIRD sentence (proof, case study, metric) \u2014 not buried at the end\n\n5) SHARPEN the CTA \u2014 keep it simple (\"full breakdown\", \"the playbook\", \"how we did it\")\n\n6) RUN final \"human check\" \u2014 would YOU reply to this?\n\n\n# TEMPLATE A (Question-led \u2014 hiring + additional Tier 1 signal)\n\nSubject: [first_name], [signal question]?\n\nHi [first_name],<br><br>\n\nSaw you're hiring [SDR/BDR roles] [+ additional signal] \u2014 [provocative question with $ cost/risk/urgency tied to BOTH signals]?<br><br>\n\nWe helped a [similar-stage] [industry] [achieve specific outcome] in [timeframe] without adding headcount \u2014 happy to share the playbook.<br><br>\n\nWant the [X-min] Loom?<br><br>\n\nBest,<br>\n[your_name]<br>\n[your_title], [your_company]\n\n\n# TEMPLATE B (Direct value \u2014 hiring + strong case study match)\n\nSubject: [outcome] for [company]\n\nHi [first_name],<br><br>\n\nSaw you're bringing on [SDR/BDR roles] [+ signal] \u2014 [question with cost/risk]?<br><br>\n\nWe helped a [similar-stage] [industry] go from [before_state] to [after_state] in [timeframe]. [One sentence about the core challenge].<br><br>\n\nBuilt a quick Loom \u2014 want it?<br><br>\n\nBest,<br>\n[your_name]<br>\n[your_title], [your_company]\n\n\n# TEMPLATE C (Hiring-focused \u2014 hiring signal only, minimal other info)\n\nSubject: [first_name], hiring SDRs?\n\nHi [first_name],<br><br>\n\nSaw the SDR openings at [company] \u2014 most companies hiring reps right now are betting $150k+ per head on ramp time and quota attainment. What's your backup plan if it takes 6+ months?<br><br>\n\nWe helped a similar-sized [industry] book [X meetings] in [timeframe] with AI-driven outreach while their new rep was still ramping \u2014 covered the full breakdown in a [X-min] Loom.<br><br>\n\nWant me to send it?<br><br>\n\nBest,<br>\n[your_name]<br>\n[your_title], [your_company]\n\n\nEXAMPLE (Template C refined):\n\nSubject: Andy, hiring SDRs?\n\nHi Andy,<br><br>\n\nSaw the SDR openings at RT Futures Group \u2014 most companies hiring reps right now are betting $150k+ per head on ramp time and quota attainment. What's your backup plan if it takes 6+ months?<br><br>\n\nWe helped a similar-sized wealth advisor book 12 meetings in 30 days with AI-driven outreach while their new rep was still ramping \u2014 covered the full breakdown in a 3-min Loom.<br><br>\n\nWant me to send it?<br><br>\n\nBest,<br>\nAlex<br>\nAI Transformation Partner, otomata.xyz\n\n\nCRITICAL RULES:\n- Subject lines: SHORT and punchy (4-6 words max) \u2014 \"Andy, hiring SDRs?\" not \"Andy \u2014 shorten SDR ramp with a 30-day meeting plan\"\n- SECOND sentence MUST be a provocative QUESTION with specific $ cost/risk/urgency\n- THIRD sentence MUST inject proof/case study with specific metrics (not buried later)\n- NEVER use generic phrases like \"Most small firms scaling reps face...\" or \"A lot of teams in your space...\"\n- AVOID exact headcount, revenue, or location unless absolutely necessary\n- Keep CTAs simple \u2014 \"full breakdown\", \"the playbook\", \"Want it?\" \u2014 not feature lists\n- ALWAYS reference the SDR/BDR hiring in the first sentence (it's your credibility hook)\n- Frame your solution as \"scale smarter\" not \"replace your hires\" (avoid making them defensive)\n- Vary phrasing \u2014 no two emails should feel identical",
"options": {
"systemMessage": "=# Our Business Profile\n{{ $('Your Offer').item.json['Business Profile'] }}\n\n## Service Offer:\n{{ $('Your Offer').item.json['Grand Slam Offer'] }}\n\n# Case Studies \nUse the **Case Study Tool** to pull relevant case studies\n_____________________________________________________________\n\n# Lead Profile: \nFull Name:{{ $('Lead Information').item.json.full_name }}\nJob Title:{{ $('Lead Information').item.json.title }}\nLead's Location:{{ $('Lead Information').item.json.location }}\nEmail:{{ $('Lead Information').item.json.email }}\n\n\n# Lead's Company Profile\nCompany Location:{{ $('Lead Information').item.json.company_location }} \nCompany Domain: {{ $('Lead Information').item.json.company_domain }}\nCompany description:{{ $('Lead Information').item.json.company_description }}\nCompany Type:{{ $('Lead Information').item.json.company_type }}\nCompany Size:{{ $('Lead Information').item.json.company_size }}\nCompany Revenue:{{ $('Lead Information').item.json.company_revenue }}\nCompany Industry:{{ $('Lead Information').item.json.company_industry }}\n\n## Research Report\n{{ $('Lead Research Agent').item.json.output }}\n\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "628c215f-2c07-445d-9be4-594f23869b26",
"name": "Lead Research Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-224,
1168
],
"parameters": {
"text": "=Research this lead and their company to find personalized outreach angles.\n\nKNOWN SIGNAL: This company recently posted SDR/BDR job openings, meaning they're actively scaling their sales team.\n\nResearch and return:\n\n1. **Recent Growth Signals** (last 6-12 months)\n - Funding rounds, acquisitions, or partnerships\n - Product launches or major feature releases\n - Market expansion or new office openings\n - Headcount growth beyond the SDR posting\n\n2. **Sales & GTM Context**\n - Current sales tech stack (CRM, outreach tools, data providers)\n - Public statements about go-to-market strategy\n - Leadership changes in Revenue, Sales, or Marketing roles\n - Recent wins, case studies, or customer announcements\n\n3. **Scaling Challenges**\n - How fast they're hiring (multiple SDR roles?)\n - Signs of manual/inefficient processes\n - Indicators they're struggling to scale (long hiring cycles, role reposts)\n\n4. **Competitive/Industry Pressure**\n - Market trends forcing them to move faster\n - Competitive threats requiring aggressive growth\n\nBe SPECIFIC: Include dates, dollar amounts, names, and sources when available. Focus on verifiable facts from the last 12 months.\n\nReturn a natural summary that highlights the 2-3 most compelling hooks for a personalized cold email.",
"options": {
"systemMessage": "=PRIMARY INTENT SIGNAL: Company is actively hiring SDRs/BDRs (sales team expansion underway).\n\n\nYou are a specialized lead research agent. Your goal is to gather specific, actionable intelligence about prospects and their companies to enable highly personalized cold email outreach.\n\nFocus on finding verifiable facts, recent signals, and personalized hooks that demonstrate genuine research. All leads in this workflow were sourced because they posted SDR/BDR job openings, indicating active sales team expansion.\n\n**Research Priorities (in order):**\n\n1. **Primary Intent Signal** - Confirm and contextualize the SDR/BDR hiring signal (when posted, how many roles, reposts/expansions)\n\n2. **Recent Growth Signals** (last 6-12 months)\n - Funding rounds, acquisitions, partnerships (amounts, dates, sources)\n - Product launches or major feature releases (specific details)\n - Market expansion or new office openings (locations, dates)\n - Headcount growth beyond sales roles (numbers if available)\n\n3. **Sales & GTM Context**\n - Current sales tech stack (CRM, outreach tools, data providers) - specific tools if mentioned publicly\n - Public statements about go-to-market strategy (quotes, blog posts, interviews)\n - Leadership changes in Revenue, Sales, or Marketing (names, dates, previous roles)\n - Recent customer wins, case studies, or announcements (company names, industries, outcomes)\n\n4. **Scaling Challenges & Pain Points**\n - Hiring velocity (multiple roles, rapid expansion, long cycles)\n - Process inefficiency indicators (manual workflows, tool gaps, bottlenecks)\n - Competitive pressure or market trends affecting growth\n\n5. **Personalization Hooks**\n - Recent LinkedIn posts or articles by the lead\n - Company news, awards, or recognition\n - Industry-specific challenges or opportunities\n\n**Output Format:**\n\nReturn a concise research summary (200-300 words) highlighting the 2-3 most compelling hooks for personalized outreach. Include specific dates, dollar amounts, names, and sources when available. Prioritize recent signals (last 12 months) over historical information.\n\n\n# Lead Profile\nName: {{ $('Lead Information').item.json.full_name }}\nTitle: {{ $('Lead Information').item.json.title }}\nEmail: {{ $('Lead Information').item.json.email }}\nLocation: {{ $('Lead Information').item.json.location }}\n\n# Company Profile\nCompany Domain: {{ $('Lead Information').item.json.company_domain }}\nIndustry: {{ $('Lead Information').item.json.company_industry }}\nSize: {{ $('Lead Information').item.json.company_size }} employees\nRevenue: {{ $('Lead Information').item.json.company_revenue }}\nType: {{ $('Lead Information').item.json.company_type }}\nLocation: {{ $('Lead Information').item.json.company_location }}\nDescription: {{ $('Lead Information').item.json.company_description }}"
},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "76556b23-a7d2-4db5-9767-1dcd8219a7dc",
"name": "Perplexity Research",
"type": "n8n-nodes-base.perplexityTool",
"position": [
-16,
1392
],
"parameters": {
"options": {},
"messages": {
"message": [
{
"content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('message0_Text', ``, 'string') }}"
}
]
},
"simplify": true,
"requestOptions": {}
},
"credentials": {
"perplexityApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "4047f52c-91db-4de4-90e2-795f0b7e0189",
"name": "Your Offer",
"type": "n8n-nodes-base.set",
"position": [
-496,
1168
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "4ac3e552-bc3d-4f57-bc6b-2f03e83ed009",
"name": "Grand Slam Offer",
"type": "string",
"value": "=### **OFFER NAME:**\n\nAI Sales Infrastructure\u2122 Deployment:\n\nYour autonomous sales team that replaces $10,500+/month SDRs in 30 days.\n\n\ud83e\udde9 Core Offer (the machine itself):\n\nApollo Intelligence Scraper \u2192 finds perfect-fit prospects automatically\n\nCompany Research Engine \u2192 enriches with AI-generated insights\n\nMulti-Channel Message Generator \u2192 personalized LinkedIn + email outreach\n\nUnipile Deployment System \u2192 sends connections & tracks replies 24/7\n\nConversation Routing Logic \u2192 AI handles responses & next actions\n\nPipeline Automation \u2192 auto-updates CRM, zero manual input\n\nFollow-Up Intelligence \u2192 adaptive sequences based on engagement\n\n\ud83c\udf81 Bonuses:\n\nFree AI tools Audit:\n\nAI Tools Audits work:\n\n1. Hop on a brief consult where you ask about their business, different departments, and what problems they're facing.\n\n2. After the call, match tools from your database to their needs. Also, find industry-specific tools using sites like \"There's an AI for That\" or \"Future Tools.\"\n\n3. Create a report with your recommendations. You can use a Canva template or just a simple Google Doc. Hop on another call to walk them through the report and answer questions.\n\n\n\ud83d\udd12 Guarantee (risk reversal):\n\n\u201c30-Day Meeting Guarantee\u201d\nIf you don\u2019t have qualified sales meetings booked in the first 30 days, you don\u2019t pay.\n\n\n---\n\n### \u2705 WHAT YOU GET:\n\n1. **AI Strategy Deep Dive & Roadmap (Week 1\u20132)**\n \u2192 We find your highest-leverage AI opportunities that create ROI (not \u201ccool demos\u201d).\n\n2. **Team Enablement Sessions (Week 3\u20134)**\n \u2192 Upskill internal teams with our training stack so solutions actually get adopted.\n\n3. **AI MVP Development Partnership (Week 5\u20136)**\n \u2192 Co-build and validate AI tools that align with your strategic roadmap \u2014 no fluff.\n\n4. **Post-Sprint Report & GTM Handoff**\n \u2192 You get a plug-and-play AI blueprint, adoption plan, and dev-ready specs.\n\n---\n\n### \ud83d\udcb8 PRICE:\n\n**$10,500** Set Up \n**$2,500** Monthly Support\n\n\n\n---\n\n### \ud83e\udde8 BONUSES:\n\n* **\\[BONUS #1] Executive AI Strategy Training for Leadership** (\\$5,000 Value)\n\n > Equip your execs to make strategic AI decisions without drowning in tech.\n\n* **\\[BONUS #2] AI ROI Calculator Customized for Your Ops** (\\$3,000 Value)\n\n > See exactly how and where AI will create cost savings or revenue upside.\n\n\n---\n\n### \ud83d\udd12 GUARANTEE:\n\n**\u201cFail-Safe Strategy\u201d Guarantee**\nIf you don\u2019t feel 100% clear on where AI creates ROI in your business, and what NOT to do, by Week 2 \u2014 you don\u2019t pay. We\u2019ll eat the cost.\n\n> Why this works: you\u2019ve already seen companies pay \\$30k\u201360k just for the audit. You\u2019re de-risking the \u201cstrategy phase\u201d to earn trust *before* code gets written \u2014 exactly what mid-market companies want.\n\n---\n\n### \ud83e\udde0 WHY THIS IS A GRAND SLAM:\n\n* **High Pain**: Mid-market execs fear wasting money on AI \u2014 *80% fail rate* confirms this.\n* **Clear Dream Outcome**: \u201cKnow exactly where to use AI, what to build, and avoid expensive flops.\u201d\n* **Perceived Likelihood of Achievement**: Framed with case studies and a guarantee \u2014 strong trust stack.\n* **Time Delay Reduction**: Just 6 weeks to clarity, capability, and MVP.\n* **Effort & Sacrifice Minimization**: No internal AI team required to start. Done-with-you style support."
},
{
"id": "ab226a91-8a93-46fa-9a7f-54916d3c09a6",
"name": "Business Profile",
"type": "string",
"value": "=# otomata.xyz \u2014 Business Profile\n\n**Operating Name:** otomata.xyz\n**Based of Operations:** Toronto, Canada\n**Focus:** AI Transformation Partners (AITP) for mid-market companies\n\n---\n\n## Market Problem\n\n* **Big consultancies** won\u2019t work with firms under 500 employees.\n* **Most AI agencies** only build tools, without strategy.\n* Result: mid-market companies are stuck \u2014 they need both consulting and development.\n\nMeanwhile, AI adoption is shaky:\n\n* 80% of AI projects fail.\n* 42% of businesses scrapped AI initiatives in 2024 (up from 17% in 2023).\n* Companies swing, miss, and give up.\n\nDIY tools (like Wix, QuickBooks, LegalZoom) taught us this pattern: small businesses try, fail, and then hire experts. The same thing is now happening with AI.\n\n---\n\n## Our Approach\n\nAt otomata.xyz, we act as **AI Transformation Partners (AITP)**:\n\n1. **Strategy & Roadmapping** \u2014 Identify where AI creates real value.\n2. **Team Education** \u2014 Upskill staff so adoption sticks.\n3. **Development & Partnership** \u2014 Build solutions only after the groundwork is solid.\n\n---\n\n## Proof of Concept\n\n* **First audit:** free (lost \\$30k, but validated demand).\n* **Second audit:** \\$30k for 6 weeks.\n* **Third audit:** \\$60k for 4 weeks.\n\nCompanies aren\u2019t asking for code first. They want clarity: *where to apply AI, and how not to fail.*\n\n---\n\n## Market Opportunity\n\n* AI consulting projected to grow from **\\$8.8B \u2192 \\$73B by 2033** (\\~30% YoY growth).\n* **78% of SMBs** want AI solutions.\n* **Only 5%** have access to consultants.\n\n---\n\n## Positioning\n\notomata.xyz exists to fill the mid-market gap: too small for big consultancies, too strategic for one-off AI agencies. We partner with companies that are ready to adopt AI the right way\u2014strategy before code, education before tools, partnership before transactions.\n"
},
{
"id": "844ee11f-cfe3-4eef-92ec-46d0a5548459",
"name": "Case Study",
"type": "string",
"value": "=We helped a 15-person wealth advisor book 12 meetings in 30 days with AI-driven outreach while their new rep was still ramping \u2014 covered the full breakdown in a 3-min Loom."
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d444878e-a2b8-4e7e-bc52-807bb3177b50",
"name": "OpenAI Chat Model2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-352,
1392
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5-mini-2025-08-07",
"cachedResultName": "gpt-5-mini-2025-08-07"
},
"options": {}
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "6cca10d7-7623-4769-bd86-7e91e71155f2",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-192,
1392
],
"parameters": {
"sessionKey": "1020293294",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "5dba438a-68db-478c-a457-b075d437e259",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"position": [
-1168,
1072
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Failed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5aec486c-48bd-408a-8309-b59acaa32ef7",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "=failed"
}
]
},
"renameOutput": true
},
{
"outputKey": "Finished",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "82f7bbbf-2bd5-439a-844d-b071eefbcf49",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "=finished"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "a0cd24c6-4dd1-472f-8e60-530f4e8b969f",
"name": "Email Finder",
"type": "@wizaco/n8n-nodes-wiza.wiza",
"position": [
-1392,
1072
],
"parameters": {
"inputType": "linkedinUrl",
"linkedinUrl": "={{ $json.Linkedin }}",
"additionalFields": {}
},
"credentials": {
"wizaApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "ce66a7de-0a1f-41af-adad-3a0fd2775894",
"name": "Failed To Find Enrichment",
"type": "n8n-nodes-base.form",
"position": [
-944,
976
],
"parameters": {
"options": {},
"operation": "completion",
"completionTitle": "Failed To Find Enrichment Data",
"completionMessage": "The Wiza Back-End Could Not Find any Enrichment Data from the provided information"
},
"typeVersion": 2.3
},
{
"id": "b816f06b-ee2b-4836-b284-49cd750a1b8a",
"name": "On form submission1",
"type": "n8n-nodes-base.formTrigger",
"position": [
-1616,
1072
],
"parameters": {
"options": {},
"formTitle": "Linkedin",
"formFields": {
"values": [
{
"fieldLabel": "Linkedin"
}
]
}
},
"typeVersion": 2.3
},
{
"id": "d7defee7-c7b5-4017-8c7d-371a043f3c7d",
"name": "Add To lead Database",
"type": "n8n-nodes-base.dataTable",
"position": [
-720,
1168
],
"parameters": {
"columns": {
"value": {
"name": "={{ $json.full_name }}",
"email": "={{ $json.email }}",
"title": "={{ $json.title }}",
"location": "={{ $json.location }}",
"email_sent": false,
"company_size": "={{ $json.company_size }}",
"company_domain": "={{ $json.company_domain }}",
"company_industry": "={{ $json.company_industry }}",
"linkedin_profile_url": "={{ $('On form submission1').item.json.Linkedin }}",
"company_revenue_range": "={{ $json.company_revenue }}"
},
"schema": [
{
"id": "campaign_name",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "campaign_name",
"defaultMatch": false
},
{
"id": "name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "name",
"defaultMatch": false
},
{
"id": "linkedin_profile_url",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "linkedin_profile_url",
"defaultMatch": false
},
{
"id": "email",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "email",
"defaultMatch": false
},
{
"id": "title",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "title",
"defaultMatch": false
},
{
"id": "location",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "location",
"defaultMatch": false
},
{
"id": "phone",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "phone",
"defaultMatch": false
},
{
"id": "company_name",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "company_name",
"defaultMatch": false
},
{
"id": "company_size",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "company_size",
"defaultMatch": false
},
{
"id": "company_type",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "company_type",
"defaultMatch": false
},
{
"id": "company_industry",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "company_industry",
"defaultMatch": false
},
{
"id": "company_revenue_range",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "company_revenue_range",
"defaultMatch": false
},
{
"id": "company_linkedin",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "company_linkedin",
"defaultMatch": false
},
{
"id": "company_location",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "company_location",
"defaultMatch": false
},
{
"id": "company_domain",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "company_domain",
"defaultMatch": false
},
{
"id": "email_sent",
"type": "boolean",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "email_sent",
"defaultMatch": false
},
{
"id": "research",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "research",
"defaultMatch": false
},
{
"id": "email_icebreaker",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "email_icebreaker",
"defaultMatch": false
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"dataTableId": {
"__rl": true,
"mode": "list",
"value": "esfg4aP7UBYpkcGt",
"cachedResultUrl": "/projects/yzH6t1qmVzBSVjA7/datatables/esfg4aP7UBYpkcGt",
"cachedResultName": "Leads"
}
},
"typeVersion": 1
},
{
"id": "9d8b184d-5ab5-4255-b6af-bd04d13686b4",
"name": "Return Case Studies",
"type": "n8n-nodes-base.dataTableTool",
"position": [
624,
1392
],
"parameters": {
"operation": "get",
"returnAll": true,
"dataTableId": {
"__rl": true,
"mode": "list",
"value": "BI2roIv7n6xCdRP2",
"cachedResultUrl": "/projects/yzH6t1qmVzBSVjA7/datatables/BI2roIv7n6xCdRP2",
"cachedResultName": "Case Studies"
}
},
"typeVersion": 1
},
{
"id": "c8b1fdf5-0efa-497b-8c28-87fa889f8577",
"name": "Create a draft",
"type": "n8n-nodes-base.gmail",
"position": [
880,
1168
],
"parameters": {
"message": "={{ $json.output.icebreaker_email }}",
"options": {
"sendTo": "={{ $json.output.email_address }}"
},
"subject": "={{ $json.output.subject_line }}",
"resource": "draft",
"emailType": "html"
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.2
},
{
"id": "9a3121b4-49d2-4338-b598-255b1c6adbd6",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1392,
640
],
"parameters": {
"color": 7,
"width": 448,
"height": 240,
"content": " ## **1\ufe0f\u20e3 Enrich Leads & Verify Emails**\n\n- **Wiza Integration:** Submit a LinkedIn URL and Wiza finds verified email, job title, and company data.\n\n- **Smart Routing:** Failed enrichments are flagged automatically so you never send to bad addresses."
},
"typeVersion": 1
},
{
"id": "d556be62-01ac-4690-972a-14243921b874",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2304,
640
],
"parameters": {
"width": 480,
"height": 752,
"content": "@[youtube](dYYxL_91asY)\n\n## Workflow Overview\nA 100% automated system that enriches LinkedIn leads, researches their companies with AI, and writes personalized cold emails that actually get replies.\n\n## Workflow Set-Up\n**APIs:**\n- Wiza\n- OpenAI\n- Perplexity\n- Gmail\n\n## Full Documentation\nFind all downloadable resources including detailed set up information and database template csv in the [Full Notion Documentation](https://freemezie.notion.site/Email-Outreach-Automation-2d4c8a2a63e080dfa4e8e0fe6ea27894?source=copy_link)\n\n## How it works\n1. Submit a LinkedIn URL via form\n2. Wiza enriches contact data and finds email\n3. Perplexity AI researches the prospect and company\n4. GPT generates a personalized icebreaker email\n5. Draft is created in Gmail for review\n\n## Setup steps\n1. Add credentials: Wiza, OpenAI, Perplexity, Gmail OAuth2\n2. Create \"Leads\" and \"Case Studies\" data tables\n3. Update \"Your Offer\" node with your business context\n4. Activate workflow and grab the form URL"
},
"typeVersion": 1
},
{
"id": "d19e8837-f7b8-4bb1-a6de-d7d1616ac9ad",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
640
],
"parameters": {
"color": 7,
"width": 448,
"height": 240,
"content": " ## **2\ufe0f\u20e3 Research Each Prospect with AI**\n\n- **Deep Research:** Perplexity AI searches the web for recent news, funding signals, and growth indicators about each lead.\n\n- **Auto-Context:** All research is passed directly to the email writer for hyper-personalization."
},
"typeVersion": 1
},
{
"id": "f6461ff9-d559-490a-ad9d-0435d808d4c4",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
640
],
"parameters": {
"color": 7,
"width": 448,
"height": 240,
"content": "\n ## **3\ufe0f\u20e3 Generate & Stage Personalized Emails**\n\n- **Custom Writing:** GPT writes a unique icebreaker email for every person using real research and your case studies.\n\n- **Draft Ready:** All personalized emails are pushed to Gmail as drafts, ready for review and send."
},
"typeVersion": 1
}
],
"connections": {
"Switch1": {
"main": [
[
{
"node": "Failed To Find Enrichment",
"type": "main",
"index": 0
}
],
[
{
"node": "Lead Information",
"type": "main",
"index": 0
}
]
]
},
"Your Offer": {
"main": [
[
{
"node": "Lead Research Agent",
"type": "main",
"index": 0
}
]
]
},
"Email Finder": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Lead Research Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Create a draft": {
"main": [
[]
]
},
"Lead Information": {
"main": [
[
{
"node": "Add To lead Database",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Ice Breaker Email Generator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Lead Research Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Lead Research Agent": {
"main": [
[
{
"node": "Ice Breaker Email Generator",
"type": "main",
"index": 0
}
]
]
},
"On form submission1": {
"main": [
[
{
"node": "Email Finder",
"type": "main",
"index": 0
}
]
]
},
"Perplexity Research": {
"ai_tool": [
[
{
"node": "Lead Research Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Return Case Studies": {
"ai_tool": [
[
{
"node": "Ice Breaker Email Generator",
"type": "ai_tool",
"index": 0
}
]
]
},
"Add To lead Database": {
"main": [
[
{
"node": "Your Offer",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Ice Breaker Email Generator",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Ice Breaker Email Generator": {
"main": [
[
{
"node": "Create a draft",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
gmailOAuth2openAiApiperplexityApiwizaApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Submit a LinkedIn profile URL through a form. The workflow finds their email and company info using Wiza, then researches the prospect and their company with Perplexity AI to uncover recent news, growth signals, and pain points. Your choice of AI model uses that research to…
Source: https://n8n.io/workflows/12342/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Who is this for? Agencies, consultants, and service providers who conduct discovery calls and need to quickly turn conversations into professional proposals.
This workflow serves as a comprehensive "Workflow Nodes SEO & Documentation Generator". It uses AI to analyze, rename, and document n8n workflows, offering a streamlined way to optimize workflow reada
This is an automated blog post generation system that: Researches topics using AI agents and web search tools Writes complete blog posts with proper SEO structure Generates custom images for each post
Receives campaign parameters via form, creates a Smartlead campaign, sources qualified leads through Wiza based on your ICP description, researches each prospect with Perplexity AI, generates personal
Top Branch Workflow A The Market Intelligence: Patrols the Market: Runs hourly to scrape competitor rates for future days. Gathers Intel: If prices spike, it instantly checks event announcements to se