8
n8n 中文网amn8n.com

我的冷邮件生成器

高级

这是一个Lead Nurturing, Multimodal AI领域的自动化工作流,包含 24 个节点。主要使用 If, Set, Code, Html, Gmail 等节点。 使用Anthropic、GPT-4和谷歌表格生成个性化冷邮件

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ISQl1ZnXPDDlWSuN",
  "meta": {
    "instanceId": "766c8c237f056d009bb1bd53e73633458b146427b1ae9c6ec10561694aa89152",
    "templateCredsSetupCompleted": true
  },
  "name": "我的冷邮件生成器",
  "tags": [],
  "nodes": [
    {
      "id": "0eac1a6b-0b4d-47d8-a80a-e9943dd8b1a1",
      "name": "创建草稿",
      "type": "n8n-nodes-base.gmail",
      "position": [
        5456,
        -288
      ],
      "webhookId": "69af6c5c-f647-4c70-a6a1-cefa3fdc4066",
      "parameters": {
        "message": "=Hello {{ $json.first_name }},\n{{ $json.Icebreaker_body }}\n\nRegards,\nBhuvanesh",
        "options": {
          "sendTo": "={{ $json.email }}"
        },
        "subject": "={{ $json.Icebreaker_subject }}",
        "resource": "draft"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "PJrUDp0UTEVBDOMT",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "e9e12661-7809-4b13-ac5a-cfa01e1fef87",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        3440,
        -304
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c8e42edd-c653-406b-a817-12e19234ebb1",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "Success"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "fdb78e15-cb51-486e-a113-01b6b6abd09f",
      "name": "手动触发器",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        2352,
        -1456
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "882fb7a2-7ba4-48f9-8b4c-499814a56dd3",
      "name": "Get All Leads",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2576,
        -1456
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI/edit#gid=0",
          "cachedResultName": "Leads"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI/edit?usp=drivesdk",
          "cachedResultName": "Cold Email Icebreaker"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "jBABhxE6xPp1vBwL",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "dac7abb5-e34c-4cd9-b794-22d1130dc136",
      "name": "过滤器(合格线索)",
      "type": "n8n-nodes-base.filter",
      "position": [
        2800,
        -1456
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "10b40a26-d529-4aeb-9b5a-4007d9b516dc",
              "operator": {
                "type": "string",
                "operation": "empty",
                "singleValue": true
              },
              "leftValue": "={{ $json.icebreaker_subject }}",
              "rightValue": ""
            },
            {
              "id": "f4b49606-ad14-418b-9983-3f5e7a4a0e31",
              "operator": {
                "type": "string",
                "operation": "empty",
                "singleValue": true
              },
              "leftValue": "={{ $json.icebreaker_body }}",
              "rightValue": ""
            },
            {
              "id": "884bfab2-74ff-4888-bbc3-bd745be7e5a9",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json.email }}",
              "rightValue": ""
            },
            {
              "id": "8a333ae0-717a-4aad-ab07-9bb3b6fc985a",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json.website_url }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5bc390bb-567c-44ad-a2e3-ed0cb585ef9d",
      "name": "循环处理线索",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1872,
        -1104
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "9982c117-d123-4568-952a-4d35cc3de958",
      "name": "提取文本和链接",
      "type": "n8n-nodes-base.html",
      "position": [
        2720,
        -544
      ],
      "parameters": {
        "options": {
          "trimValues": true,
          "cleanUpText": true
        },
        "operation": "extractHtmlContent",
        "sourceData": "binary",
        "dataPropertyName": "binary",
        "extractionValues": {
          "values": [
            {
              "key": "links",
              "attribute": "href",
              "cssSelector": "a",
              "returnArray": true,
              "returnValue": "attribute"
            },
            {
              "key": "website_text",
              "cssSelector": "body",
              "returnArray": true
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5e749a6e-921b-426f-8991-d1b4d3f5c00c",
      "name": "抓取网站",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2496,
        -544
      ],
      "parameters": {
        "url": "={{ $json.website_url }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "binary"
            }
          }
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "34a3caf7-d823-46c7-8588-87d5a83e78ff",
      "name": "捕获线索数据",
      "type": "n8n-nodes-base.set",
      "position": [
        2272,
        -544
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "da0dcf67-9cc1-482c-b66d-170258c2ea4d",
              "name": "row_number",
              "type": "number",
              "value": "={{ $json.row_number }}"
            },
            {
              "id": "42352b60-fecb-4ced-a603-376596409526",
              "name": "id",
              "type": "number",
              "value": "={{ $json.id }}"
            },
            {
              "id": "9a37c363-fbe2-40f7-93b3-d3a9e0aed3ff",
              "name": "first_name",
              "type": "string",
              "value": "={{ $json.first_name }}"
            },
            {
              "id": "e5650386-c9b6-4e9c-8991-10f880deab96",
              "name": "last_name",
              "type": "string",
              "value": "={{ $json.last_name }}"
            },
            {
              "id": "697008fe-4d34-416a-94c6-6497392a8255",
              "name": "email",
              "type": "string",
              "value": "={{ $json.email }}"
            },
            {
              "id": "27261a84-4425-42a0-9967-2136828bccd3",
              "name": "website_url",
              "type": "string",
              "value": "={{ $json.website_url }}"
            },
            {
              "id": "167a3409-718f-454d-97bf-76361b08b75a",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "0f4d452e-448d-441c-b6df-1dd15bb7fec7",
              "name": "company",
              "type": "string",
              "value": "={{ $json.company }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "974fcfea-1921-45a4-99d4-761b2d43e608",
      "name": "过滤社交链接和状态",
      "type": "n8n-nodes-base.code",
      "position": [
        2944,
        -544
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\nconst outputItems = [];\n\nconst socialPatterns = ['linkedin.com', 'twitter.com', 'instagram.com'];\n\nfor (const item of items) {\n    const websiteText = item.json.website_text?.[0] || '';\n    const allExternalLinks = item.json.links || [];\n    \n    const socialLinks = allExternalLinks.filter(link => {\n        if (!link) return false; \n        return socialPatterns.some(pattern => link.toLowerCase().includes(pattern));\n    });\n\n    const socialLinksString = socialLinks.join('\\n');\n\n   \n    const originalLeadData = {\n        first_name: $('Capture Lead Data').first().json.first_name,\n        last_name: $('Loop Over Leads').first().json.last_name,\n        email: $('Loop Over Leads').first().json.email,\n        website_url: $('Loop Over Leads').first().json.website_url,\n        title: $('Loop Over Leads').first().json.title,\n        company: $('Loop Over Leads').first().json.company,\n        row_number: $('Loop Over Leads').first().json.row_number\n    };\n    \n    const processingStatus = (websiteText && websiteText.length > 50) ? 'Success' : 'Scrape Fail';\n\n    const newItem = {\n        website_text: websiteText, \n        social_links_string: socialLinksString,\n        all_lead_data: originalLeadData, \n        status: processingStatus\n    };\n\n    outputItems.push({ json: newItem });\n}\n\nreturn outputItems;"
      },
      "typeVersion": 2
    },
    {
      "id": "97a1c64c-e02e-42c7-82c4-50ba4d6df06f",
      "name": "总结网站",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3920,
        -544
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "options": {
          "temperature": 0.1
        },
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "You are a rigorous, specialized business analyst focused on finding bottlenecks in customer operations. Your task is to provide a concise two-paragraph abstract of the company's profile.\n\nParagraph 1: Core Value Proposition. Summarize the company's main offering and target audience. Utilize [website_text].\n\nParagraph 2: Unique Hook & Operational Insight. Identify one single, non-obvious, specific detail that implies high operational overhead related to customer interaction (e.g., mention of manual booking/scheduling, high customer support call volume, specific lead intake forms, or customer service staffing/hiring challenges). Critically, the insight must relate to the administrative tasks that an AI Receptionist could automate: scheduling, qualification, or call handling. Utilize [website_text] and [social_links]."
            },
            {
              "content": "={{ $json.all_lead_data.company }}'s company data:\n1) [website_text]: {{ $json.website_text }}\n2) [social_links]: {{ $json.social_links_string }}"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "HlWDdupQ9GCmRi7F",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "bf426de8-d6e3-4474-8f5e-0541277f1f56",
      "name": "合并摘要",
      "type": "n8n-nodes-base.set",
      "position": [
        4272,
        -544
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "5c1d4e92-e6a8-465e-aa12-752a8e582f2a",
              "name": "website_summary",
              "type": "string",
              "value": "={{ $json.message.content }}"
            },
            {
              "id": "225c3c64-5c62-44ee-922a-0a912825e5c6",
              "name": "all_lead_data",
              "type": "object",
              "value": "={{ $('Filter Social & Status').item.json.all_lead_data }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ac63c0ff-87a5-41f1-82e3-b22498bfecf8",
      "name": "生成主题和正文",
      "type": "@n8n/n8n-nodes-langchain.anthropic",
      "position": [
        4496,
        -544
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "claude-haiku-4-5-20251001",
          "cachedResultName": "claude-haiku-4-5-20251001"
        },
        "options": {
          "system": "Persona:\nYou are a single, highly effective, spartan cold email copywriter. \n\nGoal:\nTo generate both a cohesive subject line and the multi-line body icebreaker copy in a single output. \n\nRules: \n1. Tone: Spartan, casual, and direct (like a bar conversation). \n2. Insight-Driven: Both subject and body must use the Company Summary's unique hook. \n3. Body: Must be 3-4 concise sentences long. Do not include a greeting (e.g., \"Hey [Name]\"). \n4. Output Format: You MUST output the JSON in the exact nested format provided below.",
          "maxTokens": 350,
          "temperature": 0
        },
        "messages": {
          "values": [
            {
              "content": "=Product Context: \nWe sell AI Voice Agents (AI Receptionists) that book, reschedule appointments, and handle lead qualification 24/7.\n\nIrresistible Sales Offer (Integrate This): \nWe run a Free 48-Hour Pilot where we deploy a human-like AI Receptionist to answer all your missed calls. The agent handles FAQs and books new appointments directly into your calendar, 24/7. In the end, you get a report showing exactly how many patient bookings the AI secured while your office was closed. No cost, zero risk. Would you be interested?\n\n\nThis is the company we are trying to sell our service to: {{ $json.all_lead_data.company }}\nThis the company's summary (Unique Hook Context (The Personalization Insight)): {{ $json.website_summary }}\nThe name of the person from the company we are going to email (Recipient): {{ $json.all_lead_data.first_name }}\n\n\nJSON Format ONLY:\n{\n\"message\": {\n\"subject\": \"[Short, Curious Subject based on unique hook]\",\n\"body\": \"[Body that uses the unique hook to transition immediately to the Free 48-Hour Pilot sales offer, ending with the specific CTA and guarantee. Use actual newline characters (\\n) for formatting.]\"\n}\n}"
            }
          ]
        }
      },
      "credentials": {
        "anthropicApi": {
          "id": "CFRCoeDLcmUNPQT7",
          "name": "Anthropic account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "444404fd-8635-4485-943a-f78df5b66e07",
      "name": "解析AI输出",
      "type": "n8n-nodes-base.code",
      "position": [
        4848,
        -544
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\nconst outputItems = [];\n\nfor (const item of items) {\n    const rawText = item.json.content[0].text;\n    \n    const cleanText = rawText.replace(/```json|```/g, '').trim();\n\n    let subject = 'AI_ERROR';\n    let body = 'Parsing Failed - Check Anthropic Output.';\n\n    try {\n      const parsed = JSON.parse(cleanText);\n\n      subject = parsed?.message?.subject || subject;\n      body = parsed?.message?.body || body;\n    } catch (error) {\n      console.error(\"JSON parse error:\", error);\n    }\n\n    outputItems.push({\n      json: {\n        subject: subject,\n        body: body,\n        all_lead_data: $('Merge Summary').first().json.all_lead_data, \n        website_summary: $('Merge Summary').first().json.website_summary\n      }\n    });\n}\n\nreturn outputItems;"
      },
      "typeVersion": 2
    },
    {
      "id": "23fbfc16-e835-437c-8cb0-a3ad0ee2e758",
      "name": "记录最终结果",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        5232,
        -288
      ],
      "parameters": {
        "columns": {
          "value": {
            "id": "={{ $('Capture Lead Data').item.json.id }}",
            "email": "={{ $('Capture Lead Data').item.json.email }}",
            "status": "={{ $('Filter Social & Status').item.json.status }}",
            "last_name": "={{ $('Capture Lead Data').item.json.last_name }}",
            "first_name": "={{ $('Merge Summary').item.json.all_lead_data.first_name }}",
            "row_number": 0,
            "icebreaker_body": "={{ $json.body }}",
            "Icebreaker_subject": "={{ $json.subject }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "id",
              "defaultMatch": true,
              "canBeUsedToMatch": true
            },
            {
              "id": "first_name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "first_name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "last_name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "last_name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "website_url",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "website_url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "title",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "company",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "company",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Icebreaker_subject",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Icebreaker_subject",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "icebreaker_body",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "icebreaker_body",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "row_number",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "row_number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI/edit#gid=0",
          "cachedResultName": "Leads"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1rUf_ReJMP1sQGUVj7Zfj4SYnmmM06_ZIOP1quabD6hI/edit?usp=drivesdk",
          "cachedResultName": "Cold Email Icebreaker"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "jBABhxE6xPp1vBwL",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "ab1d0b36-d848-461a-9252-2628590feccc",
      "name": "发送团队完成提醒",
      "type": "n8n-nodes-base.gmail",
      "position": [
        5344,
        -1120
      ],
      "webhookId": "f3ed8103-1679-41ed-aacc-ff2a14afce2b",
      "parameters": {
        "sendTo": "bhuvaneshx13@gmail.com",
        "message": "Dear team,\n\nYou can find the personalized cold email in the draft section!\n\n\n\nRegards,\nBhuvanesh\n",
        "options": {
          "appendAttribution": false
        },
        "subject": "re: Cold Emails are ready to be sent!",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "PJrUDp0UTEVBDOMT",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a4d963e7-ebea-4a65-bca2-c7ce38c16161",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3888,
        -944
      ],
      "parameters": {
        "color": 2,
        "width": 1088,
        "height": 592,
        "content": "## **4. AI 个性化引擎**"
      },
      "typeVersion": 1
    },
    {
      "id": "3ca20d99-a682-41bb-be20-d0256b665f69",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3232,
        -944
      ],
      "parameters": {
        "color": 2,
        "width": 544,
        "height": 896,
        "content": "## **3. IF(过滤)**"
      },
      "typeVersion": 1
    },
    {
      "id": "bbdae9ce-cfef-4349-9b53-4f2454f9d005",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        -1696
      ],
      "parameters": {
        "width": 928,
        "height": 496,
        "content": "## **1. 数据摄取和过滤**"
      },
      "typeVersion": 1
    },
    {
      "id": "2d3bdc9c-d0be-486c-980e-1095de1d2952",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        -944
      ],
      "parameters": {
        "color": 2,
        "width": 928,
        "height": 608,
        "content": "## **2. 抓取和数据塑形**"
      },
      "typeVersion": 1
    },
    {
      "id": "e0c20f03-b200-42ee-bf9e-a8fed167aab4",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5072,
        -1216
      ],
      "parameters": {
        "width": 640,
        "height": 1168,
        "content": "## **5. 记录、草稿和提醒**"
      },
      "typeVersion": 1
    },
    {
      "id": "94a21ec9-b05b-4737-8a06-52d6a4292f98",
      "name": "便签 12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        -1840
      ],
      "parameters": {
        "color": 5,
        "width": 544,
        "height": 336,
        "content": "# 你好!"
      },
      "typeVersion": 1
    },
    {
      "id": "a466d18b-11a8-4ef0-98e5-0c999a32aee4",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -1840
      ],
      "parameters": {
        "color": 7,
        "width": 4224,
        "height": 2016,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "772a5fab-5af7-48ce-9d7c-76051e02535e",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        -1456
      ],
      "parameters": {
        "width": 544,
        "height": 944,
        "content": "# 个性化冷邮件生成器"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "93a44ccd-e4b6-4b9b-b169-74dd390cd046",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Summarize Website",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Final Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Site": {
      "main": [
        [
          {
            "node": "Extract Text & Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Leads": {
      "main": [
        [
          {
            "node": "Filter (Qualified Leads)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Summary": {
      "main": [
        [
          {
            "node": "Generate Subject & Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a draft": {
      "main": [
        [
          {
            "node": "Loop Over Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Get All Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Leads": {
      "main": [
        [
          {
            "node": "Send Team Completion Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Capture Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Output": {
      "main": [
        [
          {
            "node": "Log Final Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Final Result": {
      "main": [
        [
          {
            "node": "Create a draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Capture Lead Data": {
      "main": [
        [
          {
            "node": "Scrape Site",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Website": {
      "main": [
        [
          {
            "node": "Merge Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text & Links": {
      "main": [
        [
          {
            "node": "Filter Social & Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Social & Status": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Subject & Body": {
      "main": [
        [
          {
            "node": "Parse AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter (Qualified Leads)": {
      "main": [
        [
          {
            "node": "Loop Over Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 客户培育, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量24
分类2
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Bhuvanesh R

Bhuvanesh R

@bhuvanesh

I partner with businesses to design AI voice agents and automation systems. Let's connect on LinkedIn to discuss your AI integration and automation needs.

外部链接
在 n8n.io 查看

分享此工作流