8
n8n 中文网amn8n.com

ELV 查找 Gmail 邮件(用于分享)

中级

这是一个Lead Generation领域的自动化工作流,包含 14 个节点。主要使用 Code, Merge, HttpRequest, GoogleSheets, ManualTrigger 等节点。 使用 EmailListVerify 和 Google Sheets 验证基于域名的 Gmail 地址以进行推广

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "bNmpf7UcG9TAtpqw",
  "meta": {
    "instanceId": "42f06bdbe33c6e48441258a73a5cbec4a66a97aff3a765b2ca73c67ed394d25f",
    "templateCredsSetupCompleted": true
  },
  "name": "ELV 查找 Gmail 邮件(用于分享)",
  "tags": [],
  "nodes": [
    {
      "id": "32ebbb67-5305-4d9c-ac20-f664066f3443",
      "name": "保存结果",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1296,
        -320
      ],
      "parameters": {
        "columns": {
          "value": {
            "Email": "={{ $json.root }}@{{ $json.extension }}",
            "Status": "={{ $json.data }}"
          },
          "schema": [
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 1262572795,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/12o34neTjY61XY6NQZx8PqGE9LppS40rJILshkcIZsbE/edit#gid=1262572795",
          "cachedResultName": "[OutPut] emails"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY/edit?usp=drivesdk",
          "cachedResultName": "[EmailListVerify N8N template] gmail finder"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {}
      },
      "typeVersion": 4.7
    },
    {
      "id": "425cb846-c586-4d7a-8fea-262ad542150a",
      "name": "获取域名列表",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        80,
        -336
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 2121105756,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY/edit#gid=2121105756",
          "cachedResultName": "[Input] domain"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY/edit?usp=drivesdk",
          "cachedResultName": "[EmailListVerify N8N template] gmail finder"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {}
      },
      "typeVersion": 4.7
    },
    {
      "id": "16eadf3f-65d0-4f60-8369-15793764084a",
      "name": "创建邮件候选",
      "type": "n8n-nodes-base.merge",
      "position": [
        592,
        -112
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3.2
    },
    {
      "id": "0b6e1ec5-c0fb-4ee7-9160-5809574b7ea7",
      "name": "使用 EmailListVerify API 检查邮件是否有效",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -64
      ],
      "parameters": {
        "url": "https://api.emaillistverify.com/api/verifyEmail",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "email",
              "value": "={{ $json.root }}@{{ $json.extension }}"
            }
          ]
        }
      },
      "credentials": {
        "httpQueryAuth": {
          "id": "",
          "name": "Query Auth account 2"
        },
        "httpHeaderAuth": {
          "id": "",
          "name": "Header Auth account 2"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "efdeb7f5-8f92-4bf7-b36c-7cf1c8a2de52",
      "name": "合并结果",
      "type": "n8n-nodes-base.merge",
      "position": [
        1120,
        -320
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineByPosition"
      },
      "typeVersion": 3.2
    },
    {
      "id": "f290af28-43c5-4294-8431-fbec3cda7600",
      "name": "将网站转换为域名",
      "type": "n8n-nodes-base.code",
      "position": [
        304,
        -336
      ],
      "parameters": {
        "jsCode": "console.log($input.all())\n\n\nconst data = $input.all()\n\nconsole.log(\"start filter\")\nconsole.log(data)\n\nlet merged = []\nfor (let line of data){\n  console.log(line)\n  try{\n  let lineObject = line[\"json\"]  \n  let url = lineObject[\"domain\"];\n\n  let domainEnd= url.indexOf(\".\");\n  \n  let domain = url.slice(0 , domainEnd);\n\n  if(domain.slice(0,4)==\"www.\"){\n    domain = domain.slice(4,domain.length)\n  }\n    \n  console.log(domain)\n  lineObject[\"root\"] = domain;\n  merged.push(lineObject);\n  } catch (e) {\n    console.log(\"error\")\n    console.log(e)\n  }\n  \n}\n\n\n\nconsole.log(merged);\n\n\nreturn merged;"
      },
      "typeVersion": 2
    },
    {
      "id": "b9c40ded-d57c-422a-82ed-71bb29720107",
      "name": "获取邮件扩展名列表",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        80,
        -64
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY/edit#gid=0",
          "cachedResultName": "[Input] partern"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1r4DZ4GnqKzivmIhRdv1D35fvS_Mg-VTKgbuZS-7H-HY/edit?usp=drivesdk",
          "cachedResultName": "[EmailListVerify N8N template] gmail finder"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {}
      },
      "typeVersion": 4.7
    },
    {
      "id": "8a417210-3211-43e4-831c-0a5e5f1f5b87",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -864
      ],
      "parameters": {
        "color": 3,
        "height": 592,
        "content": "## 使用说明"
      },
      "typeVersion": 1
    },
    {
      "id": "ae9fdad2-84ed-47cb-b2e0-008525ff7d04",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -496
      ],
      "parameters": {
        "height": 624,
        "content": "## 获取输入"
      },
      "typeVersion": 1
    },
    {
      "id": "43d72b68-d4d8-4906-bb13-f5d26938604e",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -496
      ],
      "parameters": {
        "height": 624,
        "content": "## 生成邮件候选"
      },
      "typeVersion": 1
    },
    {
      "id": "0f37f6d0-c7a3-452c-b9ec-f3404ee9e659",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -496
      ],
      "parameters": {
        "height": 624,
        "content": "## 检查邮件是否有效"
      },
      "typeVersion": 1
    },
    {
      "id": "0e62351b-7fff-4cf2-9fb9-0486559c4f4e",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        -496
      ],
      "parameters": {
        "width": 352,
        "height": 624,
        "content": "## 保存结果"
      },
      "typeVersion": 1
    },
    {
      "id": "c4412b0d-cdc4-463a-9923-8fc14e325c1e",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -496
      ],
      "parameters": {
        "height": 624,
        "content": "## 清理输入"
      },
      "typeVersion": 1
    },
    {
      "id": "0cd6743d-c02e-4821-abdc-25611c4e2488",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -304,
        -176
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f49d0059-7d19-4cb2-b2f2-405f633e3062",
  "connections": {
    "Combine results": {
      "main": [
        [
          {
            "node": "Save results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get list of domain": {
      "main": [
        [
          {
            "node": "Transform website into domain name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create email candidates": {
      "main": [
        [
          {
            "node": "Use EmailListVerify API to check if email is valid",
            "type": "main",
            "index": 0
          },
          {
            "node": "Combine results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get list of email extension": {
      "main": [
        [
          {
            "node": "Create email candidates",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Transform website into domain name": {
      "main": [
        [
          {
            "node": "Create email candidates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get list of domain",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get list of email extension",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Use EmailListVerify API to check if email is valid": {
      "main": [
        [
          {
            "node": "Combine results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 潜在客户开发

需要付费吗?

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

工作流信息
难度等级
中级
节点数量14
分类1
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
EmailListVerify

EmailListVerify

@emaillistverify

Full-Featured Email Verification for half the price

外部链接
在 n8n.io 查看

分享此工作流