Files
demo-insurance-manager-quet…/wk-seguros-n8n-workflow.json
T

122 lines
2.7 KiB
JSON

{
"name": "WK Seguros Bot",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "wk-seguros",
"responseMode": "responseNode",
"options": {}
},
"id": "1a2b3c4d-0001-0001-0001-000000000001",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [250, 300]
},
{
"parameters": {
"mode": "expression",
"output": "={{ $('Switch').params.value1 }}",
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"leftValue": "={{ true }}",
"rightValue": true,
"operator": {
"type": "boolean",
"operation": "true"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "ON"
}
]
}
},
"id": "1a2b3c4d-0002-0002-0002-000000000002",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [500, 300]
},
{
"parameters": {
"method": "POST",
"url": "http://localhost:8002/webhook",
"sendBody": true,
"contentType": "json",
"body": "={{ JSON.stringify($json) }}",
"options": {}
},
"id": "1a2b3c4d-0003-0003-0003-000000000003",
"name": "FastAPI",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [750, 300]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify($json) }}",
"options": {}
},
"id": "1a2b3c4d-0004-0004-0004-000000000004",
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [1000, 300]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "FastAPI",
"type": "main",
"index": 0
}
]
]
},
"FastAPI": {
"main": [
[
{
"node": "Respond",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
}
}