this
that
Shared 8/26/2025
241 views
Visual Workflow
JSON Code
{
"meta": {
"instanceId": "90b5247e71d873276384d2532c0cb6ac46e5e09b704d7b1a5d4a444e1d42b880"
},
"nodes": [
{
"id": "d404af6e-ab10-47ed-9b94-6dcf2e0c6602",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-224,
-160
],
"webhookId": "c470d17f-acb4-4229-a6a1-6fb6d466ac81",
"parameters": {
"path": "webhook-test/4a95c8c6-4500-4c38-abb1-66ae2b14ef3f",
"options": {}
},
"typeVersion": 1,
"webhookDescription": "Receives chatbot messages from chatbot_app.py"
},
{
"id": "1725c0cb-0d66-452b-99c3-e52a53dbe297",
"name": "Function - Generate Reply",
"type": "n8n-nodes-base.function",
"position": [
32,
-160
],
"parameters": {
"functionCode": "const message = $json[\"message\"] || \"\";\n// Example: simple echo or AI call placeholder\nreturn [{ json: { reply: `You said: ${message}` } }];"
},
"typeVersion": 1
},
{
"id": "ccd6d768-abc0-4afe-b9fd-3f2f7bad5ad3",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
288,
-160
],
"parameters": {
"options": {},
"respondWith": "lastNode"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Webhook": {
"main": [
[
{
"node": "Function - Generate Reply",
"type": "main",
"index": 0
}
]
]
},
"Function - Generate Reply": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
}
}