welcome to the n8n community @CSIS_Dev
i recommend this workflow, reach out if you have any questions.
{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "azure-callback",
"responseMode": "responseNode",
"options": {}
},
"id": "f5ca2af4-dfdc-45ce-8c79-d87f386f8a03",
"name": "Receive Request from Azure",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
0,
0
],
"webhookId": "3690eef2-1947-4027-b3c7-eb5401cc6a39"
},
{
"parameters": {
"respondWith": "json",
"responseBody": "{ \"status\": \"processing\", \"message\": \"Workflow started, waiting for callback.\" }",
"options": {}
},
"id": "39859cb5-60c9-4e97-bff5-82fd56dbc662",
"name": "Respond 200 Immediately",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.5,
"position": [
224,
0
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "resultado",
"name": "resultado",
"value": "\
<__PLACEHOLDER_VALUE__Put your processing result here__>",
"type": "string"
},
{
"id": "callbackUrl",
"name": "callbackUrl",
"value": "={{ $('Receive Request from Azure').item.json.body.callbackUrl }}",
"type": "string"
}
]
},
"options": {}
},
"id": "ae23458e-7109-4600-91c4-e05ace37ac09",
"name": "Process Data",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
448,
0
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $json.callbackUrl }}",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={ \"status\": \"done\", \"resultado\": \"{{ $json.resultado }}\" }",
"options": {}
},
"id": "849a3532-bde9-41e5-b6e9-17f80bb38d96",
"name": "Send Result to Azure",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
672,
0
]
}
],
"connections": {
"Receive Request from Azure": {
"main": [
[
{
"node": "Respond 200 Immediately",
"type": "main",
"index": 0
}
]
]
},
"Respond 200 Immediately": {
"main": [
[
{
"node": "Process Data",
"type": "main",
"index": 0
}
]
]
},
"Process Data": {
"main": [
[
{
"node": "Send Result to Azure",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"aiBuilderAssisted": true,
"builderVariant": "mcp",
"instanceId": "ea0c2eec4b76caa69b4b4c5710d93f227ef34fb351dbfc568d1671e154e38c4a"
}
}