{
  "name": "WhatsGo - send a WhatsApp message",
  "nodes": [
    {
      "parameters": {
        "content": "## WhatsGo: send a WhatsApp message\n1. Replace YOUR_WHATSGO_TOKEN in the HTTP node (Dashboard → Device → API).\n2. POST JSON to this workflow's webhook: { \"eventId\": \"order-123\", \"phone\": \"201012345678\", \"message\": \"Your order is on its way\" }\n3. eventId is the Idempotency-Key: retries with the same id never send twice.\nIf the account has several devices add instanceId to the body.",
        "height": 220,
        "width": 420
      },
      "id": "d417e902-0109-4318-867c-852fc86fece1",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -300
      ]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "whatsgo-send",
        "options": {}
      },
      "id": "79dbc1b1-c22a-4633-b308-60656c0a51ab",
      "name": "Webhook (your event)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "6f1f3717-7d05-42c0-9ac3-7e3757311af5"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://whatsgo.business/v1/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_WHATSGO_TOKEN"
            },
            {
              "name": "Idempotency-Key",
              "value": "={{ $json.body.eventId }}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ phone: $json.body.phone, message: $json.body.message }) }}",
        "options": {}
      },
      "id": "a5e52635-2e5e-48c5-b243-c870175ada0b",
      "name": "Send via WhatsGo",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        300,
        0
      ]
    }
  ],
  "connections": {
    "Webhook (your event)": {
      "main": [
        [
          {
            "node": "Send via WhatsGo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}