AutomationFlowsSlack & Telegram › Flujo 01 - Solicitud De Revision Por Whatsapp

Flujo 01 - Solicitud De Revision Por Whatsapp

Flujo 01 - Solicitud de Revision por WhatsApp. Uses httpRequest. Webhook trigger; 7 nodes.

Webhook trigger★★★★☆ complexity7 nodesHTTP Request
Slack & Telegram Trigger: Webhook Nodes: 7 Complexity: ★★★★☆ Added:

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 →

Download .json
{
  "name": "Flujo 01 - Solicitud de Revision por WhatsApp",
  "active": false,
  "nodes": [
    {
      "parameters": {
        "path": "solicitud-revision",
        "httpMethod": "POST",
        "responseMode": "onReceived"
      },
      "id": "webhook-whatsapp",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "const text = $json.text || ''; const match = text.match(/ACT-\\d{4}-\\d+/i); return [{ json: { ...$json, codigoActivo: match ? match[0].toUpperCase() : null } }];"
      },
      "id": "extraer-codigo",
      "name": "Extraer Codigo Activo",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$env.MS1_GRAPHQL_URL}}",
        "sendBody": true,
        "contentType": "json",
        "jsonBody": "={\"query\":\"query BuscarActivoPorCodigo($codigo: String!) { activoPorCodigo(codigo: $codigo) { id codigo nombre estado } }\",\"variables\":{\"codigo\":\"{{$json.codigoActivo}}\"}}"
      },
      "id": "consultar-ms1",
      "name": "Consultar Activo MS1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        480,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$env.MS1_TICKETS_URL}}",
        "sendBody": true,
        "contentType": "json",
        "jsonBody": "={\"activoId\":\"{{$json.data.activoPorCodigo.id}}\",\"solicitadoPorWhatsApp\":\"{{$node['WhatsApp Trigger'].json.from}}\",\"motivo\":\"{{$node['WhatsApp Trigger'].json.text}}\"}"
      },
      "id": "crear-ticket",
      "name": "Crear Ticket MS1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        720,
        0
      ]
    },
    {
      "parameters": {
        "url": "={{$env.MS2_BASE_URL}}/documentos?activoId={{$node['Consultar Activo MS1'].json.data.activoPorCodigo.id}}"
      },
      "id": "verificar-documentos",
      "name": "Verificar Documentos MS2",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        960,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.sendgrid.com/v3/mail/send",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{$env.SENDGRID_API_KEY}}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "json",
        "jsonBody": "={\"personalizations\":[{\"to\":[{\"email\":\"{{$env.RESPONSABLE_DEFAULT_EMAIL}}\"}]}],\"from\":{\"email\":\"{{$env.SENDGRID_FROM_EMAIL}}\"},\"subject\":\"Solicitud de revision {{$node['Extraer Codigo Activo'].json.codigoActivo}}\",\"content\":[{\"type\":\"text/plain\",\"value\":\"Solicitud recibida y documentos verificados en MS2.\"}]}"
      },
      "id": "sendgrid-email",
      "name": "Enviar Email SendGrid",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        1200,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$env.WAHA_BASE_URL}}/api/sendText",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key",
              "value": "={{$env.WAHA_API_KEY}}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "json",
        "jsonBody": "={\"session\":\"{{$env.WAHA_SESSION || 'default'}}\",\"chatId\":\"{{$node['WhatsApp Trigger'].json.from.includes('@') ? $node['WhatsApp Trigger'].json.from : $node['WhatsApp Trigger'].json.from.replace(/[^0-9]/g, '') + '@c.us'}}\",\"text\":\"Tu solicitud de revision fue recibida.\"}"
      },
      "id": "responder-whatsapp",
      "name": "Responder WhatsApp",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        1440,
        0
      ]
    }
  ],
  "connections": {
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Extraer Codigo Activo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extraer Codigo Activo": {
      "main": [
        [
          {
            "node": "Consultar Activo MS1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consultar Activo MS1": {
      "main": [
        [
          {
            "node": "Crear Ticket MS1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crear Ticket MS1": {
      "main": [
        [
          {
            "node": "Verificar Documentos MS2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verificar Documentos MS2": {
      "main": [
        [
          {
            "node": "Enviar Email SendGrid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enviar Email SendGrid": {
      "main": [
        [
          {
            "node": "Responder WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Flujo 01 - Solicitud de Revision por WhatsApp. Uses httpRequest. Webhook trigger; 7 nodes.

Source: https://github.com/borysinho/microservicios-activos-fijos/blob/92ff8ff3508a72c9a91aff60996728c20da6b7dd/ms3/n8n-workflows/flujo_01_solicitud_revision.json — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

HR teams, IT Operations, and System Administrators managing employee onboarding at scale. It’s perfect if you use Odoo 18 to trigger account requests and need Redmine + GitLab accounts created instant

HTTP Request, Slack
Slack & Telegram

This workflow is a complete, production-ready solution for recovering abandoned carts in Shopify stores using a multi-channel, multi-touch approach. It automates personalized follow-ups via Email, SMS

HTTP Request, Shopify, SendGrid +5
Slack & Telegram

WF_UNIFIED_LEGAL_AUTOMATION. Uses googleSheets, httpRequest, telegram, telegramTrigger. Webhook trigger; 53 nodes.

Google Sheets, HTTP Request, Telegram +1
Slack & Telegram

qualiopi. Uses airtable, telegram, emailSend, httpRequest. Webhook trigger; 51 nodes.

Airtable, Telegram, Email Send +3
Slack & Telegram

This workflow automates end-to-end research analysis by coordinating multiple AI models—including NVIDIA NIM (Llama), OpenAI GPT-4, and Claude to analyze uploaded documents, extract insights, and gene

HTTP Request, Postgres, Slack +1