This workflow follows the Execute Workflow Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "KALELE_DERIVAR_ENCARGADA",
"nodes": [
{
"parameters": {
"inputSource": "passthrough"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "trg-der-001",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"jsCode": "// Normaliza la entrada: subscriber_id puede venir como n\u00famero o string,\n// si no viene lo dejamos en 0 (solo para que el JSON sea v\u00e1lido en pruebas).\nconst trg = $input.first().json || {};\nreturn [{\n json: {\n subscriber_id: trg.subscriber_id ? String(trg.subscriber_id) : '0',\n motivo: trg.motivo || 'derivaci\u00f3n general',\n resumen: trg.resumen || 'sin resumen'\n }\n}];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
220,
0
],
"id": "code-norm-001",
"name": "Normalizar input"
},
{
"parameters": {
"method": "POST",
"url": "https://api.manychat.com/fb/subscriber/addTag",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "keypair",
"bodyParameters": {
"parameters": [
{
"name": "subscriber_id",
"value": "={{ Number($json.subscriber_id) }}"
},
{
"name": "tag_name",
"value": "ATENCION_HUMANA"
}
]
},
"options": {
"response": {
"response": {
"neverError": true
}
},
"timeout": 15000
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
460,
0
],
"id": "http-der-001",
"name": "Etiquetar en ManyChat",
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "der-out-1",
"name": "respuesta",
"value": "Clienta derivada a encargada. Tag ATENCION_HUMANA aplicado en ManyChat. Revisar inbox para atender personalmente.",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
700,
0
],
"id": "set-der-001",
"name": "Edit Fields"
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Normalizar input",
"type": "main",
"index": 0
}
]
]
},
"Normalizar input": {
"main": [
[
{
"node": "Etiquetar en ManyChat",
"type": "main",
"index": 0
}
]
]
},
"Etiquetar en ManyChat": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpHeaderAuth
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
KALELE_DERIVAR_ENCARGADA. Uses executeWorkflowTrigger, httpRequest. Event-driven trigger; 4 nodes.
Source: https://gist.github.com/ivanfuentes1024-dot/3a40df7d7f2605debb6c566795f31ab1 — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
02_LLM_Pipeline v1.0. Uses executeWorkflowTrigger, httpRequest, seaTable. Event-driven trigger; 65 nodes.
This template is a powerful, reusable utility for managing stateful, long-running processes. It allows a main workflow to be paused indefinitely at "checkpoints" and then be resumed by external, async
Upload files from any source to your account Kommo or AmoCRM with a simple and reusable workflow. It can split a large file into small ones and upload chunks. Works for Kommo and amoCRM There are 3 re
Remixed Backup your workflows to GitHub from Solomon's work. Check out his templates.
Remixed Backup your workflows to GitHub from Solomon's work. Check out his templates.