{ "nodes": [ { "name": "Function", "type": "n8n-nodes-base.function", "position": [ -280, -80 ], "parameters": { "functionCode": "// Code here will run only once, no matter how many input items there are.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.function\n\n// Loop over inputs and add a new field called 'myNewField' to the JSON of each one\nc_id = items[0].json.headers['x-adobesign-clientid'];\n\nfor (item of items) {\n item.json.myNewField = 1;\n item.json.clientID = c_id;\n}\n\nreturn items;" }, "typeVersion": 1, "id": "node-91611a30" }, { "name": "POST", "type": "n8n-nodes-base.webhook", "position": [ -540, -160 ], "webhookId": "dfe2a7a8-c0f7-41e1-9bf7-15e2b6e98741", "parameters": { "path": "test1", "options": {}, "httpMethod": "POST", "responseMode": "responseNode" }, "typeVersion": 1, "id": "node-d9cc7851" }, { "name": "reg-GET", "type": "n8n-nodes-base.webhook", "position": [ -540, 20 ], "webhookId": "5356a36b-1090-4470-ad87-7cfdb6c18daf", "parameters": { "path": "test1", "options": {}, "responseMode": "responseNode" }, "typeVersion": 1, "id": "node-05d59574" }, { "name": "webhook-response", "type": "n8n-nodes-base.respondToWebhook", "position": [ -100, -80 ], "parameters": { "options": { "responseHeaders": { "entries": [ { "name": "x-adobesign-clientid", "value": "={{$node[\"Function\"].json[\"clientID\"]}}" } ] } } }, "typeVersion": 1, "id": "node-6f7ae306" }, { "name": "SetWebhookData", "type": "n8n-nodes-base.set", "position": [ 60, -80 ], "parameters": { "values": { "string": [ { "name": "webhookData", "value": "={{ $item(\"0\").$node[\"webhook-response\"].json[\"body\"] }}" }, { "name": "agreement_ID", "value": "={{ $item(\"0\").$node[\"webhook-response\"].json[\"body\"][\"agreement\"][\"id\"] }}" }, { "name": "all_participants", "value": "={{ $item(\"0\").$node[\"webhook-response\"].json[\"body\"][\"agreement\"][\"participantSetsInfo\"] }}" }, { "name": "agreement_status", "value": "={{ $item(\"0\").$node[\"webhook-response\"].json[\"body\"][\"agreement\"][\"status\"] }}" } ] }, "options": {}, "keepOnlySet": true }, "typeVersion": 1, "id": "node-9c96f003" }, { "id": "error-585b28ac", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "connections": {}, "name": "Production Workflow", "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3 }, "meta": { "instanceId": "workflow-cdc7a870", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:51.576300", "updatedAt": "2025-09-29T07:07:51.576311", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "description": "Production-ready workflow: Production Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }