{
  "name": "n8n-personalized-linkedin-outreach-workflow",
  "nodes": [
    {
      "parameters": {
        "formTitle": "TOPIC",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Search Keyword",
              "placeholder": "Enter search keyword like AI Automation, Web developer",
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        -2224,
        352
      ],
      "id": "8b087578-7e91-4627-8300-65a7069e7b34",
      "name": "On form submission",
      "webhookId": "5b22df1c-50e2-417c-8d4b-a8738d3a3518"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -1568,
        352
      ],
      "id": "e8732463-ba9c-4290-a1c9-0909aa5f3629",
      "name": "Loop Over Items"
    },
    {
      "parameters": {
        "url": "https://api.apify.com/v2/acts/dev_fusion~linkedin-profile-scraper/runs/last/dataset/items?token=api_key",
        "options": {}
      },
      "id": "42ae51e9-0992-41b8-a29f-f2da56523a59",
      "name": "Get Scraping Results",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -464,
        0
      ]
    },
    {
      "parameters": {
        "jsonSchemaExample": "{\n  \"full_name\": \"\",\n  \"company_website\": \"\",\n  \"job_title\": \"\",\n  \"email\": \"\",\n  \"linkedin_url\": \"\",\n  \"city\": \"\",\n  \"country\": \"\",\n  \"current_company_summary\": \"\",\n  \"Company_industry\": \"\",\n  \"headline\": \"\",\n  \"skills\": \"\",\n  \"offer_services\":\"\",\n  \"summary\":\"\"\n}"
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.2,
      "position": [
        208,
        224
      ],
      "id": "d38d3137-4562-4e4e-946c-342862735c5e",
      "name": "Structured Output Parser"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        16,
        224
      ],
      "id": "56e909d4-b832-43d1-b406-148f5561d49b",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "mXmp9rMNs1e1paxm",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "d5bba766-3e8b-4d30-9385-8823401d74ca",
              "leftValue": "={{ $json.email }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -240,
        0
      ],
      "id": "2c93cc93-8bec-4697-ac58-3e7c21de6fb0",
      "name": "If Email Exit"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/curious_coder~linkedin-people-search-scraper/run-sync?token=api_key",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "linkedin_cookie",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -2000,
        352
      ],
      "id": "c5c671eb-06b6-4283-8f56-3c1ac39c6178",
      "name": "Search By People"
    },
    {
      "parameters": {
        "url": "https://api.apify.com/v2/acts/curious_coder~linkedin-people-search-scraper/runs/last/dataset/items?token=api_key",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -1792,
        352
      ],
      "id": "c15efb31-fdb4-4b91-b195-d75e1a47e2b1",
      "name": "Get Lead Data From Api"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y",
          "mode": "list",
          "cachedResultName": "Likedin Automation ",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit#gid=0"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Id",
              "lookupValue": "={{ $json.id }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.6,
      "position": [
        -1344,
        0
      ],
      "id": "9c1133f3-285b-4700-8eae-bbb0af52273f",
      "name": "Check Duplicate",
      "executeOnce": false,
      "alwaysOutputData": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "oztTa0ZzQpSyJzhB",
          "name": "Google Sheet"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "dfac9f4e-e616-429b-9cf5-e7742769b03b",
              "leftValue": "={{ $json.Id }}",
              "rightValue": "",
              "operator": {
                "type": "number",
                "operation": "exists",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -1120,
        0
      ],
      "id": "d18a1145-1c5a-41c7-a7bf-0d9068dd6816",
      "name": "If Duplicate"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y",
          "mode": "list",
          "cachedResultName": "Likedin Automation ",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{ $('Loop Over Items').item.json.id }}",
            "Likedin Url": "={{ $('Loop Over Items').item.json.profileUrl }}",
            "Name": "={{ $('Loop Over Items').item.json.fullName }}",
            "Job Title": "={{ $('Loop Over Items').item.json.headline }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Job Title",
              "displayName": "Job Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Likedin Url",
              "displayName": "Likedin Url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Company Name",
              "displayName": "Company Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Personal Summary",
              "displayName": "Personal Summary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Email_summary",
              "displayName": "Email_summary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.6,
      "position": [
        -912,
        0
      ],
      "id": "b02f065c-a704-4d51-a463-26590cfca984",
      "name": "Append Lead Data in Sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "oztTa0ZzQpSyJzhB",
          "name": "Google Sheet"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/dev_fusion~linkedin-profile-scraper/run-sync?token=api_key",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"profileUrls\": [\n        \"{{ $json['Likedin Url'] }}\"\n    ]\n}",
        "options": {}
      },
      "id": "3dceb26a-e3f2-47f9-ab37-3e98e803d6a7",
      "name": "Scrape Profile Datas",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -688,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=We provide services in automation, IT, and AI.\n\nBased on the following user profile, analyze the person's background, skills, and experience, and identify the **one most relevant service** from our list.\n\nThen, generate:\n\n1. \"summary\": A 3–5 sentence professional summary highlighting the user’s current role, experience, and how it aligns with our services.\n2. \"offer_services\": Return a single string value from: \"automation\", \"it\", or \"ai\" - whichever is most relevant based on the profile.\n\nReturn only a valid JSON object exactly like:\n\n{\n  \"summary\": \"...\",\n  \"offer_services\": \"...\"\n}\n\nUse the following profile data:\n\n- Full Name: {{ $json.fullName }}\n- Job Title: {{ $json.jobTitle }}\n- Company: {{ $json.experiences[0].subtitle }}\n- Industry: {{ $json.companyIndustry }}\n- City: {{ $json.addressWithoutCountry }}\n- Country: {{ $json.addressCountryOnly }}\n- Headline: {{ $json.headline }}\n- Skills: {{ $json.skills[0].title }}, {{ $json.skills[1].title }}, {{ $json.skills[2].title }}\n- LinkedIn URL: {{ $json.linkedinUrl }}\n- Email: {{ $json.email }}\n- About: \"{{ $json.about }}\"\n\nReturn only the JSON structure:\n{\n  \"summary\": \"...\",\n  \"offer_services\": \"...\"\n}\n",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=You are an expert profile analyst and your task is to analyze user profiles and recommend the most suitable service.\n\nWe provide services in automation, IT, and AI.\n\nWhen given a profile, your job is to:\n1. Analyze the user’s background, skills, job title, and description.\n2. Determine the **single most relevant** service from the list: \"automation\", \"it\", or \"ai\".\n3. Generate a professional summary (3–5 sentences) describing the user’s role, experience, and how it aligns with that one selected service.\n4. Return your response in the following strict JSON format:\n\n{\n  \"summary\": \"...\",\n  \"offer_services\": \"...\"\n}\n\nDo not include any explanation, extra text, markdown, or formatting. Output only the valid JSON object exactly as specified.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        -16,
        -16
      ],
      "id": "f8e778c1-6090-45d5-a514-0e2a555b836b",
      "name": "Generate Summary and Services Detection"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Use the following information to generate a concise and personalized outreach email (100–150 words) tailored to the user’s background and the selected service.\n\nInputs:\n\nfullName: {{ $json.output.full_name }}\n\njobTitle: {{ $json.output.job_title }}\n\ncompany: {{ $json.output.company_website }}\n\nemail: {{ $json.output.email }}\n\nsummary: {{ $json.output.summary }}\n\noffer_services: {{ $json.output.offer_services }}\n\nInstructions:\n\nUse the summary and offer_services to personalize the outreach.\n\nMention their role or company to create context.\n\nClearly explain how the selected service (\"automation\", \"it\", or \"ai\") aligns with their experience or needs.\n\nEnd with a simple and professional call to action like:\n\n“Let’s connect for a quick chat.”\n\n“Would love to explore how we can support your goals.”\n\n“Let me know if you'd like to discuss further.”\n\nDo not include greetings like \"Hello\" or sign-offs like \"Best regards\".\n\nKeep the tone helpful and direct.\n\nKeep the output within 100–150 words.\n\nIf offer_services is \"no relevant offer\", return:\n\njson\n\n{\n  \"outreach_email\": \"\"\n}\nOtherwise, return:\n\njson\n\n{\n  \"outreach_email\": \"...\"\n}",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=Use the following information to generate a concise and personalized outreach email (100–150 words) tailored to the user’s background and the selected service.\n\nInputs:\n\nfullName: {{ $json.output.full_name }}\n\njobTitle: {{ $json.output.job_title }}\n\ncompany: {{ $json.output.company_website }}\n\nemail: {{ $json.output.email }}\n\nsummary: {{ $json.output.summary }}\n\noffer_services: {{ $json.output.offer_services }}\n\nInstructions:\n\nUse the summary and offer_services to personalize the outreach.\n\nMention their role or company to create context.\n\nClearly explain how the selected service (\"automation\", \"it\", or \"ai\") aligns with their experience or needs.\n\nEnd with a simple and professional call to action like:\n\n“Let’s connect for a quick chat.”\n\n“Would love to explore how we can support your goals.”\n\n“Let me know if you'd like to discuss further.”\n\nDo not include greetings like \"Hello\" or sign-offs like \"Best regards\".\n\nKeep the tone helpful and direct.\n\nKeep the output within 100–150 words.\n\nIf offer_services is \"no relevant offer\", return:\n\njson\n\n{\n  \"outreach_email\": \"\"\n}\nOtherwise, return:\n\njson\n\n{\n  \"outreach_email\": \"...\"\n}"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        352,
        -128
      ],
      "id": "f4b3d140-9aee-43c3-878d-d9d2c0c4c47e",
      "name": "Generate Outreach Email"
    },
    {
      "parameters": {
        "operation": "sendAndWait",
        "sendTo": "example@gmail.com",
        "subject": "Approval",
        "message": "=here is Url:{{ $('Get Scraping Results').item.json.linkedinUrl }}\n\n{{ $json.output.outreach_email }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        736,
        -128
      ],
      "id": "95ad5918-f8ff-4c80-b4f3-190932ead22a",
      "name": "Human Approval",
      "webhookId": "f3d02188-0f43-4692-a688-cf9eb94fed91",
      "credentials": {
        "gmailOAuth2": {
          "id": "9KLL1xa8uEgBFeVr",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "e91f436e-c868-411c-a972-08d8206ce675",
              "leftValue": "={{ $json.data.approved }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        960,
        0
      ],
      "id": "3e66ccc0-f82d-4df5-a0e9-df68f9ba7552",
      "name": "If Approve"
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y",
          "mode": "list",
          "cachedResultName": "Likedin Automation ",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{ $('Get Lead Data From Api').item.json.id }}",
            "Likedin Url": "={{ $('Get Scraping Results').item.json.linkedinUrl }}",
            "Email": "={{ $('Get Scraping Results').item.json.email }}",
            "Personal Summary": "={{ $('Generate Summary and Services Detection').item.json.output.summary }}",
            "Email_summary": "={{ $('Generate Outreach Email').item.json.output.outreach_email }}",
            "Company Name": "={{ $('Get Scraping Results').item.json.companyName }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Job Title",
              "displayName": "Job Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Likedin Url",
              "displayName": "Likedin Url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Company Name",
              "displayName": "Company Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Personal Summary",
              "displayName": "Personal Summary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Email_summary",
              "displayName": "Email_summary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.6,
      "position": [
        1168,
        -16
      ],
      "id": "4c3cbea6-17c3-4dd5-9147-caa4b7b62b41",
      "name": "User All Data Append in Sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "oztTa0ZzQpSyJzhB",
          "name": "Google Sheet"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $('Get Scraping Results').item.json.email }}",
        "subject": "Outreach",
        "message": "=<div style=\"font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 600px; margin: 30px auto; padding: 25px 30px; border: 1px solid #d1d5db; border-radius: 10px; background-color: #fafafa; color: #333; line-height: 1.6; box-shadow: 0 4px 8px rgba(0,0,0,0.05);\">    <p style=\"font-size: 18px; margin-bottom: 25px; color: #1e40af; font-weight: 700;\">     <strong>Hello {{ $('Generate Outreach Email').item.json.output.full_name }}👋,</strong>   </p>    <p style=\"font-size: 16px; color: #111; margin-bottom: 30px;\">     {{ $json.Email_summary }}   </p>    <hr style=\"border: none; border-top: 1px solid #e5e7eb; margin-bottom: 20px;\">    <p style=\"font-weight: 700; font-size: 16px; color: #1e40af; margin-bottom: 4px;\">     InfyOm Technologies   </p>   <p style=\"font-size: 15px; color: #6b7280; margin: 0;\">     📧 contact@infyom.in   </p>  </div>",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1392,
        128
      ],
      "id": "41596494-f5dd-4c7f-a532-4a706485b40d",
      "name": "Send Outreach Email",
      "webhookId": "64a1faf3-22fa-4484-8edd-4c11cc1b1424",
      "credentials": {
        "gmailOAuth2": {
          "id": "9KLL1xa8uEgBFeVr",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "jsonSchemaExample": "{\n  \"full_name\": \"\",\n  \"company_website\": \"\",\n  \"job_title\": \"\",\n  \"email\": \"\",\n  \"linkedin_url\": \"\",\n  \"city\": \"\",\n  \"country\": \"\",\n  \"current_company_summary\": \"\",\n  \"Company_industry\": \"\",\n  \"headline\": \"\",\n  \"skills\": \"\",\n  \"offer_services\":\"\",\n  \"summary\":\"\",\n  \"outreach_email\":\"\"\n}"
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.2,
      "position": [
        576,
        80
      ],
      "id": "47714e50-dd77-4452-9cce-1f946093bd3d",
      "name": "Structured Output"
    },
    {
      "parameters": {
        "content": "## Sample Sheet\nhttps://docs.google.com/spreadsheets/d/15Y-_BdrSFG3aMRxal8e-I06yBWLIftQ_YGlqZEjR82Y/edit?usp=sharing\n\n- Login into LinkedIn and then Set LinkedIn Cookies in `Search By People` Node\n- Use **EditThisCookie** this extension to get Cookie.",
        "height": 192,
        "width": 464
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2224,
        128
      ],
      "typeVersion": 1,
      "id": "4d4841da-ad3d-49af-b807-c205cf2d6645",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        384,
        80
      ],
      "id": "53a70bdc-6577-4b4c-897d-adbf3febdf1d",
      "name": "OpenAI Model",
      "credentials": {
        "openAiApi": {
          "id": "mXmp9rMNs1e1paxm",
          "name": "OpenAi account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "Search By People",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check Duplicate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Scraping Results": {
      "main": [
        [
          {
            "node": "If Email Exit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Summary and Services Detection",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Summary and Services Detection",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "If Email Exit": {
      "main": [
        [
          {
            "node": "Generate Summary and Services Detection",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search By People": {
      "main": [
        [
          {
            "node": "Get Lead Data From Api",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lead Data From Api": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Duplicate": {
      "main": [
        [
          {
            "node": "If Duplicate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Duplicate": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append Lead Data in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Lead Data in Sheet": {
      "main": [
        [
          {
            "node": "Scrape Profile Datas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Profile Datas": {
      "main": [
        [
          {
            "node": "Get Scraping Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Summary and Services Detection": {
      "main": [
        [
          {
            "node": "Generate Outreach Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Outreach Email": {
      "main": [
        [
          {
            "node": "Human Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Human Approval": {
      "main": [
        [
          {
            "node": "If Approve",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Approve": {
      "main": [
        [
          {
            "node": "User All Data Append in Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Summary and Services Detection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User All Data Append in Sheet": {
      "main": [
        [
          {
            "node": "Send Outreach Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Outreach Email": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Outreach Email",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Outreach Email",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6a5487c7-9e55-41c6-b5bf-931eaed366f6",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "9272721148ea09184b6bbb7ce6219dab088562dd450e2df8280d57c2e34c7d84"
  },
  "id": "8Il0ApG2k2fc9x5K",
  "tags": []
}