{
  "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’re seeing a lot of founder-led teams lose hours to prospecting — we helped a 3-person studio book 12 meetings in 30 days.\\nHappy to share the playbook if you’re 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": {}
      },
      "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 — 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 — \"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) — not buried at the end\n\n5) SHARPEN the CTA — keep it simple (\"full breakdown\", \"the playbook\", \"how we did it\")\n\n6) RUN final \"human check\" — would YOU reply to this?\n\n\n# TEMPLATE A (Question-led — 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] — [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 — 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 — 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] — [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 — want it?<br><br>\n\nBest,<br>\n[your_name]<br>\n[your_title], [your_company]\n\n\n# TEMPLATE C (Hiring-focused — 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] — 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 — 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 — 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 — 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) — \"Andy, hiring SDRs?\" not \"Andy — 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 — \"full breakdown\", \"the playbook\", \"Want it?\" — 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 — no two emails sollten feel identisch",
        "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": {}
      },
      "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™ Deployment:\n\nYour autonomous sales team that replaces $10,500+/month SDRs in 30 days.\n\n🧩 Core Offer (the machine itself):\n\nApollo Intelligence Scraper → finds perfect-fit prospects automatically\n\nCompany Research Engine → enriches mit AI-generierten insights\n\nMulti-Channel Message Generator → personalisierte LinkedIn + email outreach\n\nUnipile Deployment System → sends connections & tracks replies 24/7\n\nConversation Routing Logic → AI handles responses & next actions\n\nPipeline Automation → auto-updates CRM, zero manual input\n\nFollow-Up Intelligence → adaptive sequences based on engagement\n\n🎁 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\" oder \"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🔒 Guarantee (risk reversal):\n\n“30-Day Meeting Guarantee”\nIf you don’t have qualified sales meetings booked in the first 30 days, you don’t pay.\n\n\n---\n\n### ✅ WAS DU BEKOMMST:\n\n1. **AI Strategy Deep Dive & Roadmap (Woche 1–2)**\n   → We find your highest-leverage AI opportunities that create ROI (not “cool demos”).\n\n2. **Team Enablement Sessions (Woche 3–4)**\n   → Upskill internal teams with our training stack so solutions actually get adopted.\n\n3. **AI MVP Development Partnership (Woche 5–6)**\n   → Co-build and validate AI tools that align with your strategic roadmap — no fluff.\n\n4. **Post-Sprint Report & GTM Handoff**\n   → You get a plug-and-play AI blueprint, adoption plan, and dev-ready specs.\n\n---\n\n### 💸 PREIS:\n\n**$10,500** Einrichtung \n**$2,500** Monatliche Unterstützung\n\n\n\n---\n\n### 🧨 BONUSE:\n\n* **\\[BONUS #1] Executive AI Strategy Training for Leadership** (\\$5,000 Wert)\n\n  > Equip your execs to make strategic AI decisions without drowning in tech.\n\n* **\\[BONUS #2] AI ROI Calculator Customized für Ihre Operationen** (\\$3,000 Wert)\n\n  > See exactly how and where AI will create cost savings or revenue upside.\n\n\n---\n\n### 🔒 GARANTIE:\n\n**“Fail-Safe Strategy” Garantie**\nIf you don’t feel 100% clear on where AI creates ROI in your business, and what NOT to do, by Woche 2 — you don’t pay. We’ll eat the cost.\n\n> Warum das funktioniert: you’ve already seen companies pay \\$30k–60k just for the audit. You’re de-risking the “strategy phase” to earn trust *before* code gets written — exactly what mid-market companies want.\n\n---\n\n### 🧠 WARUM DAS EIN GRAND SLAM IST:\n\n* **High Pain**: Mid-market execs fear wasting money on AI — *80% fail rate* confirms this.\n* **Clear Dream Outcome**: “Know exactly where to use AI, what to build, and avoid expensive flops.”\n* **Perceived Likelihood of Achievement**: Framed with case studies and a guarantee — 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 — 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## Marktproblem\n\n* **Big consultancies** won’t work with firms under 500 employees.\n* **Most AI agencies** only build tools, without strategy.\n* Ergebnissen: mid-market companies are stuck — sie benötigen sowohl Beratung als auch Entwicklung.\n\nMittlerweile ist die AI-Einführung wackelig:\n\n* 80% der AI-Projekte scheitern.\n* 42% der Unternehmen haben AI-Initiativen im Jahr 2024 eingestellt (von 17% 2023).\n* Unternehmen schwingen, verpassen und geben auf.\n\nDIY-Tools (wie Wix, QuickBooks, LegalZoom) haben uns dieses Muster beigebracht: kleine Unternehmen versuchen, scheitern und ziehen dann Experten hinzu. Das gleiche passiert jetzt mit AI.\n\n---\n\n## Unser Ansatz\n\nBei otomata.xyz agieren wir als **AI Transformation Partners (AITP)**:\n\n1. **Strategie & Roadmapping** — Identifizieren, wo AI echten Wert schafft.\n2. **Team Education** — Schulen Sie Mitarbeiter, damit die Übernahme bleibt.\n3. **Entwicklung & Partnerschaft** — Lösungen nur bauen, wenn das Fundament solide ist.\n\n---\n\n## Proof of Concept\n\n* **Erste Prüfung:** kostenlos (verlorene \\$30k, aber validierte Nachfrage).\n* **Zweite Prüfung:** \\$30k für 6 Wochen.\n* **Dritte Prüfung:** \\$60k für 4 Wochen.\n\nUnternehmen fragen nicht nach Code zuerst. Sie wollen Klarheit: *wo AI anwenden und wie nicht scheitern*.\n\n---\n\n## Marktchance\n\n* AI-Beratung wird voraussichtlich von **\\$8.8B → \\$73B bis 2033** (\\~30% j/J Wachstum).\n* **78% der SMBs** wollen AI-Lösungen.\n* **Nur 5%** haben Zugang zu Beratern.\n\n---\n\n## Positionierung\n\notmata.xyz existiert, um die MID-Markt-Lücke zu schließen: zu klein für große Beratungen, zu strategisch für einmalige AI-Agenturen. Wir arbeiten mit Unternehmen zusammen, die bereit sind, AI auf die richtige Weise zu übernehmen - Strategie vor Code, Bildung vor Werkzeugen, Partnerschaft vor Transaktionen.\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 — 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": {}
      },
      "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": {}
      },
      "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"
      },
      "typeVersion": 2.2
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}