同步 Facebook 潜在客户广告到 Google 表格和 Salesforce CRM
中级
这是一个Lead Generation领域的自动化工作流,包含 6 个节点。主要使用 Set, Start, Salesforce, GoogleSheets, FacebookLeadAdsTrigger 等节点。 将 Facebook/Google 潜在客户广告同步至 Google 表格和 Salesforce CRM
前置要求
- •Salesforce OAuth 凭证
- •Google Sheets API 凭证
- •Facebook Graph API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
无法加载工作流预览
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "1",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "同步Facebook潜在客户广告到Google表格和Salesforce CRM",
"nodes": [
{
"name": "开始",
"type": "n8n-nodes-base.start",
"position": [
250,
300
],
"parameters": {},
"typeVersion": 1
},
{
"name": "Facebook潜在客户广告",
"type": "n8n-nodes-base.facebookLeadAdsTrigger",
"position": [
450,
300
],
"parameters": {
"formId": "={{ $credential.formId }}",
"pageId": "={{ $credential.pageId }}",
"options": {}
},
"credentials": {
"facebookLeadAdsTriggerApi": {
"id": "YOUR_FB_CREDENTIAL_ID",
"name": "Facebook Lead Ads credential"
}
},
"typeVersion": 1
},
{
"name": "记录潜在客户到Google表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
890,
300
],
"parameters": {
"columns": {
"values": [
{
"value": "={{ $now.toFormat('yyyy-MM-dd HH:mm:ss') }}",
"column": "Timestamp"
},
{
"value": "={{$json.full_name}}",
"column": "FullName"
},
{
"value": "={{$json.email}}",
"column": "Email"
},
{
"value": "={{$json.phone_number}}",
"column": "PhoneNumber"
},
{
"value": "={{$json.leadgen_id}}",
"column": "LeadID"
},
{
"value": "Processing",
"column": "CRM_Status"
}
]
},
"options": {},
"sheetName": "YOUR_SHEET_NAME",
"documentId": "YOUR_GOOGLE_SHEET_ID"
},
"credentials": {
"googleSheetsApi": {
"id": "YOUR_GOOGLE_CREDENTIAL_ID",
"name": "Google Sheets credential"
}
},
"typeVersion": 3
},
{
"name": "在Salesforce中创建潜在客户",
"type": "n8n-nodes-base.salesforce",
"position": [
1110,
300
],
"parameters": {
"fields": {
"additionalFields": {
"Email": "={{$nodes[\"Prepare CRM Data\"].json.email}}",
"Phone": "={{$nodes[\"Prepare CRM Data\"].json.phone_number}}",
"Company": "Lead from Facebook",
"LastName": "={{$nodes[\"Prepare CRM Data\"].json.lastName}}",
"FirstName": "={{$nodes[\"Prepare CRM Data\"].json.firstName}}",
"LeadSource": "Facebook Lead Ad"
}
},
"options": {},
"resource": "lead",
"operation": "create"
},
"credentials": {
"salesforceApi": {
"id": "YOUR_SALESFORCE_CREDENTIAL_ID",
"name": "Salesforce credential"
}
},
"typeVersion": 2
},
{
"name": "准备CRM数据",
"type": "n8n-nodes-base.set",
"position": [
670,
300
],
"parameters": {
"values": {
"string": [
{
"name": "firstName",
"value": "={{ $json.full_name.split(' ').slice(0, -1).join(' ') || $json.full_name }}"
},
{
"name": "lastName",
"value": "={{ $json.full_name.split(' ').pop() }}"
}
]
},
"options": {
"dotNotation": true
}
},
"typeVersion": 2
},
{
"name": "在表格中更新状态",
"type": "n8n-nodes-base.googleSheets",
"position": [
1330,
300
],
"parameters": {
"key": "LeadID",
"value": "={{$nodes[\"Log Lead to Google Sheets\"].json.LeadID}}",
"columns": {
"values": [
{
"value": "Synced to Salesforce",
"column": "CRM_Status"
}
]
},
"options": {},
"sheetName": "={{$nodes[\"Log Lead to Google Sheets\"].parameters.sheetName}}",
"documentId": "={{$nodes[\"Log Lead to Google Sheets\"].parameters.documentId}}"
},
"credentials": {
"googleSheetsApi": {
"id": "YOUR_GOOGLE_CREDENTIAL_ID",
"name": "Google Sheets credential"
}
},
"typeVersion": 3
}
],
"active": false,
"settings": {},
"connections": {
"Facebook Lead Ad": {
"main": [
[
{
"node": "Prepare CRM Data",
"type": "main",
"index": 0
}
]
]
},
"Prepare CRM Data": {
"main": [
[
{
"node": "Log Lead to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Create Lead in Salesforce": {
"main": [
[
{
"node": "Update Status in Sheet",
"type": "main",
"index": 0
}
]
]
},
"Log Lead to Google Sheets": {
"main": [
[
{
"node": "Create Lead in Salesforce",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 潜在客户开发
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4o和Google Sheets的自动公司研究和线索丰富
使用GPT-4o和Google Sheets的自动公司研究和线索丰富
Set
Merge
Google Sheets
+9
22 节点Candra Reza
潜在客户开发
高级SEO、核心网页指标和聊天机器人自动化套件
使用GPT-4顾问、PageSpeed Insights和Slack提醒审核和监控SEO性能
If
Set
Cron
+12
22 节点Candra Reza
市场调研
基于AI的潜在客户生成(Apollo、LinkedIn研究和4步个性化邮件)
基于AI的潜在客户生成:使用Apollo、LinkedIn研究和4步个性化邮件
If
Set
Code
+8
30 节点Gain FLow AI
潜在客户开发
11 - B2B 情报上传链接
使用 GPT-4o-mini 自动丰富并同步 Google Sheets 中的公司信息到 HubSpot
If
Set
Hubspot
+4
13 节点Avkash Kakdiya
潜在客户开发
使用Apify、Google Gemini和Sheets实时自动化Upwork提案生成
使用Apify、Google Gemini和Sheets自动化AI Upwork提案生成
If
Set
Gmail
+8
25 节点Intuz
潜在客户开发
潜在客户开发与邮件工作流
使用Google Maps、SendGrid和AI自动化B2B潜在客户开发与邮件营销
If
Set
Code
+21
141 节点Ezema Kingsley Chibuzo
潜在客户开发