UniPile LinkedIn个人资料查询子工作流
这是一个自动化工作流,包含 9 个节点。主要使用 Set, Aggregate, HttpRequest, ExecuteWorkflowTrigger 等节点。 UniPile LinkedIn个人资料查询子工作流
- •可能需要目标 API 的认证凭证
分类
{
"meta": {
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
},
"nodes": [
{
"id": "f87a2a83-11c2-40f6-9b80-c1c13cb1d71f",
"name": "当被另一个工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-560,
-100
],
"parameters": {
"workflowInputs": {
"values": [
{
"name": "sender"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "43349b3c-cdc8-445b-8f03-6e42d19ccce9",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-840,
-500
],
"parameters": {
"color": 7,
"width": 1386,
"height": 840,
"content": ""
},
"typeVersion": 1
},
{
"id": "880c3f22-bb81-4311-bcf2-6943dd7a0988",
"name": "从 Unipile 获取 LinkedIn 用户数据",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueErrorOutput",
"position": [
-360,
-100
],
"parameters": {
"url": "=https://api9.unipile.com:13976/api/v1/users/{{ $json.sender }}",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "account_id",
"value": "-oWmWRkASjKGUZadYcjcyg"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "VfYHlcsosNuUS2YD",
"name": "unipile angel"
}
},
"typeVersion": 4.2
},
{
"id": "0e15d998-a820-48d6-80fe-56331df2998d",
"name": "设置来自 Unipile 的用户数据",
"type": "n8n-nodes-base.set",
"position": [
-100,
-240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "aee91408-b68d-472e-8c3e-89260dd38c1c",
"name": "first_name",
"type": "string",
"value": "={{ $json.first_name }}"
},
{
"id": "57b3be6f-ba76-48c3-8f2e-1d9bb03d0dd5",
"name": "last_name",
"type": "string",
"value": "={{ $json.last_name }}"
},
{
"id": "75167f30-96d6-4442-9542-9d1b8e17fcb6",
"name": "headline",
"type": "string",
"value": "={{ $json.headline }}"
},
{
"id": "3e8bccc1-04a9-49f6-8053-eba22fe8d2f4",
"name": "websites",
"type": "array",
"value": "={{ $json.websites }}"
},
{
"id": "2e3dd2fe-5f71-4d19-bee8-085dd9bfc18c",
"name": "follower_count",
"type": "number",
"value": "={{ $json.follower_count }}"
},
{
"id": "ac5cc567-3c4f-481c-b229-9dc1e48d39fb",
"name": "connections_count",
"type": "number",
"value": "={{ $json.connections_count }}"
},
{
"id": "6bad07a6-4641-48cb-b436-fb735319865f",
"name": "location",
"type": "string",
"value": "={{ $json.location }}"
},
{
"id": "029fa351-f49f-4388-a59e-5719fcf8a506",
"name": "profile_picture_url",
"type": "string",
"value": "={{ $json.profile_picture_url }}"
},
{
"id": "2f96dca6-acee-41c0-83b5-00cd406d3301",
"name": "is_influencer",
"type": "boolean",
"value": "={{ $json.is_influencer }}"
},
{
"id": "4278e070-ce56-4993-b637-57ac60e83a49",
"name": "is_premium",
"type": "boolean",
"value": "={{ $json.is_premium }}"
},
{
"id": "b92c38f1-1423-4b7e-a807-320d13e0a944",
"name": "shared_connections_count",
"type": "number",
"value": "={{ $json.shared_connections_count }}"
},
{
"id": "96b24500-e6a4-444a-806c-0b61a1f00407",
"name": "type",
"type": "string",
"value": "user"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "5eca56b3-e771-40c7-8415-2b9553a281ec",
"name": "分组到一个对象 - 用户",
"type": "n8n-nodes-base.aggregate",
"position": [
80,
-240
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData",
"destinationFieldName": "linkedinprofile"
},
"typeVersion": 1
},
{
"id": "778e02d4-a6ab-4eaf-98e1-840cc09aa773",
"name": "从 Unipile 获取 LinkedIn 组织数据",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueErrorOutput",
"position": [
-100,
-20
],
"parameters": {
"url": "=https://api9.unipile.com:13976/api/v1/linkedin/company/{{ $json.sender }}",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "account_id",
"value": "-oWmWRkASjKGUZadYcjcyg"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "VfYHlcsosNuUS2YD",
"name": "unipile angel"
}
},
"typeVersion": 4.2
},
{
"id": "acd3ec80-4e8e-4539-bc06-b21e1aa63774",
"name": "设置来自 Unipile 的 LinkedIn 组织数据",
"type": "n8n-nodes-base.set",
"position": [
180,
-40
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "aee91408-b68d-472e-8c3e-89260dd38c1c",
"name": "first_name",
"type": "string",
"value": "={{ $json.name }}"
},
{
"id": "57b3be6f-ba76-48c3-8f2e-1d9bb03d0dd5",
"name": "last_name",
"type": "string",
"value": "="
},
{
"id": "75167f30-96d6-4442-9542-9d1b8e17fcb6",
"name": "headline",
"type": "string",
"value": "={{ $json.description }}"
},
{
"id": "3e8bccc1-04a9-49f6-8053-eba22fe8d2f4",
"name": "websites",
"type": "string",
"value": "={{ $json.website }}"
},
{
"id": "2e3dd2fe-5f71-4d19-bee8-085dd9bfc18c",
"name": "follower_count",
"type": "number",
"value": "={{ $json.followers_count }}"
},
{
"id": "ac5cc567-3c4f-481c-b229-9dc1e48d39fb",
"name": "employee_count",
"type": "number",
"value": "={{ $json.employee_count_range.from }}"
},
{
"id": "6bad07a6-4641-48cb-b436-fb735319865f",
"name": "location",
"type": "string",
"value": "={{ $json.locations[0].street.join(' ') }}, {{ $json.locations[0].city }} {{ $json.locations[0].area }}, {{ $json.locations[0].postalCode }} {{ $json.locations[0].country }}."
},
{
"id": "89035aa7-e7bb-46eb-9f4b-633e2c17478a",
"name": "hashtags",
"type": "array",
"value": "={{ $json.hashtags }}"
},
{
"id": "25b0abe6-aef7-4d6f-88ea-5fcbd3472089",
"name": "profile_picture_url",
"type": "string",
"value": "={{ $json.logo }}"
},
{
"id": "decf44b7-520e-4977-9df5-276c5117d8e4",
"name": "type",
"type": "string",
"value": "organization"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "ad3d70cf-adec-47d0-a0d2-48ddaf4d11fb",
"name": "分组到一个对象 - 组织",
"type": "n8n-nodes-base.aggregate",
"position": [
380,
-40
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData",
"destinationFieldName": "linkedinprofile"
},
"typeVersion": 1
},
{
"id": "45516b60-4465-4140-adbc-df9bf66b22ef",
"name": "设置无法找到数据对象",
"type": "n8n-nodes-base.set",
"position": [
180,
160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "438518ca-d55a-45d5-9210-0c53de7ae108",
"name": "linkedinprofile",
"type": "string",
"value": "Unable to find LinkedIn Data"
}
]
}
},
"typeVersion": 3.4
}
],
"pinData": {},
"connections": {
"Group in one object - Org": {
"main": [
[]
]
},
"Group in one object - User": {
"main": [
[]
]
},
"Set User Data from Unipile": {
"main": [
[
{
"node": "Group in one object - User",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Get Linkedin User Data from Unipile",
"type": "main",
"index": 0
}
]
]
},
"Get Linkedin Org Data from Unipile": {
"main": [
[
{
"node": "Set Linkedin Org Data from Unipile",
"type": "main",
"index": 0
}
],
[
{
"node": "Set unable to find data object",
"type": "main",
"index": 0
}
]
]
},
"Set Linkedin Org Data from Unipile": {
"main": [
[
{
"node": "Group in one object - Org",
"type": "main",
"index": 0
}
]
]
},
"Get Linkedin User Data from Unipile": {
"main": [
[
{
"node": "Set User Data from Unipile",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Linkedin Org Data from Unipile",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Angel Menendez
@djangelicAngel Menendez is a Staff Developer Advocate at n8n.io, specializing in low-code tools for cybersecurity workflows. From Puerto Rico, Angel's tech journey began by helping his father translate technical books. He later started a web development business and transitioned from a career as a flight attendant to cybersecurity engineering. His workflows have saved companies significant time. Outside work, Angel enjoys time with his two sons, riding electric bikes, reading, and exploring new places.
分享此工作流