{
  "name": "LeadFlow AI \u2014 04 WhatsApp Verification",
  "nodes": [
    {
      "parameters": {
        "path": "leadflow/whatsapp",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "e2b84ee8-8def-4d59-9473-984b6e8ef07f",
      "name": "WhatsApp Verification Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "=http://leadflow-api:8000/api/whatsapp/verify?hub.mode={{encodeURIComponent($json.query['hub.mode'] || '')}}&hub.verify_token={{encodeURIComponent($json.query['hub.verify_token'] || '')}}&hub.challenge={{encodeURIComponent($json.query['hub.challenge'] || '')}}",
        "options": {
          "timeout": 30000,
          "response": {
            "response": {
              "fullResponse": true,
              "responseFormat": "text"
            }
          }
        }
      },
      "id": "a54db16d-6f56-4b3b-912d-a53cdea711dc",
      "name": "Verify Token Internally",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        280,
        0
      ]
    },
    {
      "parameters": {
        "respondWith": "text",
        "responseBody": "={{ $json.body }}",
        "options": {
          "responseCode": 200
        }
      },
      "id": "b7681e8d-7dfe-4215-9ab2-bfb66052e499",
      "name": "Return Challenge",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        560,
        0
      ]
    }
  ],
  "connections": {
    "WhatsApp Verification Webhook": {
      "main": [
        [
          {
            "node": "Verify Token Internally",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify Token Internally": {
      "main": [
        [
          {
            "node": "Return Challenge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "27f34a8f-c847-4b86-b0a5-56ddbc516a70",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": [],
  "id": "01e05d2f-bd31-4ab4-8955-47a3d4afdf22"
}