⚡自动工作流定位!
高级
这是一个Other领域的自动化工作流,包含 34 个节点。主要使用 If, N8n, Switch, Webhook, HttpRequest 等节点。 ⚡自动工作流定位!
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (34)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"nodes": [
{
"id": "25a059ad-c3d1-4848-a729-cbb50254e94a",
"name": "When clicking ‘Test workflow’",
"type": "n8n-nodes-base.manualTrigger",
"position": [
40,
980
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3ae8469e-cbb4-436a-b5c2-2e6a146c5666",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
600
],
"parameters": {
"color": 7,
"width": 2160,
"height": 1540,
"content": "# Try me out !\n## Dummy Ugly Workflow\n---\nTry mixing it up of changing some connections to see how this workflow gets positionned !\n\n1. **Save this workfow** (Ctrl + S)\n2. **Execute the Magic Positioning Node**\n3. **Reload the page** (Ctrl + R)\n..watch the magic !"
},
"typeVersion": 1
},
{
"id": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
480,
1420
],
"parameters": {
"options": {}
},
"typeVersion": 1.2
},
{
"id": "56293367-e676-44d6-ac05-8432c8181299",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
420,
1660
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "3",
"name": "Together.ai (lucas.photos)"
}
},
"typeVersion": 1
},
{
"id": "cacdff1d-f65d-40f3-b0b5-9913a8e249ed",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
880,
1760
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "9ccd8613-ded7-421a-bf2d-95e6465d9a34",
"name": "Vector Store Retriever",
"type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
"position": [
1780,
1800
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cc5df13b-2d2e-4c59-b3e3-dfbcbffcfdf9",
"name": "In-Memory Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"position": [
1060,
1880
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8c71b8fc-0699-4000-8021-fab3529690c6",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
1660,
1940
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "3",
"name": "Together.ai (lucas.photos)"
}
},
"typeVersion": 1.1
},
{
"id": "83bbca90-f9aa-4aae-9f1b-68d7eb1e7272",
"name": "Question and Answer Chain",
"type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
"position": [
760,
1540
],
"parameters": {
"options": {}
},
"typeVersion": 1.4
},
{
"id": "6d124c93-a476-4b54-ad65-391eaf948605",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
1360,
1220
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5f1ec5b3-385c-4421-9791-a612f61cc634",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "737211eb-e4e2-4bb2-a32b-a6d819e158ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "3a420a92-cd22-46d4-b2fa-1dffa6b28374",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "29c0fce3-aefb-4caf-a076-a548c108b641",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "886142ac-822e-4e25-875c-65632f682140",
"name": "IF",
"type": "n8n-nodes-base.if",
"position": [
440,
1480
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3a247df2-ea43-40f0-a395-0ce160fcbc92",
"name": "Dummy Node",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1360,
1520
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "53e46b03-026a-4645-b9c7-e913eea62fe9",
"name": "Dummy Node (1)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
700,
900
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "0d9a5f0a-e224-41b9-8ef0-4ba16e71c237",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
920,
980
],
"parameters": {
"options": {},
"batchSize": "=1"
},
"typeVersion": 3
},
{
"id": "2442eccb-8f95-4c2d-ae93-7e216e93e7f4",
"name": "Dummy Node (2)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1140,
940
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "2de8782c-f848-44cc-87b1-307506cdca38",
"name": "Dummy Node (3)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
700,
1200
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "f1bb16c1-b330-4208-b629-5a6e074b9178",
"name": "Dummy Node (4)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
900,
1460
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "93c393c5-d258-431e-ba22-c7de7f6560f1",
"name": "Dummy Node (5)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1140,
1200
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "c55e1584-4bab-4406-9b6c-a7ba96828c4b",
"name": "Dummy Node (6)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1580,
980
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "612a7a10-242e-4bd0-b4bd-6089e1fcd78b",
"name": "Dummy Node (7)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1780,
1300
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "eb5d2519-2f1e-4841-b8e8-58333cf9293d",
"name": "Dummy Node (8)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1340,
1720
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "661d3849-155b-4911-b923-4cd2a4227202",
"name": "Dummy Node (9)",
"type": "n8n-nodes-base.noOp",
"notes": "Big description of what happens here",
"position": [
1580,
1640
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "af2cca30-302d-47e1-bebc-3f6a92cef939",
"name": "Dummy Tool",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
720,
1660
],
"parameters": {
"url": "https://www.example.com"
},
"typeVersion": 1.1
},
{
"id": "7dded6b7-c60a-45e4-a49f-338bf4b549b8",
"name": "Dummy Tool (1)",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
680,
1760
],
"parameters": {
"url": "https://www.example.com"
},
"typeVersion": 1.1
},
{
"id": "d4f0d637-abda-4e79-ae6b-7af7050d6768",
"name": "OpenAI Chat Model (1)",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1360,
1880
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "3",
"name": "Together.ai (lucas.photos)"
}
},
"typeVersion": 1
},
{
"id": "e5ea3f5b-cd91-49b6-9191-f60a0d19bf40",
"name": "Update n8n Workflow",
"type": "n8n-nodes-base.n8n",
"position": [
700,
380
],
"parameters": {
"operation": "update",
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $('POST /workflow/magic/position/id').last().json.body.workflow_id }}"
},
"requestOptions": {},
"workflowObject": "={{ $json.toJsonString() }}"
},
"credentials": {
"n8nApi": {
"id": "10",
"name": "n8n account"
}
},
"typeVersion": 1
},
{
"id": "5df2795d-f1fa-437f-9444-92a0ec4003da",
"name": "Magic Positioning IA2S",
"type": "n8n-nodes-base.httpRequest",
"position": [
480,
380
],
"parameters": {
"url": "https://api.ia2s.app/webhook/workflow/magic/position",
"method": "POST",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "workflow",
"value": "={{ $json }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "f6820c3e-d0ec-45ef-92ce-b6a7466997fb",
"name": "POST /workflow/magic/position/id",
"type": "n8n-nodes-base.webhook",
"position": [
40,
380
],
"webhookId": "3f637a82-df5e-4580-b1af-81ebec0b345a",
"parameters": {
"path": "workflow/magic/positioning/id",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "f0a4176b-1fa4-4884-8a51-ecc00af7d246",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
-60
],
"parameters": {
"color": 6,
"width": 300,
"height": 380,
"content": "## Put this node in any workflow.\n1. **Save the workfow** (Ctrl + S)\n2. **Execute the Magic Positioning Node**\n3. **Reload the page** (Ctrl + R)\n..and voilà !"
},
"typeVersion": 1
},
{
"id": "20d8af29-e07a-4205-a7b6-223b2cdb801a",
"name": "Get n8n Workflow",
"type": "n8n-nodes-base.n8n",
"position": [
260,
380
],
"parameters": {
"operation": "get",
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.body.workflow_id }}"
},
"requestOptions": {}
},
"credentials": {
"n8nApi": {
"id": "10",
"name": "n8n account"
}
},
"typeVersion": 1
},
{
"id": "468a95e2-11bc-4bf6-be8a-4eb5f89654ef",
"name": "Simple Webhook Response",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
920,
380
],
"parameters": {
"options": {},
"respondWith": "text",
"responseBody": "Workflow Updated"
},
"typeVersion": 1.1
},
{
"id": "496ba599-cf72-4ba1-8e50-2e369f199b6f",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
80,
1260
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "107e6cb3-673b-4554-b42c-c9d2d7a00ce9",
"name": "Magic Positioning",
"type": "n8n-nodes-base.httpRequest",
"position": [
40,
160
],
"parameters": {
"url": "=https://{{ \"n8n.your-instance-url.com\" }}/webhook/workflow/magic/positioning/id",
"method": "POST",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "workflow_id",
"value": "={{ $workflow.id }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "55e8a9fc-1699-4890-b73e-a6201259a559",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-60
],
"parameters": {
"color": 5,
"width": 400,
"height": 380,
"content": "# Setup :\n---\n\n1. **Open the Webhook node** \n('Post /workflow/magic/position/id')\n2. Copy the **Production URL**\n3. Go to the **'Magic Positioning' Http Request** Node\n4. **Paste the URL**\n5. Select your **n8n credentials** in the n8n nodes"
},
"typeVersion": 1
}
],
"pinData": {
"POST /workflow/magic/position/id": [
{
"body": {
"workflow_id": "zwa7VqGx8GrqsPhb"
},
"query": {},
"params": {},
"headers": {
"host": "api.ia2s.app",
"accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7",
"user-agent": "axios/1.7.4",
"content-type": "application/json",
"content-length": "34",
"accept-encoding": "gzip, compress, deflate, br",
"x-forwarded-for": "172.25.0.1",
"x-forwarded-host": "api.ia2s.app",
"x-forwarded-proto": "https"
},
"webhookUrl": "https://api.ia2s.app/webhook/workflow/magic/positioning/id",
"executionMode": "production"
}
]
},
"connections": {
"886142ac-822e-4e25-875c-65632f682140": {
"main": [
[
{
"node": "3a247df2-ea43-40f0-a395-0ce160fcbc92",
"type": "main",
"index": 0
}
],
[
{
"node": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"type": "main",
"index": 0
}
]
]
},
"6d124c93-a476-4b54-ad65-391eaf948605": {
"main": [
[
{
"node": "c55e1584-4bab-4406-9b6c-a7ba96828c4b",
"type": "main",
"index": 0
}
],
[
{
"node": "612a7a10-242e-4bd0-b4bd-6089e1fcd78b",
"type": "main",
"index": 0
}
],
[
{
"node": "eb5d2519-2f1e-4841-b8e8-58333cf9293d",
"type": "main",
"index": 0
}
],
[
{
"node": "661d3849-155b-4911-b923-4cd2a4227202",
"type": "main",
"index": 0
}
],
[
{
"node": "83bbca90-f9aa-4aae-9f1b-68d7eb1e7272",
"type": "main",
"index": 0
}
]
]
},
"3a247df2-ea43-40f0-a395-0ce160fcbc92": {
"main": [
[
{
"node": "53e46b03-026a-4645-b9c7-e913eea62fe9",
"type": "main",
"index": 0
},
{
"node": "2de8782c-f848-44cc-87b1-307506cdca38",
"type": "main",
"index": 0
}
]
]
},
"af2cca30-302d-47e1-bebc-3f6a92cef939": {
"ai_tool": [
[
{
"node": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"type": "ai_tool",
"index": 0
}
]
]
},
"53e46b03-026a-4645-b9c7-e913eea62fe9": {
"main": [
[
{
"node": "0d9a5f0a-e224-41b9-8ef0-4ba16e71c237",
"type": "main",
"index": 0
}
]
]
},
"2442eccb-8f95-4c2d-ae93-7e216e93e7f4": {
"main": [
[
{
"node": "6d124c93-a476-4b54-ad65-391eaf948605",
"type": "main",
"index": 0
}
]
]
},
"2de8782c-f848-44cc-87b1-307506cdca38": {
"main": [
[
{
"node": "f1bb16c1-b330-4208-b629-5a6e074b9178",
"type": "main",
"index": 0
}
]
]
},
"93c393c5-d258-431e-ba22-c7de7f6560f1": {
"main": [
[
{
"node": "0d9a5f0a-e224-41b9-8ef0-4ba16e71c237",
"type": "main",
"index": 0
}
]
]
},
"7dded6b7-c60a-45e4-a49f-338bf4b549b8": {
"ai_tool": [
[
{
"node": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"type": "ai_tool",
"index": 0
}
]
]
},
"0d9a5f0a-e224-41b9-8ef0-4ba16e71c237": {
"main": [
[
{
"node": "2442eccb-8f95-4c2d-ae93-7e216e93e7f4",
"type": "main",
"index": 0
}
],
[
{
"node": "93c393c5-d258-431e-ba22-c7de7f6560f1",
"type": "main",
"index": 0
}
]
]
},
"20d8af29-e07a-4205-a7b6-223b2cdb801a": {
"main": [
[
{
"node": "5df2795d-f1fa-437f-9444-92a0ec4003da",
"type": "main",
"index": 0
}
]
]
},
"496ba599-cf72-4ba1-8e50-2e369f199b6f": {
"main": [
[
{
"node": "886142ac-822e-4e25-875c-65632f682140",
"type": "main",
"index": 0
}
]
]
},
"8c71b8fc-0699-4000-8021-fab3529690c6": {
"ai_embedding": [
[
{
"node": "cc5df13b-2d2e-4c59-b3e3-dfbcbffcfdf9",
"type": "ai_embedding",
"index": 0
}
]
]
},
"56293367-e676-44d6-ac05-8432c8181299": {
"ai_languageModel": [
[
{
"node": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"e5ea3f5b-cd91-49b6-9191-f60a0d19bf40": {
"main": [
[
{
"node": "468a95e2-11bc-4bf6-be8a-4eb5f89654ef",
"type": "main",
"index": 0
}
]
]
},
"cacdff1d-f65d-40f3-b0b5-9913a8e249ed": {
"ai_memory": [
[
{
"node": "4a67e81f-1638-4047-b9e7-85247f4cc291",
"type": "ai_memory",
"index": 0
}
]
]
},
"d4f0d637-abda-4e79-ae6b-7af7050d6768": {
"ai_languageModel": [
[
{
"node": "83bbca90-f9aa-4aae-9f1b-68d7eb1e7272",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"cc5df13b-2d2e-4c59-b3e3-dfbcbffcfdf9": {
"ai_vectorStore": [
[
{
"node": "9ccd8613-ded7-421a-bf2d-95e6465d9a34",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"5df2795d-f1fa-437f-9444-92a0ec4003da": {
"main": [
[
{
"node": "e5ea3f5b-cd91-49b6-9191-f60a0d19bf40",
"type": "main",
"index": 0
}
]
]
},
"9ccd8613-ded7-421a-bf2d-95e6465d9a34": {
"ai_retriever": [
[
{
"node": "83bbca90-f9aa-4aae-9f1b-68d7eb1e7272",
"type": "ai_retriever",
"index": 0
}
]
]
},
"f6820c3e-d0ec-45ef-92ce-b6a7466997fb": {
"main": [
[
{
"node": "20d8af29-e07a-4205-a7b6-223b2cdb801a",
"type": "main",
"index": 0
}
]
]
},
"25a059ad-c3d1-4848-a729-cbb50254e94a": {
"main": [
[
{
"node": "886142ac-822e-4e25-875c-65632f682140",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 其他
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+
If
Ftp
Set
113 节点I versus AI
其他
AI 代理餐厅 [模板]
🤖 WhatsApp、Instagram 和 Messenger 的 AI 餐厅助手
If
N8n
Set
+
If
N8n
Set
239 节点Amanda Benks
其他
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+
If
N8n
Set
244 节点Amanda Benks
销售
高级AI演示(在AI开发者第14次聚会中展示)
高级AI演示(在AI开发者第14次聚会中展示)
If
Code
Gmail
+
If
Code
Gmail
39 节点Max Tkacz
构建模块
AI智能助手:与Supabase存储和Google Drive文件对话
AI智能助手:与Supabase存储和Google Drive文件对话
If
Set
Wait
+
If
Set
Wait
62 节点Mark Shcherbakov
工程
🐶 宠物店预约 AI 代理
🐶 宠物店预约 AI 代理
If
Set
Code
+
If
Set
Code
187 节点Bruno Dias
人工智能
工作流信息
难度等级
高级
节点数量34
分类1
节点类型19
作者
Lucas Peyrin
@lucaspeyrinInnovative builder with a passion for crafting automation solutions that solve real-world challenges. From streamlining workflows to driving efficiency, my work empowers teams and individuals to achieve more with less effort. Experienced in developing scalable tools and strategies that deliver results.
外部链接
在 n8n.io 查看 →
分享此工作流