8
n8n 中文网amn8n.com

销售线索 - Jina 到 Gmail

高级

这是一个Lead Nurturing, Multimodal AI领域的自动化工作流,包含 43 个节点。主要使用 If, Set, Wait, Gmail, Merge 等节点。 使用 Jina AI 和 OpenAI 生成并研究销售线索,通过 Gmail 实现邮件自动化

前置要求
  • Google 账号和 Gmail API 凭证
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Mesp1QdbiOG6i0RM",
  "meta": {
    "instanceId": "57c6ae2839a35415c47c2c780dda3195de041953069a0948855f595fc6dcad27",
    "templateId": "2324",
    "templateCredsSetupCompleted": true
  },
  "name": "销售线索-Jina到Gmail",
  "tags": [
    {
      "id": "7pJlw7HV4Rg9tAKm",
      "name": "Template",
      "createdAt": "2025-03-18T18:15:54.900Z",
      "updatedAt": "2025-03-18T18:15:54.900Z"
    },
    {
      "id": "tzXZvyo12i9wx3d2",
      "name": "Working",
      "createdAt": "2025-03-18T22:31:07.779Z",
      "updatedAt": "2025-03-18T22:31:07.779Z"
    }
  ],
  "nodes": [
    {
      "id": "e033e4f3-5f06-4318-8c5f-3166acf7e375",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1312,
        240
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "96458c3c-4e14-4ee7-b879-b8968b36b0d7",
      "name": "潜在客户调研",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1632,
        416
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d0f5a495-c306-4d84-aa7e-aa43f89ec070",
      "name": "线索分析器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2112,
        368
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "c6d61b1b-fbc0-45c3-9b0c-ef4b21ec36f4",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2272,
        592
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e3f72ed2-0371-4334-8786-996735e4be66",
      "name": "结构化输出解析器3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2928,
        592
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "fb423c71-2b96-4b88-93fd-e4cb54243aa9",
      "name": "邮件内容生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2768,
        368
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "5e1090d7-d162-48af-bbdc-9f4f16935af1",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -992,
        -176
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5761e8cc-6c76-47e4-989b-7ad69851ee81",
      "name": "合并搜索",
      "type": "n8n-nodes-base.merge",
      "position": [
        1824,
        368
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "6e72703c-d957-4764-8f8c-78cbb3e07d97",
      "name": "等待5秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        2528,
        368
      ],
      "webhookId": "0c31b969-a44e-4fd1-8bd6-ba805aa1b986",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "42244267-54a7-4966-87c8-19acab851304",
      "name": "更新记录",
      "type": "n8n-nodes-base.airtable",
      "position": [
        5216,
        544
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "7a6bf543-ac5e-490c-9af9-9e0f81e23b97",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "615998d7-8d2e-43b0-8330-78bca30ceab5",
      "name": "等待8秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        5216,
        816
      ],
      "webhookId": "55308dcd-62a0-4106-a478-179ad364592c",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "619e3701-6839-4ed4-8e81-46ac2b2d4e26",
      "name": "获取输入记录",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1104,
        240
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "3941ec45-d74c-4d77-aabd-0cd8a42cefb9",
      "name": "合并循环",
      "type": "n8n-nodes-base.merge",
      "position": [
        5200,
        256
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "3655bdf0-5eab-48f4-af9d-333c18fbd416",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "280af6d0-bf2e-49e7-8cf7-f95dec56c490",
      "name": "企业信息",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "f52617b4-3945-4ffa-8812-bfcf30b18a70",
      "name": "Jina_API密钥",
      "type": "n8n-nodes-base.set",
      "position": [
        704,
        240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "3063be8a-6534-4ca7-8922-9fc8062fe5b7",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1b3254db-9a54-4ab9-a06c-6c1ac84a8f5a",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a6b34ab4-6d52-4bc0-ac2e-f474c89d46b3",
      "name": "## 为什么选择 4o 模型?👆",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2688,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f677415e-1f33-4f5a-badb-72a006202c54",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3184,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "70b08af4-4fc2-4fe1-be76-e74996739ee8",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5056,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2950353a-9d3e-40d9-8240-899ffeeda6ac",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        3792,
        368
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e8285d26-164a-4711-82dd-b79fc2b2e7ef",
      "name": "反馈",
      "type": "n8n-nodes-base.set",
      "position": [
        3792,
        592
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "525181d4-7c05-4329-9645-0c92eee0770b",
      "name": "结构化输出解析器4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4384,
        816
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "1e5b21e2-dbe6-4e5a-adac-4af7d038b448",
      "name": "邮件内容重写器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4208,
        592
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "2b615f1c-7e93-44d7-abc4-561954c59163",
      "name": "窗口缓冲内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        3360,
        544
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0150e05c-2ded-42c7-b286-c5fc29a00813",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3472,
        592
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "117a8661-0936-4147-9a03-5d3ef73a736d",
      "name": "评估器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3264,
        368
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "524f7e67-acbb-4390-9eb4-3d2244738ff8",
      "name": "OpenAI Gpt-5-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2112,
        592
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5d78a936-94e4-4ba1-bbfd-ad500a6baf1e",
      "name": "OpenAI - Gpt-5-mini高",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2752,
        592
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c721990f-2d8b-4c97-93ef-f9103d384775",
      "name": "OpenAI-Gpt-5-mini低",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3232,
        592
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ffb7affd-aed0-4800-a410-356b3a8d2fc7",
      "name": "OpenAI - Gpt-5-mini低",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        4192,
        816
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5b6bb615-e002-424a-943a-3aa7ec7f7682",
      "name": "创建草稿",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4736,
        128
      ],
      "webhookId": "5ba09653-f6b1-43a1-9821-7e9880a607ee",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "8922822c-c9fd-4b7b-80a1-f18322cacd28",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3664,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9f232d4b-7e8b-4c3a-94ba-6b58fdc60716",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4592,
        -16
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e619226e-643e-4fe0-8b5c-cb0dea5a81cc",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4128,
        384
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ca41792-ec47-492c-ac09-75c19a03dfb3",
      "name": "OpenAI - Gpt-5-mini低1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        4208,
        144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "14b3260c-2578-4887-9d61-dfb9b8f425c7",
      "name": "便签 14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4128,
        -176
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a1eecdfe-00b1-4b16-91d3-0cbb26e99ec2",
      "name": "格式化HTML",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4208,
        -48
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "5edcabaf-7503-402c-9777-eb757682762b",
      "name": "执行工作流",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        80,
        256
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "64114da0-3bba-4a08-b08c-42f0d2937581",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        80,
        0
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "bef8adb5-6ff7-43d5-947d-e8a39d671d3e",
      "name": "便签 15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b91b4286-a682-4e5b-8620-d477f2d2b190",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Format HTML",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Feedback": {
      "main": [
        [
          {
            "node": "Email Content Re-writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluator": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge-loop": {
      "main": [
        [
          {
            "node": "Update record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait-5-sec": {
      "main": [
        [
          {
            "node": "Email Content Creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait-8-sec": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format HTML": {
      "main": [
        [
          {
            "node": "Create a draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jina_API_Key": {
      "main": [
        [
          {
            "node": "Get input records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge-Search": {
      "main": [
        [
          {
            "node": "Lead Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Business_Info": {
      "main": [
        [
          {
            "node": "Jina_API_Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Analyzer": {
      "main": [
        [
          {
            "node": "Wait-5-sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update record": {
      "main": [
        [
          {
            "node": "Wait-8-sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a draft": {
      "main": [
        [
          {
            "node": "Merge-loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Lead Person Research",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge-Search",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge-loop",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Execute workflow": {
      "main": [
        [
          {
            "node": "Business_Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Business_Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get input records": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Gpt-5-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Lead Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Lead Person Research": {
      "main": [
        [
          {
            "node": "Merge-Search",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Evaluator",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Email Content Creator": {
      "main": [
        [
          {
            "node": "Evaluator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI-Gpt-5-mini-low": {
      "ai_languageModel": [
        [
          {
            "node": "Evaluator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Gpt-5-mini-hi": {
      "ai_languageModel": [
        [
          {
            "node": "Email Content Creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Email Content Re-writer": {
      "main": [
        [
          {
            "node": "Evaluator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Gpt-5-mini-low": {
      "ai_languageModel": [
        [
          {
            "node": "Email Content Re-writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Gpt-5-mini-low1": {
      "ai_languageModel": [
        [
          {
            "node": "Format HTML",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Lead Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Evaluator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "Email Content Creator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "Email Content Re-writer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
FabioInTech

FabioInTech

@fabiointech

AI Systems Architect with 18+ years experience designing scalable, intelligent automation solutions. I specialize in architecting complex n8n workflows that integrate AI systems, streamline operations, and optimize business processes. My expertise spans multi-agent architectures, data automation, and enterprise-grade systems that adapt to evolving business needs. I help organizations unlock their potential through strategic technology implementation and innovative automation solutions.

外部链接
在 n8n.io 查看

分享此工作流