8
n8n 中文网amn8n.com

使用Icypeas执行电子邮件搜索(单个)

中级

这是一个Sales, Marketing领域的自动化工作流,包含 6 个节点。主要使用 Code, HttpRequest, ManualTrigger 等节点。 使用Icypeas执行电子邮件搜索(单个)

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "zAkPoRdcG5M5x4KT",
  "meta": {
    "instanceId": "a897062ac3223eacd9c7736276b653c446bc776a63cde2a42a2949ad984f7092"
  },
  "name": "使用Icypeas执行电子邮件搜索(单个)",
  "tags": [],
  "nodes": [
    {
      "id": "7bd55522-62dd-40da-939d-e10c185dd44d",
      "name": "点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1220,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "422bb377-afe7-4332-a134-15af150e8006",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        220
      ],
      "parameters": {
        "height": 243.6494382022472,
        "content": "## 使用Icypeas执行电子邮件搜索(单个)"
      },
      "typeVersion": 1
    },
    {
      "id": "a95bd610-e5e3-4343-afcc-4af22dca1f8f",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1367,
        296
      ],
      "parameters": {
        "width": 506,
        "height": 1042.9602832148855,
        "content": "## 认证到您的Icypeas账户"
      },
      "typeVersion": 1
    },
    {
      "id": "f0951515-48cf-4c1b-82fd-960959a51bb7",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1873,
        300
      ],
      "parameters": {
        "width": 492,
        "height": 961.061974298911,
        "content": "## 在您的Icypeas账户上执行电子邮件搜索"
      },
      "typeVersion": 1
    },
    {
      "id": "6d12e09f-143a-46f1-9790-512d4f10f51f",
      "name": "认证到您的Icypeas账户",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        480
      ],
      "parameters": {
        "jsCode": "const BASE_URL = \"https://app.icypeas.com\";\nconst PATH = \"/api/domain-search\";\nconst METHOD = \"POST\";\n\n// Change here\nconst API_KEY = \"PUT_API_KEY_HERE\";\nconst API_SECRET = \"PUT_API_SECRET_HERE\";\nconst USER_ID = \"PUT_USER_ID_HERE\";\n////////////////\n\nconst genSignature = (\n    path,\n    method,\n    secret,\n    timestamp = new Date().toISOString()\n) => {\n    const Crypto = require('crypto');\n    const payload = `${method}${path}${timestamp}`.toLowerCase();\n    const sign = Crypto.createHmac(\"sha1\", secret).update(payload).digest(\"hex\");\n\n    return sign;\n};\n\nconst fullPath = `${BASE_URL}${PATH}`;\n$input.first().json.api = {\n  timestamp: new Date().toISOString(),\n  secret: API_SECRET,\n  key: API_KEY,\n  userId: USER_ID,\n  url: fullPath,\n};\n$input.first().json.api.signature = genSignature(PATH, METHOD, API_SECRET, $input.first().json.api.timestamp);\nreturn $input.first();"
      },
      "typeVersion": 1
    },
    {
      "id": "5f62f87f-7a25-4030-bcd4-d87b24269504",
      "name": "运行电子邮件搜索(单个)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1940,
        480
      ],
      "parameters": {
        "url": "={{ $json.api.url }}",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "lastname",
              "value": "=Landoin"
            },
            {
              "name": "firstname",
              "value": "Pierre"
            },
            {
              "name": "domainOrCompany",
              "value": "icypeas"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "X-ROCK-TIMESTAMP",
              "value": "={{ $json.api.timestamp }}"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "KGXtUrqC6lNLwW2w",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "34ee6b2d-673e-4d5d-a0b2-7c7a4af14d3c",
  "connections": {
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Authenticates to your Icypeas account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Authenticates to your Icypeas account": {
      "main": [
        [
          {
            "node": "Run email search (single)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 销售, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流