Slack 潜在客户丰富器
高级
这是一个Lead Generation, AI Summarization领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Code, Wait, Slack 等节点。 Extruct AI线程内回复的Slack实时线索丰富
前置要求
- •Slack Bot Token 或 Webhook URL
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "I4JZs4ZoF6uGWA6K",
"meta": {
"instanceId": "afeb9bf6b44bcf071458717ba2725fb9cfe8e80d1545ad9879e786f1aaf7a15f",
"templateCredsSetupCompleted": true
},
"name": "Slack 潜在客户丰富器",
"tags": [],
"nodes": [
{
"id": "867c1363-367b-4d53-b3ed-7412ae958851",
"name": "新消息捕获器",
"type": "n8n-nodes-base.slackTrigger",
"position": [
-260,
80
],
"webhookId": "b336da43-5dff-4258-b929-9cf4fa56afe0",
"parameters": {
"options": {},
"trigger": [
"message"
],
"channelId": {
"__rl": true,
"mode": "list",
"value": ""
}
},
"credentials": {
"slackApi": {
"id": "exPK7YcuJO2xvGsq",
"name": "Slack account 2"
}
},
"typeVersion": 1
},
{
"id": "36520fc6-6b17-4b6b-a3cb-71e08285ca7c",
"name": "发送公司详情",
"type": "n8n-nodes-base.slack",
"position": [
2000,
80
],
"webhookId": "67b5011a-fa10-48a6-9a9f-325db5fdbfae",
"parameters": {
"text": "=*Company Name:* {{$node[\"Format Slack Company Card\"].json.name}}\n*Website:* <{{$node[\"Format Slack Company Card\"].json.website}}|{{$node[\"Format Slack Company Card\"].json.website}}>\n*LinkedIn:* <{{$node[\"Format Slack Company Card\"].json.linkedin}}|{{$node[\"Format Slack Company Card\"].json.linkedin}}>\n*Number of Employees:* {{$node[\"Format Slack Company Card\"].json.employees}}\n*Industry:* {{$node[\"Format Slack Company Card\"].json.industry}}\n*Recent News:*\n{{$node[\"Format Slack Company Card\"].json.recentNews}}\n\n*Key People:*\n{{$node[\"Format Slack Company Card\"].json.keyPeople}}\n",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C095SRQQL73",
"cachedResultName": "all-test-workspace"
},
"otherOptions": {
"thread_ts": {
"replyValues": {
"thread_ts": "={{$node[\"New Message Catcher\"].json[\"ts\"]}}\n"
}
},
"unfurl_links": false,
"includeLinkToWorkflow": false
}
},
"credentials": {
"slackApi": {
"id": "fU6CZxNJOF7uLI00",
"name": "Slack account"
}
},
"typeVersion": 2.3
},
{
"id": "01e11aa6-7afc-4234-a32e-284bff6f2f59",
"name": "提取公司名称输入",
"type": "n8n-nodes-base.code",
"position": [
180,
80
],
"parameters": {
"jsCode": "return items\n .map(item => {\n const data = $node[\"New Message Catcher\"].json;\n const text = data.text || \"\";\n\n // Ignore thread replies: skip if thread_ts exists and differs from ts\n if (data.thread_ts && data.thread_ts !== data.ts) {\n return null;\n }\n\n const emailRegex = /[a-zA-Z0-9._%+-]+@([a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})/;\n let match = text.match(emailRegex);\n let domain = null;\n if (match) {\n domain = match[1].toLowerCase();\n } else {\n const domainRegex = /\\b([a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})\\b/;\n match = text.match(domainRegex);\n if (match) {\n domain = match[1].toLowerCase();\n }\n }\n\n if (!domain) {\n return null;\n }\n\n // Blacklist common generic email domains\n const blacklist = [\n \"gmail.com\", \"icloud.com\", \"yahoo.com\", \"outlook.com\",\n \"hotmail.com\", \"aol.com\", \"msn.com\"\n ];\n if (blacklist.includes(domain)) {\n return null;\n }\n\n return { json: { companyDomain: domain } };\n })\n .filter(item => item !== null);"
},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "559066c3-be7f-4311-be3a-a77e17ab4b53",
"name": "公司名称是否存在?",
"type": "n8n-nodes-base.if",
"position": [
400,
75
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b78ac018-0287-42fc-8cfc-3a706c490473",
"operator": {
"type": "string",
"operation": "notEmpty",
"singleValue": true
},
"leftValue": "={{ $json.companyDomain}}",
"rightValue": "=[null]"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "614729f3-3bda-4ca9-b117-a6c73c0aefa5",
"name": "开始公司丰富",
"type": "n8n-nodes-base.httpRequest",
"position": [
620,
75
],
"parameters": {
"url": "=https://api.extruct.ai/v1/tables/{{ $node[\"Set Extruct Table ID\"].json.EXTRUCT_TABLE_ID }}/rows\n",
"method": "POST",
"options": {},
"jsonBody": "={\n \"rows\": [\n {\n \"data\": {\n \"input\": \"{{ $node[\"Extract Company Name Input\"].json.companyDomain }}\"\n }\n }\n ],\n \"run\": true\n}\n",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "PnJ0FDuGkKYiN4MZ",
"name": "Bearer Auth account"
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "4a7f16f7-8ee5-4fa4-8694-cf1169de224a",
"name": "等待 API 处理",
"type": "n8n-nodes-base.wait",
"position": [
840,
75
],
"webhookId": "10face1b-ef18-4357-ad22-0c4f32e25f90",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "e7fb5432-fcb9-42b3-b100-21e4cb217fbc",
"name": "检查丰富状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
1060,
0
],
"parameters": {
"url": "=https://api.extruct.ai/v1/tables/{{ $('Set Extruct Table ID').item.json.EXTRUCT_TABLE_ID }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "PnJ0FDuGkKYiN4MZ",
"name": "Bearer Auth account"
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "5d2efdd1-870b-49c0-a152-2f28e3b7f56b",
"name": "公司信息是否就绪?",
"type": "n8n-nodes-base.if",
"position": [
1280,
75
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "f8432dca-c337-4644-8163-fa83f12e5ded",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status.run_status }}",
"rightValue": "=running"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "b54128ff-f67e-45d3-8fcf-4dba739c2839",
"name": "获取公司数据",
"type": "n8n-nodes-base.httpRequest",
"position": [
1500,
75
],
"parameters": {
"url": "=https://api.extruct.ai/v1/tables/{{ $('Set Extruct Table ID').item.json.EXTRUCT_TABLE_ID }}/data",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "PnJ0FDuGkKYiN4MZ",
"name": "Bearer Auth account"
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "802f9558-1232-4785-9751-6807bf601256",
"name": "格式化 Slack 公司卡片",
"type": "n8n-nodes-base.code",
"position": [
1720,
75
],
"parameters": {
"jsCode": "return items.map(item => {\n const rows = item.json.rows;\n if (!Array.isArray(rows) || rows.length === 0) {\n throw new Error('No rows available in response');\n }\n const lastRow = rows[rows.length - 1].data;\n return {\n json: {\n name: lastRow.company_name.value.answer,\n website: lastRow.company_website.value.answer,\n linkedin: lastRow.linkedin_profile.value.answer,\n employees: lastRow.company_num_employees.value.answer,\n industry: lastRow.company_industry.value.answer,\n recentNews: lastRow.recent_news.value.answer,\n keyPeople: lastRow.key_people.value.answer,\n }\n };\n});"
},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "39512e99-4ddf-461d-8d78-f0c69c0f667f",
"name": "设置 Extruct 表格 ID",
"type": "n8n-nodes-base.set",
"position": [
-40,
75
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9eb02d95-b83d-4f14-b8bf-3a65383b20f2",
"name": "=EXTRUCT_TABLE_ID",
"type": "string",
"value": "YOUR_EXTRUCT_TABLE_ID"
}
]
}
},
"typeVersion": 3.4,
"alwaysOutputData": true
},
{
"id": "787593a2-7e1e-4a8e-8e47-e35682c6976b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1220,
-100
],
"parameters": {
"width": 880,
"height": 1400,
"content": "# 快速入门:n8n 中的 Slack 潜在客户丰富器"
},
"typeVersion": 1
},
{
"id": "dbeafe18-c0bf-4386-baf6-e532534f45bb",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-100
],
"parameters": {
"color": 2,
"width": 420,
"height": 360,
"content": "## 触发和初始化:"
},
"typeVersion": 1
},
{
"id": "713d96c7-a697-46a0-bd21-66d0c6124461",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-100
],
"parameters": {
"color": 3,
"width": 440,
"height": 360,
"content": "## Lead Extraction:\nParses each message for a company domain or name and filters out invalid entries."
},
"typeVersion": 1
},
{
"id": "03b330c8-2b53-4db9-9475-f6f6bef8c891",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
-100
],
"parameters": {
"color": 4,
"width": 860,
"height": 360,
"content": "## Enrichment Request Flow:\nSends the domain to Extruct API and polls until the enrichment run completes."
},
"typeVersion": 1
},
{
"id": "cbe81611-57c5-4499-b2eb-07edab80129d",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
-100
],
"parameters": {
"color": 5,
"width": 420,
"height": 360,
"content": "## Data Retrieval & Formatting:\nRetrieves the enriched company details and builds a structured Slack card."
},
"typeVersion": 1
},
{
"id": "37f297eb-c779-4d3f-9fd2-604c1164242c",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1900,
-100
],
"parameters": {
"color": 6,
"width": 300,
"height": 360,
"content": "## Slack Publishing:\nPosts the formatted company profile (name, website, LinkedIn, headcount, industry, recent news, key contacts) back into the original Slack thread."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ab044bfc-1128-4ca0-90ab-70b904644d79",
"connections": {
"Get Company Data": {
"main": [
[
{
"node": "Format Slack Company Card",
"type": "main",
"index": 0
}
]
]
},
"New Message Catcher": {
"main": [
[
{
"node": "Set Extruct Table ID",
"type": "main",
"index": 0
}
]
]
},
"Company Name Exists?": {
"main": [
[
{
"node": "Start Company Enrichment",
"type": "main",
"index": 0
}
],
[]
]
},
"Set Extruct Table ID": {
"main": [
[
{
"node": "Extract Company Name Input",
"type": "main",
"index": 0
}
]
]
},
"Is Company Info Ready?": {
"main": [
[
{
"node": "Hold for API Processing",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Company Data",
"type": "main",
"index": 0
}
]
]
},
"Check Enrichment Status": {
"main": [
[
{
"node": "Is Company Info Ready?",
"type": "main",
"index": 0
}
]
]
},
"Hold for API Processing": {
"main": [
[
{
"node": "Check Enrichment Status",
"type": "main",
"index": 0
}
]
]
},
"Start Company Enrichment": {
"main": [
[
{
"node": "Hold for API Processing",
"type": "main",
"index": 0
}
]
]
},
"Format Slack Company Card": {
"main": [
[
{
"node": "Send Company Details",
"type": "main",
"index": 0
}
]
]
},
"Extract Company Name Input": {
"main": [
[
{
"node": "Company Name Exists?",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 潜在客户开发, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
社交媒体资料丰富流程
使用Extruct.ai收集公司社交媒体资料并存储到Google表格
If
Set
Code
+5
13 节点Extruct AI
潜在客户开发
完整启动概览
使用Extruct.ai到Google Sheets自动化初创公司研究与画像
If
Set
Code
+5
13 节点Extruct AI
市场调研
潜在客户开发与邮件工作流
使用Google Maps、SendGrid和AI自动化B2B潜在客户开发与邮件营销
If
Set
Code
+21
141 节点Ezema Kingsley Chibuzo
潜在客户开发
使用AI和Apify将LinkedIn帖子互动转化为合格潜在客户
使用AI和Apify将LinkedIn帖子互动转化为合格潜在客户
If
Set
Code
+10
26 节点Anna Bui
潜在客户开发
基于 OCR、Claude AI、Slack 和 Notion DB 的自动化发票付款追踪
基于 OCR、Claude AI、Slack 和 Notion DB 的自动化发票付款追踪
If
Code
Wait
+11
92 节点Han
AI 摘要总结
AI驱动的谷歌地图商家数据抓取与表格导出
基于AI的谷歌地图商家数据抓取,支持数据丰富化并导出至表格
If
Code
Wait
+13
25 节点Msaid Mohamed el hadi
潜在客户开发
工作流信息
难度等级
高级
节点数量17
分类2
节点类型8
作者
Extruct AI
@extruct-aiTurn natural language into structured company data with one API call. Skip the web scraping, HTML parsing, and data cleaning - just describe the companies you're looking for and get back verified, enriched results. Perfect for enriching CRMs, building lead generation workflows, or automating market research. Built by developers who understand that the best company data isn't trapped in static databases - it's live on the web.
外部链接
在 n8n.io 查看 →
分享此工作流