AI SDR Agent - Inbound Sales on Autopilot (1)

    Stop Losing Deals to Slow Response Times This isn't a chatbot. It's a complete AI SDR system that reads every inbound email, understands context, qualifies leads, and books meetings while you sleep x - https://x.com/_niihhhall Guide - https://docs.google.com/document/d/1CfZ4v52xhzgIG9v1fnCK_aHX2F_enwdxl98RSg-iDLo/edit?usp=sharing

    Shared 12/23/2025

    16 views

    Visual Workflow

    JSON Code

    {
      "id": "TOG8ngOKnK9lwV46",
      "meta": {
        "instanceId": "a0592986a68c3371a15cb0e914712f6ead78763515395536dd982e61fe8e98fa"
      },
      "name": "SDR Agent - 1",
      "tags": [],
      "nodes": [
        {
          "id": "dd338b07-bff1-45c3-8d30-867648eaa817",
          "name": "AI Agent",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1264,
            160
          ],
          "parameters": {
            "text": "=Use the provided company info and intent to write a short, personalized cold email for Promptible.\n\nLeads name: {{ $('Webhook').first().json.body.name }}\nCompany: {{ $('Webhook').first().json.body.company }}\nIntent / Interest: Lead generation AI agent with Rag\n\nFirst line of the email: {{ $('Basic LLM Chain1').item.json.text }}\n\n**Important lead details**: {{ $json.text }}\n\nInstructions:\n- Start with Hi (name),\n- then the provided first line only (don’t write your own intro)\n- Based on the **intent**, identify which Promptible automation is relevant (lead gen, proposal docs, CRM sync, voice agent, etc.)\n- Reference one automation that directly solves that problem\n- Pull one short, quantified stat or client win from the Google Doc *only if it matches the intent*\n- Keep the tone friendly, curious, and clear\n- End with a soft, open-ended question (like “curious if that’s something you're exploring?”)\n- Keep it under 150 words total",
            "options": {
              "systemMessage": "=You’re writing as a smart, friendly founder at Promptible — a company that builds AI automations for sales, ops, and marketing.\n\nYour goal is to write helpful, personalized first-touch cold emails that feel human, casual, and relevant — not salesy, not robotic.\n\nBefore writing, read the Promptible knowledge base (Google Doc) to understand exactly what we offer, and what’s actually worked (stats, use cases, tools).\n\nOnly mention things that are relevant to the person’s interest — no random features or fake praise.\n\nEach email must:\n- Start with the provided first line ({{ $('Basic LLM Chain1').item.json.text }})\n- Offer ONE specific solution Promptible has that matches their need\n- Include ONE useful stat or client win *if* it fits naturally\n- End with a soft, open-ended question (no pressure, no “book a call”)\n\nYou’re speaking like a founder (Liam Johnston or teammate), so make it sound real. Chill, sharp, short. Under 150 words.\n\nNever mention it’s an email. Never use full names. Just talk to them."
            },
            "promptType": "define"
          },
          "typeVersion": 1.7
        },
        {
          "id": "17daf240-1efb-479c-8e4f-074a0ed99fd2",
          "name": "Webhook",
          "type": "n8n-nodes-base.webhook",
          "position": [
            -5776,
            2080
          ],
          "webhookId": "c7355c30-8531-40b4-b882-ba1ea7f9fafa",
          "parameters": {
            "path": "c7355c30-8531-40b4-b882-ba1ea7f9fafa",
            "options": {},
            "httpMethod": "POST"
          },
          "typeVersion": 2
        },
        {
          "id": "20f82693-a92f-4993-b56a-f82dcf2ce303",
          "name": "Gmail",
          "type": "n8n-nodes-base.gmail",
          "position": [
            1664,
            160
          ],
          "webhookId": "3f61d291-9fd0-4efd-8a75-c616ae78993b",
          "parameters": {
            "sendTo": "=liam8181@icloud.com",
            "message": "={{ $json.output }}\n\nSent from my iPhone.",
            "options": {
              "bccList": "hqPx6HPrYcpZOTKTwZKA@application.truflow.ai",
              "appendAttribution": false
            },
            "subject": "=Let's Automate {{ $('Webhook').item.json.body.company }}",
            "emailType": "text"
          },
          "typeVersion": 2.1
        },
        {
          "id": "c4bbb75d-b1c5-44ae-bbc7-1a14222010c9",
          "name": "HighLevel",
          "type": "n8n-nodes-base.highLevel",
          "disabled": true,
          "position": [
            -5424,
            2080
          ],
          "parameters": {
            "email": "={{ $json.body.email }}",
            "requestOptions": {},
            "additionalFields": {
              "name": "={{ $json.body.name }}",
              "tags": "new lead",
              "notes": "=Company: {{ $json.body.company }}\n\nAutomation Needs:{{ $json.body.message }}",
              "source": "Website Form"
            }
          },
          "typeVersion": 2
        },
        {
          "id": "a795b951-0106-4b6f-bf6b-f262ef0ebd34",
          "name": "Slack",
          "type": "n8n-nodes-base.slack",
          "disabled": true,
          "position": [
            2224,
            1968
          ],
          "webhookId": "9bca014d-0600-4b3c-aa00-7a3597925825",
          "parameters": {
            "text": "=New Lead That Didn't Book A Call:\nName: {{ $('Webhook').item.json.body.name }}\nEmail: {{ $('Webhook').item.json.body.email }}\nCompany: {{ $('Webhook').item.json.body.company }}\nAutomation Needs: {{ $('Webhook').item.json.body.message }}",
            "select": "channel",
            "channelId": {
              "__rl": true,
              "mode": "list",
              "value": "C08P7Q7CXCM",
              "cachedResultName": "leads"
            },
            "otherOptions": {},
            "authentication": "oAuth2"
          },
          "typeVersion": 2.3
        },
        {
          "id": "7f37fac0-f2f9-4afa-899f-13d36cd31e28",
          "name": "Hunter",
          "type": "n8n-nodes-base.hunter",
          "position": [
            -4448,
            2432
          ],
          "parameters": {
            "email": "={{ $json.text }}",
            "operation": "emailVerifier"
          },
          "typeVersion": 1
        },
        {
          "id": "14f5e8f2-327b-4577-ad82-69053ace5dc8",
          "name": "If",
          "type": "n8n-nodes-base.if",
          "position": [
            -4224,
            2432
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "or",
              "conditions": [
                {
                  "id": "50e90471-bf0a-4c52-a91c-f33f06f98b28",
                  "operator": {
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $json.status }}",
                  "rightValue": "valid"
                },
                {
                  "id": "7ba82642-5c87-43db-83b3-0b19a5ba57e8",
                  "operator": {
                    "name": "filter.operator.equals",
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $json.status }}",
                  "rightValue": "accept_all"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "fbf45902-a1eb-44d0-bdc2-f90038ea63bc",
          "name": "Enrich Lead",
          "type": "n8n-nodes-base.httpRequest",
          "onError": "continueRegularOutput",
          "position": [
            -4096,
            2080
          ],
          "parameters": {
            "url": "=",
            "options": {}
          },
          "typeVersion": 4.2,
          "alwaysOutputData": false
        },
        {
          "id": "510d0c98-a37b-4e7e-ba48-68359b824edb",
          "name": "Telegram",
          "type": "n8n-nodes-base.telegram",
          "position": [
            -3984,
            2432
          ],
          "webhookId": "fe4d2f4b-975f-453b-9b07-11ea591b3fdb",
          "parameters": {
            "chatId": "7647020159",
            "message": "=lead with invalid email:\nNAME: {{ $('Webhook').item.json.body.name }}\nEMAIL: {{ $('Webhook').item.json.body.email }}",
            "options": {},
            "operation": "sendAndWait",
            "formFields": {
              "values": [
                {
                  "fieldLabel": "correct email?",
                  "placeholder": "email",
                  "requiredField": true
                }
              ]
            },
            "responseType": "customForm"
          },
          "typeVersion": 1.2
        },
        {
          "id": "1cb04022-7875-4a04-bb3a-16ffc9d723db",
          "name": "Basic LLM Chain",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -4864,
            2432
          ],
          "parameters": {
            "text": "=Email 1: {{ $('Webhook').item.json.body.email }}\nEmail 2: {{ $json.correct_email }}\n\n\n\n",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert email extractor that only outputs a single email that comes in. You will receive an email from two different places and only one of them will have a valid output and you need to just output that one. \n\n**CRUICAL STEP**\n**IF THERES ONLY ONE EMAIL SHOWN -> OUTPUT EMAIL 1. IF THERES TWO EMAILS AVAILABLE -> OUTPUT EMAIL 2**"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "e94a9628-0afb-4a90-be62-9f648897f09f",
          "name": "OpenAI Chat Model1",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -4960,
            2560
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "57bb7ae6-caa2-4bdb-b3db-3dc4912b71c3",
          "name": "Edit Fields",
          "type": "n8n-nodes-base.set",
          "position": [
            -3760,
            2432
          ],
          "parameters": {
            "options": {},
            "assignments": {
              "assignments": [
                {
                  "id": "25d195b1-a0fd-4fcf-8560-931e14a77df2",
                  "name": "correct_email",
                  "type": "string",
                  "value": "={{ $json.data['correct email?'] }}"
                }
              ]
            }
          },
          "typeVersion": 3.4
        },
        {
          "id": "c3344f8f-1a18-4eb7-8d19-a611e1ec5362",
          "name": "Merge",
          "type": "n8n-nodes-base.merge",
          "position": [
            -5088,
            2432
          ],
          "parameters": {},
          "typeVersion": 3.1
        },
        {
          "id": "eea069e7-3688-4c64-a3b6-cd97de489b01",
          "name": "If1",
          "type": "n8n-nodes-base.if",
          "position": [
            -3904,
            2080
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "or",
              "conditions": [
                {
                  "id": "d194be05-cc28-431f-8329-577c053ae2ed",
                  "operator": {
                    "type": "string",
                    "operation": "contains"
                  },
                  "leftValue": "={{ $json.error.message }}",
                  "rightValue": "404"
                },
                {
                  "id": "254d64e8-f60a-4b95-9647-8455a4966a81",
                  "operator": {
                    "type": "string",
                    "operation": "contains"
                  },
                  "leftValue": "={{ $json.error.message }}",
                  "rightValue": "400"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "d35c241c-c1db-41c6-8d6e-a1d525ff5ac6",
          "name": "OpenAI Chat Model2",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -3744,
            1888
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "8fbf325d-2e1d-4df2-908c-721b25cfb4fe",
          "name": "OpenAI Chat Model3",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -3440,
            1888
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "0f190aa0-0a0c-4cc6-b8a2-2bc2a552ca64",
          "name": "Extract domain or company",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -3760,
            1712
          ],
          "parameters": {
            "text": "=Inputs:\nEmail: `{{ $('Edit Fields').item.json.correct_email }}`\nCompany name (from form): `{{ $('Webhook').first().json.body.company }}`",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert lead data extractor. Your job is to extract the correct domain or company from an email address and compare it to the company name, if provided.\n\nRules:\n- If the email is from a free email provider (e.g., gmail.com, outlook.com, yahoo.com), output the company name that was provided in the form.\n- If the email is from a custom domain (e.g., liam@promptible.io), output the domain from the email address (e.g., https://promptible.io).\n- Do NOT output the person's name.\n- Only output either the domain or company name — not both.\n- MAKE SURE YOU include \"www.\" or \"https://\""
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "022f421d-2d2f-4ea9-90de-51cc84764564",
          "name": "Full Domain or just company",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -3440,
            1712
          ],
          "parameters": {
            "text": "=here is the input to decipher: {{ $json.text }}",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert at differentiating full company domains from just company names. \n\nYour task is to decipher if the input is just a company name like Apple or if its a full company domain like Apple.com. \n\nYour output should be True or False\n\nTRUE= Full domain \nFALSE= Just comany name"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "518c810d-53c4-4248-bd73-e4002eb3dfaf",
          "name": "If2",
          "type": "n8n-nodes-base.if",
          "position": [
            -3088,
            1712
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "fc93e7d7-510c-4587-99e1-d0d0fef8e372",
                  "operator": {
                    "type": "string",
                    "operation": "notEquals"
                  },
                  "leftValue": "={{ $json.text }}",
                  "rightValue": "True"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "09930cee-8f30-41f9-943d-4e968fd82787",
          "name": "Aggregate",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            -2480,
            1360
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "markdown"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "db4674f0-73a0-42dd-b64f-2a234f8f5353",
          "name": "OpenAI Chat Model4",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -2624,
            1952
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "73f0563c-25dc-4648-965e-abd04e57f5d2",
          "name": "Aggregate1",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            -2016,
            1808
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "fullname"
                },
                {
                  "fieldToAggregate": "profile_url"
                },
                {
                  "fieldToAggregate": "is_creator"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "bf8eb15f-dc1c-45df-b40f-edc3400d182c",
          "name": "OpenAI Chat Model5",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -1808,
            1968
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o",
              "cachedResultName": "gpt-4o"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "15b82bc7-fb7d-4d7b-bf4e-009b00836ade",
          "name": "Extract company linkedin url",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -2608,
            1808
          ],
          "parameters": {
            "text": "=here is all the links: \n{{ $json.social_links }}\n",
            "messages": {
              "messageValues": [
                {
                  "message": "=From all of these links only extract the url of the linkedin profile. They will come in a random order each time, so we need to grab only the LinkedIn url. \n\nONLY EXTRACT THE COMPANY LINKEDIN URL"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "53ae9811-2ccd-4180-836b-d41f42ba51f1",
          "name": "Extract personal linkedin url",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -1776,
            1808
          ],
          "parameters": {
            "text": "=Heres the name to match: {{ $('Webhook').first().json.body.name }}\n\nheres the new names coming in from the linkedin search: {{ $json.fullname }}\n\nNow heres the linkedin URL's you need to find the one that matches the two matched names:\n{{ $json.profile_url }}\n\nHere is if the user is_creator:\n{{ $json.is_creator }}\n\nThis only matters if there are multiple name matches otherwise carry on.\n\nONLY OUTPUT THE URL NOT THE NAME",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert at matching the name and outputting the correct url for that persons profile.\n\nYou will be passed 1-50 names and will need to extract the name that matches the one from the webhook. \n\nYou will then output only the Full Name and linkedin URL for that matched user. \n\nIMPORTANT: The first name can be present, as long as there is a partial match that is okay. \n\nFor example: \nJohn and John Smith would be a match \n\nbecasue the first name matches. If theres multiple first name matches then find the one that has is_creator true. that means they crerated the account. this is afallback last resort. "
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "36b5ee9f-65b9-40db-b968-859a000a9fa0",
          "name": "Get social media urls",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -2816,
            1808
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apioracle~company-domain/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "sendBody": true,
            "sendQuery": true,
            "bodyParameters": {
              "parameters": [
                {
                  "name": "name",
                  "value": "={{ $json.data?.person?.employment?.domain || $('Webhook').item.json.body?.company }}"
                }
              ]
            },
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2
        },
        {
          "id": "8bbb3136-caf6-4af3-a5cb-82ef77e8eeb1",
          "name": "extract personal linkedin from company",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -2240,
            1808
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apimaestro~linkedin-company-employees-scraper-no-cookies/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "sendBody": true,
            "sendQuery": true,
            "bodyParameters": {
              "parameters": [
                {
                  "name": "identifier",
                  "value": "={{ $json.text }}"
                }
              ]
            },
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2,
          "alwaysOutputData": true
        },
        {
          "id": "613b2601-5112-4511-a3d1-a9b135e5abb5",
          "name": "extract personal linkedin details",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -1424,
            1808
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apimaestro~linkedin-profile-detail/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "sendBody": true,
            "sendQuery": true,
            "bodyParameters": {
              "parameters": [
                {
                  "name": "username",
                  "value": "={{ $json.text }}"
                }
              ]
            },
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2
        },
        {
          "id": "6576f715-214f-4ede-b7ca-f4300c5bfe5b",
          "name": "HTTP Request3",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -704,
            1840
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apify~instagram-scraper/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "jsonBody": "={\n  \"addParentData\": false,\n  \"directUrls\": [\n    \"{{ $json.text }}\"\n  ],\n  \"enhanceUserSearchWithFacebookPage\": false,\n  \"isUserReelFeedURL\": false,\n  \"isUserTaggedFeedURL\": false,\n  \"onlyPostsNewerThan\": \"60 days\",\n  \"resultsLimit\": 5,\n  \"resultsType\": \"posts\",\n  \"searchLimit\": 1,\n  \"searchType\": \"hashtag\"\n}",
            "sendBody": true,
            "sendQuery": true,
            "specifyBody": "json",
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2,
          "alwaysOutputData": true
        },
        {
          "id": "cdf4bf2c-7a9c-4f9b-b41f-107fc59d51bc",
          "name": "OpenAI Chat Model6",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            -864,
            1840
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "e00f2c77-10f7-4327-bd25-c88a28c5812d",
          "name": "Aggregate2",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            -480,
            1840
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "caption"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "a40a93f2-6be1-4ef7-ad86-e17a19519033",
          "name": "HTTP Request6",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -1200,
            2000
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apimaestro~linkedin-batch-profile-posts-scraper/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "jsonBody": "={\n  \"usernames\": [\n    \"{{ $json.message }}\"\n  ],\n  \"limit\": 5\n}",
            "sendBody": true,
            "sendQuery": true,
            "specifyBody": "json",
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2,
          "alwaysOutputData": true
        },
        {
          "id": "1984c474-de47-43c9-97ec-26def400941f",
          "name": "Aggregate3",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            -976,
            2000
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "text"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "599013cc-de44-4e00-aecb-98210bb06896",
          "name": "Merge1",
          "type": "n8n-nodes-base.merge",
          "position": [
            32,
            1904
          ],
          "parameters": {
            "numberInputs": 4
          },
          "typeVersion": 3.1
        },
        {
          "id": "49f9e079-70c2-4bc9-ab96-927e246e6ff1",
          "name": "Aggregate4",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            -976,
            1648
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "markdown"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "46235a9d-28b7-4f25-b2b0-3a819e24b7a3",
          "name": "Aggregate5",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            288,
            160
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "markdown"
                },
                {
                  "fieldToAggregate": "caption"
                },
                {
                  "fieldToAggregate": "text"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "6d6bc0a8-86c0-4f44-b2ac-711849f6e361",
          "name": "Basic LLM Chain1",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            480,
            160
          ],
          "parameters": {
            "text": "=\n---\n\n## 🧠 User Prompt Template (Per Company)\n\nThis is what you send along with each request:\n\n\nAnalyze the following company description and industry. Identify a unique value, growth signal, or compelling idea.\n\nCompany Details: \nWebsite details: {{ $json.markdown }}\n\nInstagram details: {{ $json.caption }}\n\nLinkedIn details: {{ $json.text }}\n\nWhat the lead is interested in: {{ $('Webhook').item.json.body.message }}\n\nCompany name: {{ $('Webhook').item.json.body.company }}\n\nName: {{ $('Webhook').item.json.body.name }}\n\nReturn only a 1–2 sentence opening line that compliments them in a natural, excited tone.\n\nExample:\n\"Love what you’re doing with [X] — especially how you’ve [done Y]. Excited to see how that plays out.\"",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are a persuasive B2B copywriter. Your task is to write highly personalized opening lines for cold outreach emails based on company descriptions and industries. \n\nThe goal is to identify one impressive, exciting, or clever thing about the company and congratulate them naturally — as if you’re a founder or growth partner who genuinely appreciates their work. \n\nBe real. No fluff. No templated phrases. Always sound sharp, casual, and observant. If there’s nothing super specific to praise, compliment their mission, branding, or momentum.\n\nYour response should ONLY include a 1–2 sentence “congrats” line."
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "647d14c2-d0d1-427b-b31c-14f0100de5d7",
          "name": "Anthropic Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
          "position": [
            448,
            384
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "claude-3-7-sonnet-20250219",
              "cachedResultName": "Claude 3.7 Sonnet"
            },
            "options": {}
          },
          "typeVersion": 1.3
        },
        {
          "id": "a84b93c4-729d-406a-8d39-7d229dc6941d",
          "name": "Knowledge Base",
          "type": "n8n-nodes-base.googleDocsTool",
          "position": [
            1424,
            384
          ],
          "parameters": {
            "operation": "get",
            "documentURL": "https://docs.google.com/document/d/18wXNd28f_Regxuo51TPtgv8ADBd47rpCB3B3R4wX3mk/edit?tab=t.0"
          },
          "typeVersion": 2
        },
        {
          "id": "9215adb1-a5d7-4cd4-b409-27ab7e369242",
          "name": "OpenAI Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1232,
            384
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4.1-mini",
              "cachedResultName": "gpt-4.1-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "37bb9f05-bf71-4738-a951-7245dd59421a",
          "name": "Gmail1",
          "type": "n8n-nodes-base.gmail",
          "position": [
            1904,
            160
          ],
          "webhookId": "0b796521-299d-485b-b268-5d984085bb99",
          "parameters": {
            "labelIds": [
              "Label_6404049094877547716"
            ],
            "messageId": "={{ $json.id }}",
            "operation": "addLabels"
          },
          "typeVersion": 2.1
        },
        {
          "id": "e7b84f83-1472-413a-a00f-b7964fad7474",
          "name": "Basic LLM Chain2",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            864,
            160
          ],
          "parameters": {
            "text": "=All details below:\n\nCompany Details: \nWebsite details: {{ $('Aggregate5').item.json.markdown }}\n\nInstagram details: {{ $('Aggregate5').item.json.caption }}\n\nLinkedIn details: {{ $json.text }}\n\nWhat the lead is interested in: {{ $('Webhook').item.json.body.message }}\n\nCompany name: {{ $('Webhook').item.json.body.company }}\n\nName: {{ $('Webhook').item.json.body.name }}",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert AI analyst and research assistant at Promptible. Your job is to read and analyze business information to produce insightful summaries.\n\nStep 1: You must first read and internalize the full social media posts and grasp the key things the lead is currently doing thats intersting and working for them. LinkedIn is a key indicator for success metrics and thought leadership so use that to your advantage. Instagram would have more focus on personal brand so focus on looking for how they are presneting themselves and their brand to their customers.\n\nStep 2: After reading the company knowledge base, you will analyze the provided inputs (company website content, LinkedIn, Instagram, founder data, etc.). Prioritize what’s recent, impressive, and relevant to AI automation, sales enablement, or lead ops.\n\nStep 3: Your output is a 3-paragraph professional summary that captures:\n- What this company does (products, market, tone)\n- Why it matters (noteworthy signals, hiring, traction, social proof)\n- How Promptible might help them, indirectly inferred\n"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "43a04fdf-c731-4791-bba3-8902b8687e09",
          "name": "OpenAI Chat Model7",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            800,
            384
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "cc54f086-2bfd-4e04-a061-cec6f5148bba",
          "name": "Wait",
          "type": "n8n-nodes-base.wait",
          "position": [
            144,
            672
          ],
          "webhookId": "845ee714-b4ad-4b4c-91b7-0384eb8419b9",
          "parameters": {
            "unit": "hours",
            "amount": 24
          },
          "typeVersion": 1.1
        },
        {
          "id": "bd18445a-61b4-43e2-8aae-73806b1db2fb",
          "name": "Gmail2",
          "type": "n8n-nodes-base.gmail",
          "position": [
            384,
            672
          ],
          "webhookId": "dde844eb-cf32-44cc-8817-23a3a6894ab3",
          "parameters": {
            "simple": false,
            "options": {
              "returnOnlyMessages": true
            },
            "resource": "thread",
            "threadId": "={{ $json.threadId }}",
            "operation": "get"
          },
          "typeVersion": 2.1
        },
        {
          "id": "e8ee54cd-e50d-46cf-bfdc-d673e76fe00c",
          "name": "Aggregate6",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            640,
            672
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "threadId"
                },
                {
                  "fieldToAggregate": "From"
                },
                {
                  "fieldToAggregate": "snippet"
                },
                {
                  "fieldToAggregate": "id"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "2d111c4b-1f76-41ef-bd2f-ec6abd75a1e2",
          "name": "Basic LLM Chain3",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            912,
            672
          ],
          "parameters": {
            "text": "=Here are the details:\n\nEmails: {{ $json.From }}\n\nSnippet: {{ $json.snippet }}\n\nThread ID: {{ $json.threadId }}\n\nMessage ID: {{ $json.id }}\n\nAlways output in lower case \"true\", \"false\"",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert in email confirmation. \n\nyour task is to figure out if the sender is not us. \n\nif the sender is not us, then you will output true, and if it is us then output false. \n\nfor context, we are sending an email and after 24 hours, checking to see if they have asnwered us back. If not then we are sending another personalized email after our check.\n\nThere will be one email that is liam@promptible.io. If thats the only one that means they didn't answer, but if theres two and its not that one then it means they answered us. \n\nIF YOU SEE TWO EMAILS IN THE EMAIL SECTION THAT MEANS ITS TRUE, OTHER WISE IT MEANS FALSE IF THERES ONLY liam@promptible.io\n\n"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "f73cc52f-6e39-47e8-b89c-89897970f197",
          "name": "OpenAI Chat Model8",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            848,
            800
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "4a64dfdd-05e4-444c-a47c-613df21ca857",
          "name": "If3",
          "type": "n8n-nodes-base.if",
          "position": [
            1264,
            672
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "8f36f4fe-ea12-4e4c-b4e4-49613fab8ae0",
                  "operator": {
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $('Basic LLM Chain3').item.json.text }}",
                  "rightValue": "true"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "3ef9de90-3a15-450f-8456-46b52b2f3e79",
          "name": "No Operation, do nothing",
          "type": "n8n-nodes-base.noOp",
          "position": [
            1968,
            592
          ],
          "parameters": {},
          "typeVersion": 1
        },
        {
          "id": "d4faef39-cf74-49e0-aba7-7dd0540d7ae8",
          "name": "Wait1",
          "type": "n8n-nodes-base.wait",
          "position": [
            128,
            1312
          ],
          "webhookId": "8c81ce4c-7cd8-4cc2-a58c-14282c0a6312",
          "parameters": {
            "unit": "hours",
            "amount": 48
          },
          "typeVersion": 1.1
        },
        {
          "id": "a4bdd250-4bb2-4dc9-9c7d-82337ed7af31",
          "name": "If4",
          "type": "n8n-nodes-base.if",
          "position": [
            1024,
            1312
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "8f36f4fe-ea12-4e4c-b4e4-49613fab8ae0",
                  "operator": {
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $('Basic LLM Chain4').item.json.text }}",
                  "rightValue": "true"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "025cc695-cca0-431c-acd6-d4f7d166ba0a",
          "name": "No Operation, do nothing1",
          "type": "n8n-nodes-base.noOp",
          "position": [
            1952,
            1184
          ],
          "parameters": {},
          "typeVersion": 1
        },
        {
          "id": "5b4ea1cd-b91a-4e6a-9841-1a396546e57c",
          "name": "Gmail5",
          "type": "n8n-nodes-base.gmail",
          "position": [
            1968,
            784
          ],
          "webhookId": "a2740067-298f-46a6-a684-9fb58e9cdccb",
          "parameters": {
            "message": "={{ $json.output }}",
            "options": {},
            "resource": "thread",
            "threadId": "={{ $('If3').item.json.threadId }}",
            "messageId": "={{ $('If3').item.json.id }}",
            "operation": "reply"
          },
          "typeVersion": 2.1
        },
        {
          "id": "d93c66df-8035-44da-961c-a42983a6ae93",
          "name": "AI Agent1",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1520,
            720
          ],
          "parameters": {
            "text": "=Use the provided company info and intent to write a short, personalized cold email for Promptible.\n\nLeads name: {{ $('Webhook').first().json.body.name }}\nCompany: {{ $('Webhook').first().json.body.company }}\nIntent / Interest: Lead generation AI agent with Rag\n\n**Important lead details**: {{ $('Basic LLM Chain2').item.json.text }}\n\nWebsite info: \n\nInstructions:\n- Start with Hi (name),\n- then the provided first line only (don’t write your own intro)\n- Based on the **intent**, identify which Promptible automation is relevant (lead gen, proposal docs, CRM sync, voice agent, etc.)\n- Reference one automation that directly solves that problem\n- Pull one short, quantified stat or client win from the Google Doc *only if it matches the intent*\n- Keep the tone friendly, curious, and clear\n- End with a soft, open-ended question (like “curious if that’s something you're exploring?”)\n- Keep it under 150 words total\n",
            "options": {
              "systemMessage": "=You are writing as Liam Johnston, the founder of Promptible — a company that builds AI automations for sales, ops, and marketing teams.\n\nThis email goes out **24 hours after someone filled out our form but didn’t respond** to the first message. It is a direct but friendly follow-up that sounds like a real founder — sharp, helpful, and confident, with no fluff or generic AI tone.\n\nBefore writing, you must read the Promptible knowledge base (Google Doc) to understand what we offer and what’s worked — including specific tools, use cases, and results.\n\nWrite like this:\n- Add a quick, thoughtful line showing you understand what they’re doing (pull from their form info or website)\n- Show how one of our AI agents could save them real time or money — be specific\n- If natural, include one client result or stat (only if it reinforces your point)\n- End with a bold, open-ended line like:  \n  “Have you given up on automating [x] with AI?”  \n  (Avoid phrases like “just checking in” or “circling back”)\n- Include this booking link at the end: `https://cal.com/promptible/15min`\n\nTone: clean, direct, and confident — no filler, no pleasantries. Write like a smart founder talking to a peer. Keep it short — under **140 words total**.\n\nNever say “this is a follow-up.” Never mention the delay or reference “previous emails.”\n\n**ALWAYS use the Google Doc tool for context.**"
            },
            "promptType": "define"
          },
          "typeVersion": 1.7
        },
        {
          "id": "d4eefd8e-09a9-4d08-b33e-5936476fa6a0",
          "name": "OpenAI Chat Model9",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1392,
            864
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4.1-mini",
              "cachedResultName": "gpt-4.1-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "d4d10605-8442-4fad-ac70-371532cba671",
          "name": "Knowledge Base1",
          "type": "n8n-nodes-base.googleDocsTool",
          "position": [
            1760,
            864
          ],
          "parameters": {
            "operation": "get",
            "documentURL": "https://docs.google.com/document/d/18wXNd28f_Regxuo51TPtgv8ADBd47rpCB3B3R4wX3mk/edit?tab=t.0"
          },
          "typeVersion": 2
        },
        {
          "id": "96386357-1e40-4eea-ab43-035210aaa81f",
          "name": "Basic LLM Chain4",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            624,
            1312
          ],
          "parameters": {
            "text": "=Here are the details:\n\nAll details: {{ JSON.stringify($json.messages, null, 2) }}\n\nMessage ID: {{ $json.id }}",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert in email confirmation. \n\nyour task is to figure out if the sender is not us. \n\nif the sender is not us, then you will output true, and if it is us then output false. \n\nfor context, we are sending an eail and after 24 hours, checking to see if they have asnwered us back. If not then we are sending another personalized email after our check.\n\nThere will be one email that is liam@promptible.io. If thats the only one that means they didn't answer, but if theres two and its not that one then it means they answered us. \n\nIF YOU SEE ANOTHER EMAIL OTHER THAN liam@promptible.io OUTPUT true BUT IF THERES ONLY liam@promptible.io THEN OUTPUT false\n\n"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "2ee136cb-ec21-44e0-b32f-62e9068d6644",
          "name": "OpenAI Chat Model10",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            608,
            1488
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "f06925c3-d5ab-4a25-9c46-bf2202b8ed88",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -5184,
            2208
          ],
          "parameters": {
            "width": 1600,
            "height": 480,
            "content": "## Verify if leads email is real or not"
          },
          "typeVersion": 1
        },
        {
          "id": "ebde1d53-bd72-4782-9d87-20183ef5115e",
          "name": "HTTP Request1",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -1200,
            1648
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apify~website-content-crawler/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "jsonBody": "=",
            "sendBody": true,
            "sendQuery": true,
            "specifyBody": "json",
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2,
          "alwaysOutputData": true
        },
        {
          "id": "74400960-cd11-4396-b093-c06923892b79",
          "name": "Aggregate7",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            352,
            1312
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "messages"
                },
                {
                  "fieldToAggregate": "id"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "98e74c48-fd10-4a99-91c7-cf32e2dc1f92",
          "name": "Wait3",
          "type": "n8n-nodes-base.wait",
          "position": [
            192,
            1792
          ],
          "webhookId": "8c81ce4c-7cd8-4cc2-a58c-14282c0a6312",
          "parameters": {
            "unit": "hours",
            "amount": 48
          },
          "typeVersion": 1.1
        },
        {
          "id": "4a2d1906-1fe3-47cc-9b44-065d2fdd4f75",
          "name": "Gmail7",
          "type": "n8n-nodes-base.gmail",
          "position": [
            1952,
            1392
          ],
          "webhookId": "a2740067-298f-46a6-a684-9fb58e9cdccb",
          "parameters": {
            "message": "={{ $json.output }}",
            "options": {},
            "resource": "thread",
            "threadId": "={{ $('If3').item.json.threadId }}",
            "messageId": "={{ $('If3').item.json.id }}",
            "operation": "reply"
          },
          "typeVersion": 2.1
        },
        {
          "id": "b8c76291-ff1d-4253-a8a9-6ad03549fd89",
          "name": "AI Agent2",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1504,
            1328
          ],
          "parameters": {
            "text": "=Use the provided company info and intent to write a short, personalized cold email for Promptible.\n\nLeads name: {{ $('Webhook').first().json.body.name }}\nCompany: {{ $('Webhook').first().json.body.company }}\nIntent / Interest: Lead generation AI agent with Rag\n\nFirst line of the email: {{ $('Basic LLM Chain1').item.json.text }}\n\n**Important lead details**: {{ $('Basic LLM Chain2').item.json.text }}\n\n\nWebsite details **important to refernce**:",
            "options": {
              "systemMessage": "=You are writing as Liam Johnston, founder of Promptible — a company that builds AI automations for sales, ops, and marketing.\n\nThis is the **third follow-up email** to someone who filled out a form but hasn’t replied to the first two emails.\n\nThis message must be extremely short — **3 lines max** — and focused entirely on:\n- Reminding them they filled out a form\n- Tying it directly to a specific AI automation we offer\n- Mentioning one clear value outcome (e.g. time saved, hours replaced, revenue generated)\n- Including this call link at the end: `https://cal.com/promptible/15min`\n\nNo intros, no fluff, no “just checking in,” no referencing past emails.\n\nTone: clean, confident, and professional — like a founder who respects their time.\n\nUse their name, and personalize based on what they wanted automated (use available data from the form).\n\n**ALWAYS use the Promptible knowledge base (Google Doc) to pull accurate tools, use cases, and value props.**\n\n**Strict limit: 3 short lines.**"
            },
            "promptType": "define"
          },
          "typeVersion": 1.7
        },
        {
          "id": "dad0bcd0-ab48-4f77-8285-0fb2cae8a00c",
          "name": "OpenAI Chat Model11",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1392,
            1488
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4.1-mini",
              "cachedResultName": "gpt-4.1-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "8ab84e8d-87e4-44e5-a07a-65d050f2a805",
          "name": "Knowledge Base2",
          "type": "n8n-nodes-base.googleDocsTool",
          "position": [
            1744,
            1504
          ],
          "parameters": {
            "operation": "get",
            "documentURL": "https://docs.google.com/document/d/18wXNd28f_Regxuo51TPtgv8ADBd47rpCB3B3R4wX3mk/edit?tab=t.0"
          },
          "typeVersion": 2
        },
        {
          "id": "13e68f58-a276-4257-ba67-1476a2e71396",
          "name": "Basic LLM Chain5",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            704,
            1792
          ],
          "parameters": {
            "text": "=Here are the details:\n\nAll details: {{ JSON.stringify($json.messages, null, 2) }}\n\nMessage ID: {{ $json.id }}",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are an expert in email confirmation. \n\nyour task is to figure out if the sender is not us. \n\nif the sender is not us, then you will output true, and if it is us then output false. \n\nfor context, we are sending an eail and after 24 hours, checking to see if they have asnwered us back. If not then we are sending another personalized email after our check.\n\nThere will be one email that is liam@promptible.io. If thats the only one that means they didn't answer, but if theres two and its not that one then it means they answered us. \n\nIF YOU SEE ANOTHER EMAIL OTHER THAN liam@promptible.io OUTPUT true BUT IF THERES ONLY liam@promptible.io THEN OUTPUT false\n\n"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "ff743588-2c43-4a3a-bc93-7ce71b81cc70",
          "name": "OpenAI Chat Model12",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            640,
            1968
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4o-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "c865e610-2827-45fc-969d-571b34ce82a4",
          "name": "Aggregate8",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            400,
            1792
          ],
          "parameters": {
            "options": {},
            "fieldsToAggregate": {
              "fieldToAggregate": [
                {
                  "fieldToAggregate": "messages"
                },
                {
                  "fieldToAggregate": "id"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "623fb6bd-8ddb-40fa-b0f2-d545b8a0e6ce",
          "name": "If5",
          "type": "n8n-nodes-base.if",
          "position": [
            1104,
            1792
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "afabcbce-499d-4bdc-8797-5f63a3323a14",
                  "operator": {
                    "name": "filter.operator.equals",
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "",
                  "rightValue": ""
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "d7266851-fc37-4d74-b9e3-15f8db0bd2e5",
          "name": "No Operation, do nothing2",
          "type": "n8n-nodes-base.noOp",
          "position": [
            1952,
            1712
          ],
          "parameters": {},
          "typeVersion": 1
        },
        {
          "id": "33c4069e-a6e4-4b09-b980-78e85bbe3026",
          "name": "Gmail8",
          "type": "n8n-nodes-base.gmail",
          "position": [
            1952,
            1968
          ],
          "webhookId": "a2740067-298f-46a6-a684-9fb58e9cdccb",
          "parameters": {
            "message": "={{ $json.output }}",
            "options": {},
            "resource": "thread",
            "threadId": "={{ $('If3').item.json.threadId }}",
            "messageId": "={{ $('If3').item.json.id }}",
            "operation": "reply"
          },
          "typeVersion": 2.1
        },
        {
          "id": "d75943af-3706-42e7-80f7-d447b9094574",
          "name": "AI Agent3",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1488,
            1872
          ],
          "parameters": {
            "text": "=Use the provided company info and intent to write a short, personalized cold email for Promptible.\n\nLeads name: {{ $('Webhook').first().json.body.name }}\nCompany: {{ $('Webhook').first().json.body.company }}\nIntent / Interest: Lead generation AI agent with Rag\n\nFirst line of the email: {{ $('Basic LLM Chain1').item.json.text }}\n\n**Important lead details**: {{ $('Basic LLM Chain2').item.json.text }}\n\n**important** website details: ",
            "options": {
              "systemMessage": "=You are writing as Liam Johnston, founder of Promptible — a company that builds AI automations for sales, ops, and marketing.\n\nThis is the **4th and final email** to someone who filled out a form but hasn’t replied to the first three messages.\n\nThis message must be a **single short paragraph — 1 to 2 lines max**.\n\nYour job:\n- Get their attention with a direct, human question that makes them think\n- Reference what they wanted to automate (from their form)\n- Avoid fluff, intros, or backstory\n- Sound sharp, clean, and respectful — like a founder who values their time\n- Include this booking link at the end: `https://cal.com/promptible/15min`\n\nTone: confident, not desperate. You're offering real value — they just need to decide.\n\nExample formats:\n> Have you given up on automating [x] with AI?  \n> Where should we go from here?\n\nSign off:\nBest,  \nLiam  \nPromptible\n\n**ALWAYS use the Promptible knowledge base (Google Doc) for accurate AI use cases and language.**"
            },
            "promptType": "define"
          },
          "typeVersion": 1.7
        },
        {
          "id": "4e31b4e7-c729-49c2-845b-6f71b836cf94",
          "name": "OpenAI Chat Model13",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1392,
            2032
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4.1-mini",
              "cachedResultName": "gpt-4.1-mini"
            },
            "options": {}
          },
          "typeVersion": 1.2
        },
        {
          "id": "e357f6c3-53f3-4763-bdea-97df20468cc1",
          "name": "Knowledge Base3",
          "type": "n8n-nodes-base.googleDocsTool",
          "position": [
            1744,
            2048
          ],
          "parameters": {
            "operation": "get",
            "documentURL": "https://docs.google.com/document/d/18wXNd28f_Regxuo51TPtgv8ADBd47rpCB3B3R4wX3mk/edit?tab=t.0"
          },
          "typeVersion": 2
        },
        {
          "id": "b39593d8-51a2-4142-b593-34593d679863",
          "name": "Sticky Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -5536,
            2000
          ],
          "parameters": {
            "width": 360,
            "height": 260,
            "content": "## Add to CRM"
          },
          "typeVersion": 1
        },
        {
          "id": "55b5a3af-6f23-4371-a50f-b145708bda91",
          "name": "Sticky Note2",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -3824,
            1520
          ],
          "parameters": {
            "width": 920,
            "height": 520,
            "content": "## Regular email (gmail) or domain email exctraction."
          },
          "typeVersion": 1
        },
        {
          "id": "f69ad4d7-b8e7-4da2-b697-76c8f20ac2de",
          "name": "Sticky Note3",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -4368,
            2048
          ],
          "parameters": {
            "width": 780,
            "content": "## Enrich Lead"
          },
          "typeVersion": 1
        },
        {
          "id": "a6ce5ca5-7c58-4127-9f8f-b01d5009d4c3",
          "name": "Sticky Note4",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -2896,
            1248
          ],
          "parameters": {
            "color": 4,
            "width": 1020,
            "height": 420,
            "content": "## Has A domain"
          },
          "typeVersion": 1
        },
        {
          "id": "bda8d4f4-f89d-4529-91d7-0c699dc242a8",
          "name": "Sticky Note5",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -2896,
            1664
          ],
          "parameters": {
            "width": 1020,
            "height": 380,
            "content": "## No domain (company name enrich)"
          },
          "typeVersion": 1
        },
        {
          "id": "7bc163b8-d463-4ffb-b117-e63dc2bdc1c5",
          "name": "Sticky Note6",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -1888,
            1552
          ],
          "parameters": {
            "width": 2020,
            "height": 660,
            "content": "## Enrich socials and website (LinkedIn, Instagram, Website content)"
          },
          "typeVersion": 1
        },
        {
          "id": "0310b5b7-0a03-4e77-a672-b1fddb1a6dc2",
          "name": "Sticky Note7",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            0,
            0
          ],
          "parameters": {
            "color": 3,
            "width": 2180,
            "height": 540,
            "content": "## Send 1st personalized email"
          },
          "typeVersion": 1
        },
        {
          "id": "c655d510-dad7-45be-b6c3-2f2bb161d5be",
          "name": "Sticky Note8",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -224,
            544
          ],
          "parameters": {
            "color": 3,
            "width": 2480,
            "height": 600,
            "content": "## Send 2nd personalized follow-up"
          },
          "typeVersion": 1
        },
        {
          "id": "df16b2a2-0e2b-4427-88fe-bea4105ea153",
          "name": "Sticky Note9",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -224,
            1152
          ],
          "parameters": {
            "color": 3,
            "width": 2400,
            "height": 500,
            "content": "## Send 3rd personalized follow-up"
          },
          "typeVersion": 1
        },
        {
          "id": "431be8ee-c612-4e90-811e-5bf55b1a4c3c",
          "name": "Sticky Note10",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            128,
            1648
          ],
          "parameters": {
            "color": 3,
            "width": 2060,
            "height": 560,
            "content": "## Send 4th productized follow-up"
          },
          "typeVersion": 1
        },
        {
          "id": "f49a897a-a67d-4652-a6ca-8201b0506171",
          "name": "Extract Instagram",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -1200,
            1824
          ],
          "parameters": {
            "text": "=here is all the links: \n\n{{ $('Get social media urls').item.json.social_links }}",
            "messages": {
              "messageValues": [
                {
                  "message": "=From all of these links only extract the url of the instagram profile. They will come in a random order each time, so we need to grab only the instagram url. "
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "b7e8a24d-916d-47c5-afd8-59cf1e9fd614",
          "name": "HTTP Request4",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -2768,
            1360
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apify~website-content-crawler/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "jsonBody": "{\n  \"startUrls\": [\n    {\n      \"url\": \"https://promptible.io\"\n    }\n  ],\n  \"useSitemaps\": false,\n  \"respectRobotsTxtFile\": true,\n  \"crawlerType\": \"playwright:adaptive\",\n  \"includeUrlGlobs\": [],\n  \"excludeUrlGlobs\": [],\n  \"keepUrlFragments\": false,\n  \"ignoreCanonicalUrl\": false,\n  \"maxCrawlDepth\": 20,\n  \"maxCrawlPages\": 9999999,\n  \"initialConcurrency\": 0,\n  \"maxConcurrency\": 200,\n  \"initialCookies\": [],\n  \"proxyConfiguration\": {\n    \"useApifyProxy\": true\n  },\n  \"maxSessionRotations\": 10,\n  \"maxRequestRetries\": 5,\n  \"requestTimeoutSecs\": 60,\n  \"minFileDownloadSpeedKBps\": 128,\n  \"dynamicContentWaitSecs\": 10,\n  \"waitForSelector\": \"\",\n  \"softWaitForSelector\": \"\",\n  \"maxScrollHeightPixels\": 5000,\n  \"keepElementsCssSelector\": \"\",\n  \"removeElementsCssSelector\": \"nav, footer, script, style, noscript, svg, img[src^=data:],\\n[role=\\\"alert\\\"],\\n[role=\\\"banner\\\"],\\n[role=\\\"dialog\\\"],\\n[role=\\\"alertdialog\\\"],\\n[role=\\\"region\\\"][aria-label*=\\\"skip\\\" i],\\n[aria-modal=\\\"true\\\"]\",\n  \"removeCookieWarnings\": true,\n  \"expandIframes\": true,\n  \"clickElementsCssSelector\": \"[aria-expanded=\\\"false\\\"]\",\n  \"htmlTransformer\": \"readableText\",\n  \"readableTextCharThreshold\": 100,\n  \"aggressivePrune\": false,\n  \"debugMode\": false,\n  \"debugLog\": false,\n  \"saveHtml\": false,\n  \"saveHtmlAsFile\": false,\n  \"saveMarkdown\": true,\n  \"saveFiles\": false,\n  \"saveScreenshots\": false,\n  \"maxResults\": 9999999,\n  \"clientSideMinChangePercentage\": 15,\n  \"renderingTypeDetectionPercentage\": 10\n}",
            "sendBody": true,
            "sendQuery": true,
            "specifyBody": "json",
            "queryParameters": {
              "parameters": [
                {
                  "name": "token"
                }
              ]
            }
          },
          "typeVersion": 4.2
        },
        {
          "id": "6dca7371-71d4-4d0e-a185-dd7e813e9c7e",
          "name": "Basic LLM Chain6",
          "type": "@n8n/n8n-nodes-langchain.chainLlm",
          "position": [
            -2256,
            1360
          ],
          "parameters": {
            "text": "=Here is some text from a company’s website:\n\n{{ $json.markdown }}\n\nWrite a full enriched paragraph describing the business and how AI automation could help them.\n",
            "messages": {
              "messageValues": [
                {
                  "message": "=You are a persuasive AI automation strategist and copywriter. Your job is to take unstructured website text about a business and generate a clear, professional, and insightful paragraph that explains:\n\n1. What the company does and who they help\n2. Any notable collaborations, case studies, or companies they’ve worked with (if found in the text)\n3. The value they deliver to their audience\n4. How AI automation could significantly enhance, streamline, or scale their operations\n\nYour writing should sound smart, articulate, and forward-thinking — like a founder summarizing the business to an investor or partner.\n\n- Focus on **enriching** the raw info, not just summarizing it\n- Highlight opportunities for **AI automation** that are natural fits for their workflow (e.g., lead gen, support, personalization, etc.)\n- The final output should be a **single rich paragraph** (200–300 words max)\n\nIf no partnerships or case studies are mentioned, simply skip that part. Never hallucinate.\n\nDo not format as a list. Return a single professional paragraph.\n"
                }
              ]
            },
            "promptType": "define"
          },
          "typeVersion": 1.6
        },
        {
          "id": "b3124661-8d77-4997-abbe-875a8acd088d",
          "name": "Google Gemini Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
          "position": [
            -2144,
            1520
          ],
          "parameters": {
            "options": {},
            "modelName": "models/gemini-2.0-flash"
          },
          "typeVersion": 1
        },
        {
          "id": "d54a0402-2841-434b-99c3-c4918d4d258a",
          "name": "HTTP Request",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            -5728,
            3024
          ],
          "parameters": {
            "url": "https://api.apify.com/v2/acts/apify~website-content-crawler/run-sync-get-dataset-items",
            "method": "POST",
            "options": {},
            "jsonBody": "{\n  \"startUrls\": [\n    {\n      \"url\": \"https://automationlibrary.notion.site/\"\n    }\n  ],\n  \"useSitemaps\": false,\n  \"respectRobotsTxtFile\": true,\n  \"crawlerType\": \"playwright:adaptive\",\n  \"includeUrlGlobs\": [],\n  \"excludeUrlGlobs\": [],\n  \"keepUrlFragments\": false,\n  \"ignoreCanonicalUrl\": false,\n  \"maxCrawlDepth\": 13,\n  \"maxCrawlPages\": 13,\n  \"initialConcurrency\": 0,\n  \"maxConcurrency\": 200,\n  \"initialCookies\": [],\n  \"proxyConfiguration\": {\n    \"useApifyProxy\": true\n  },\n  \"maxSessionRotations\": 10,\n  \"maxRequestRetries\": 5,\n  \"requestTimeoutSecs\": 180,\n  \"minFileDownloadSpeedKBps\": 128,\n  \"dynamicContentWaitSecs\": 10,\n  \"waitForSelector\": \"\",\n  \"softWaitForSelector\": \"\",\n  \"maxScrollHeightPixels\": 5000,\n  \"keepElementsCssSelector\": \"\",\n  \"removeElementsCssSelector\": \"nav, footer, script, style, noscript, svg, img[src^=data:],\\n[role=\\\"alert\\\"],\\n[role=\\\"banner\\\"],\\n[role=\\\"dialog\\\"],\\n[role=\\\"alertdialog\\\"],\\n[role=\\\"region\\\"][aria-label*=\\\"skip\\\" i],\\n[aria-modal=\\\"true\\\"]\",\n  \"removeCookieWarnings\": true,\n  \"expandIframes\": true,\n  \"clickElementsCssSelector\": \"[aria-expanded=\\\"false\\\"]\",\n  \"htmlTransformer\": \"readableText\",\n  \"readableTextCharThreshold\": 100,\n  \"aggressivePrune\": false,\n  \"debugMode\": false,\n  \"debugLog\": false,\n  \"saveHtml\": false,\n  \"saveHtmlAsFile\": false,\n  \"saveMarkdown\": true,\n  \"saveFiles\": false,\n  \"saveScreenshots\": false,\n  \"maxResults\": 14,\n  \"clientSideMinChangePercentage\": 15,\n  \"renderingTypeDetectionPercentage\": 10\n}",
            "sendBody": true,
            "sendQuery": true,
            "specifyBody": "json",
            "queryParameters": {
              "parameters": [
                {
                  "name": "token",
                  "value": "apify_api_Gg1vRiyfIDMjwwu2jaYQ01DZQTnpTu1jP0M5"
                }
              ]
            }
          },
          "typeVersion": 4.2
        },
        {
          "id": "a395888d-2f2f-483a-8af4-205fe6748473",
          "name": "Sticky Note11",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -5104,
            576
          ],
          "parameters": {
            "color": 4,
            "width": 1240,
            "height": 420,
            "content": "## Hey people, hope you enjoy the workflow.\n\n## Everything needed should be on the Set up Guide, if not please don't hesitate to reach out. (https://x.com/_niihhhall)\n\n## - From, markeye\n\n\n## Book a free discovery call - https://cal.com/niihhhall/discovery-call\n## We'll identify your biggest operational bottleneck and design a custom AI system to solve it.\n"
          },
          "typeVersion": 1
        }
      ],
      "active": false,
      "pinData": {
        "Webhook": [
          {
            "json": {
              "body": {
                "name": "Liam Johnston",
                "email": "ghfghgththth@sdfgrf.com",
                "source": "Website Contact Form",
                "company": "Promptible",
                "message": "AI automations",
                "marketingOptIn": false
              },
              "query": {},
              "params": {},
              "headers": {
                "host": "n8n-promptible-io.onrender.com",
                "accept": "application/json, text/plain, */*",
                "cf-ray": "938ba555ff80cc3a-ORD",
                "rndr-id": "c9de6348-59b0-4530",
                "cdn-loop": "cloudflare; loops=1",
                "cf-visitor": "{\"scheme\":\"https\"}",
                "user-agent": "axios/1.8.4",
                "cf-ipcountry": "US",
                "content-type": "application/json",
                "content-length": "163",
                "true-client-ip": "34.96.46.147",
                "accept-encoding": "gzip, br",
                "x-forwarded-for": "34.96.46.147, 10.206.40.96",
                "x-request-start": "1746064413160492",
                "cf-connecting-ip": "34.96.46.147",
                "render-proxy-ttl": "4",
                "x-forwarded-proto": "https"
              },
              "webhookUrl": "https://n8n-promptible-io.onrender.com/webhook/c7355c30-8531-40b4-b882-ba1ea7f9fafa",
              "executionMode": "production"
            }
          }
        ]
      },
      "settings": {
        "executionOrder": "v1"
      },
      "versionId": "7b942562-b7a3-4005-b65f-855badb72e1e",
      "connections": {
        "If": {
          "main": [
            [
              {
                "node": "Enrich Lead",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Telegram",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "If1": {
          "main": [
            [
              {
                "node": "Extract domain or company",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Get social media urls",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "If2": {
          "main": [
            [
              {
                "node": "HTTP Request4",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Get social media urls",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "If3": {
          "main": [
            [
              {
                "node": "No Operation, do nothing",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "AI Agent1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "If4": {
          "main": [
            [
              {
                "node": "No Operation, do nothing1",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "AI Agent2",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "If5": {
          "main": [
            [
              {
                "node": "No Operation, do nothing2",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "AI Agent3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Wait": {
          "main": [
            [
              {
                "node": "Gmail2",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Gmail": {
          "main": [
            [
              {
                "node": "Gmail1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Merge": {
          "main": [
            [
              {
                "node": "Basic LLM Chain",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Wait1": {
          "main": [
            [
              {
                "node": "Aggregate7",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Wait3": {
          "main": [
            [
              {
                "node": "Aggregate8",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Gmail1": {
          "main": [
            [
              {
                "node": "Wait",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Gmail2": {
          "main": [
            [
              {
                "node": "Aggregate6",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Gmail5": {
          "main": [
            [
              {
                "node": "Wait1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Gmail7": {
          "main": [
            [
              {
                "node": "Wait3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Hunter": {
          "main": [
            [
              {
                "node": "If",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Merge1": {
          "main": [
            [
              {
                "node": "Aggregate5",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Webhook": {
          "main": [
            [
              {
                "node": "HighLevel",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "AI Agent": {
          "main": [
            [
              {
                "node": "Gmail",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Telegram": {
          "main": [
            [
              {
                "node": "Edit Fields",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "AI Agent1": {
          "main": [
            [
              {
                "node": "Gmail5",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "AI Agent2": {
          "main": [
            [
              {
                "node": "Gmail7",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "AI Agent3": {
          "main": [
            [
              {
                "node": "Gmail8",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate": {
          "main": [
            [
              {
                "node": "Basic LLM Chain6",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "HighLevel": {
          "main": [
            [
              {
                "node": "Merge",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate1": {
          "main": [
            [
              {
                "node": "Extract personal linkedin url",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate2": {
          "main": [
            [
              {
                "node": "Merge1",
                "type": "main",
                "index": 1
              }
            ]
          ]
        },
        "Aggregate3": {
          "main": [
            [
              {
                "node": "Merge1",
                "type": "main",
                "index": 2
              }
            ]
          ]
        },
        "Aggregate4": {
          "main": [
            [
              {
                "node": "Merge1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate5": {
          "main": [
            [
              {
                "node": "Basic LLM Chain1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate6": {
          "main": [
            [
              {
                "node": "Basic LLM Chain3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate7": {
          "main": [
            [
              {
                "node": "Basic LLM Chain4",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate8": {
          "main": [
            [
              {
                "node": "Basic LLM Chain5",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Edit Fields": {
          "main": [
            [
              {
                "node": "Merge",
                "type": "main",
                "index": 1
              }
            ]
          ]
        },
        "Enrich Lead": {
          "main": [
            [
              {
                "node": "If1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "HTTP Request1": {
          "main": [
            [
              {
                "node": "Aggregate4",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "HTTP Request3": {
          "main": [
            [
              {
                "node": "Aggregate2",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "HTTP Request4": {
          "main": [
            [
              {
                "node": "Aggregate",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "HTTP Request6": {
          "main": [
            [
              {
                "node": "Aggregate3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Knowledge Base": {
          "ai_tool": [
            [
              {
                "node": "AI Agent",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain": {
          "main": [
            [
              {
                "node": "Hunter",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Knowledge Base1": {
          "ai_tool": [
            [
              {
                "node": "AI Agent1",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "Knowledge Base2": {
          "ai_tool": [
            [
              {
                "node": "AI Agent2",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "Knowledge Base3": {
          "ai_tool": [
            [
              {
                "node": "AI Agent3",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain1": {
          "main": [
            [
              {
                "node": "Basic LLM Chain2",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain2": {
          "main": [
            [
              {
                "node": "AI Agent",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain3": {
          "main": [
            [
              {
                "node": "If3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain4": {
          "main": [
            [
              {
                "node": "If4",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain5": {
          "main": [
            [
              {
                "node": "If5",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Basic LLM Chain6": {
          "main": [
            [
              {
                "node": "Merge1",
                "type": "main",
                "index": 3
              }
            ]
          ]
        },
        "Extract Instagram": {
          "main": [
            [
              {
                "node": "HTTP Request3",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model1": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model2": {
          "ai_languageModel": [
            [
              {
                "node": "Extract domain or company",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model3": {
          "ai_languageModel": [
            [
              {
                "node": "Full Domain or just company",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model4": {
          "ai_languageModel": [
            [
              {
                "node": "Extract company linkedin url",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model5": {
          "ai_languageModel": [
            [
              {
                "node": "Extract personal linkedin url",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model6": {
          "ai_languageModel": [
            [
              {
                "node": "Extract Instagram",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model7": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain2",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model8": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain3",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model9": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent1",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model10": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain4",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model11": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent2",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model12": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain5",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model13": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent3",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Anthropic Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain1",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Get social media urls": {
          "main": [
            [
              {
                "node": "Extract company linkedin url",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Google Gemini Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "Basic LLM Chain6",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Extract domain or company": {
          "main": [
            [
              {
                "node": "Full Domain or just company",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Full Domain or just company": {
          "main": [
            [
              {
                "node": "If2",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Extract company linkedin url": {
          "main": [
            [
              {
                "node": "extract personal linkedin from company",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Extract personal linkedin url": {
          "main": [
            [
              {
                "node": "extract personal linkedin details",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "extract personal linkedin details": {
          "main": [
            [
              {
                "node": "HTTP Request6",
                "type": "main",
                "index": 0
              },
              {
                "node": "Extract Instagram",
                "type": "main",
                "index": 0
              },
              {
                "node": "HTTP Request1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "extract personal linkedin from company": {
          "main": [
            [
              {
                "node": "Aggregate1",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    }