Our n8n version is 2.11.2
Main Workflow:
{
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
11808,
3648
],
“id”: “38b2d2e0-aeb8-417f-98f4-249f07a354b3”,
“name”: “Main Trigger”
},
{
“parameters”: {
“method”: “POST”,
“url”: “=http://localhost:5678/webhook/webhook”,
“sendQuery”: true,
“queryParameters”: {
“parameters”: [
{}
]
},
“sendBody”: true,
“specifyBody”: “json”,
“jsonBody”: “={{ $json }}”,
“options”: {
“timeout”: 3600000
}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
12048,
3648
],
“id”: “41f529d3-c8ae-4133-8a6b-6943cb2a099b”,
“name”: “Webhook Trigger”,
“alwaysOutputData”: true,
“executeOnce”: false
}
],
“connections”: {
“Main Trigger”: {
“main”: [
[
{
“node”: “Webhook Trigger”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “88bde7fa62561e3aec0da846cf229a3a76f95f30f2806f08f58d1a534d2f0004”
}
}
Webhook Workflow:
{
“nodes”: [
{
“parameters”: {
“httpMethod”: “POST”,
“path”: “webhook”,
“options”: {}
},
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 2.1,
“position”: [
12240,
3792
],
“id”: “bd3044b3-10cb-4c67-8c2f-5b718d5f3832”,
“name”: “Webhook”,
“webhookId”: “d8370d0f-c16c-426e-9860-dc16a3fb83e9”
},
{
“parameters”: {
“resume”: “form”,
“formTitle”: “Test Approval”,
“formFields”: {
“values”: [
{
“fieldLabel”: “Approve or Decline”,
“fieldType”: “radio”,
“defaultValue”: “Approve”,
“fieldOptions”: {
“values”: [
{
“option”: “Approve”
},
{
“option”: “Decline”
}
]
},
“requiredField”: true
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.wait”,
“typeVersion”: 1.1,
“position”: [
12448,
3792
],
“id”: “a47ae90f-266a-449f-8591-5db76a848361”,
“name”: “Wait”,
“webhookId”: “1fe40694-d64a-4823-a7ea-30af1a85e5b9”
}
],
“connections”: {
“Webhook”: {
“main”: [
[
{
“node”: “Wait”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “88bde7fa62561e3aec0da846cf229a3a76f95f30f2806f08f58d1a534d2f0004”
}
}