{
  "name": "sendMessage",
  "nodes": [
    {
      "parameters": {
        "operation": "send",
        "phoneNumberId": "686283197897100",
        "recipientPhoneNumber": "={{ $json.targRecieve }}",
        "textBody": "={{ $json.msgText }}",
        "additionalFields": {},
        "requestOptions": {}
      },
      "type": "n8n-nodes-base.whatsApp",
      "typeVersion": 1,
      "position": [
        220,
        0
      ],
      "id": "21da5d9c-67eb-4d07-8c88-d76b24acde95",
      "name": "WhatsApp Business Cloud",
      "credentials": {
        "whatsAppApi": {
          "name": "<your credential>"
        }
      },
      "disabled": true,
      "notes": "{{ $('WAMainInput').item.json.messages[0].from.replace(/[^0-9+]/g, '').replace(/@.*/, '') }}"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "masterSendMessage",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -240,
        0
      ],
      "id": "0da24522-4879-4e96-9816-d318cdf335f6",
      "name": "WebhookTxt"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "masterSendVoice",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -20,
        -160
      ],
      "id": "da9115c1-d490-4591-ac93-d8d4bcc42532",
      "name": "WebhookVoice"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://n8n.vebmy.com/webhook/WAInput1",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $json }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        120,
        -280
      ],
      "id": "e3945497-ae1d-4a65-b712-76f5958a443b",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "updates": [
          "messages"
        ]
      },
      "type": "n8n-nodes-base.whatsAppTrigger",
      "typeVersion": 1,
      "position": [
        -340,
        -280
      ],
      "id": "432b655e-d2ac-435a-a743-876ba0975a72",
      "name": "WAMainInput",
      "credentials": {
        "whatsAppTriggerApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        660,
        -240
      ],
      "id": "3860ac3e-e4ea-434a-8f68-a0ba8c865337",
      "name": "Merge"
    },
    {
      "parameters": {
        "amount": 1.25
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -160,
        -420
      ],
      "id": "e2a9ca82-a1d5-4c42-afed-8cb01a305c69",
      "name": "Wait"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://graph.facebook.com/v17.0/{{$json.metadata.phone_number_id}}/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "<redacted-credential>"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"messaging_product\": \"whatsapp\",\n  \"status\": \"read\",\n  \"message_id\": \"{{ $json.messages[0].id }}\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        40,
        -480
      ],
      "id": "5413538f-d6e6-48b0-988e-c77d9810f74a",
      "name": "sendReadReceipt"
    }
  ],
  "connections": {
    "WebhookTxt": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WebhookVoice": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WAMainInput": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud": {
      "main": [
        []
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "sendReadReceipt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "8fd41fb6-b6b1-470d-9484-2266600ad4f5",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "R7smeE7MpEUCS3v7",
  "tags": []
}