{
  "name": "WABridges: send a WhatsApp message",
  "nodes": [
    {
      "parameters": {
        "content": "## Send a WhatsApp message with WABridges\n\nHello-world for WABridges: one HTTP request sends a WhatsApp message from a number you paired by scanning a QR code. No Meta approval, no templates.\n\n**How it works**\n\nManual trigger → **Settings** (who to message and what to say) → **Send WhatsApp message** (HTTP Request to WABridges).\n\n**Setup**\n\n1. Create a WABridges account (free trial, no card): https://wabridges.com\n2. Dashboard → API key → create one. In n8n add a **Header Auth** credential named `WABridges API key`: name `Authorization`, value `Bearer sk_...`\n3. Open **Send WhatsApp message** and pick that credential.\n4. Click *Test workflow*. `customer_ref` is `sandbox`: a built-in simulated bridge whose contact Alice (15550001234) replies to everything. No phone needed.\n5. Going live: pair a real number on the dashboard, then set `customer_ref` to that bridge's name and `chat` to a real phone number (digits only, country code, no +).\n\nGuide with screenshots-free, field-by-field instructions: https://wabridges.com/guides/whatsapp-n8n",
        "width": 640,
        "height": 560,
        "color": 4
      },
      "id": "b0e9c1a7-8a17-5148-9dab-fb453040763b",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -880,
        -300
      ]
    },
    {
      "parameters": {},
      "id": "9d163835-a271-50db-82e1-752f214508b1",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -200,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c3383a47-dace-5e2e-96fe-e2a0997acdeb",
              "name": "customer_ref",
              "value": "sandbox",
              "type": "string"
            },
            {
              "id": "7b99f8cf-ab36-5225-8499-37f61f038eb1",
              "name": "chat",
              "value": "15550001234",
              "type": "string"
            },
            {
              "id": "b2ecfb8f-f4d4-5e8f-bb5d-d006157f426a",
              "name": "body",
              "value": "Hello from n8n 👋",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "afa14d2d-2b71-550c-9685-dbe31ffd1f6c",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        40,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://wabridges.com/api/instances/{{ $('Settings').item.json.customer_ref }}/proxy/send/text",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ chat: $json.chat, body: $json.body }) }}",
        "options": {}
      },
      "id": "6c92b3f9-1a24-5417-84ee-4fc36658cc05",
      "name": "Send WhatsApp message",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        300,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "wabridges-api-key",
          "name": "WABridges API key"
        }
      },
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 5000,
      "notesInFlow": true,
      "notes": "POST /api/instances/{customer_ref}/proxy/send/text"
    },
    {
      "parameters": {
        "content": "### Edit here\n\n- `customer_ref` — `sandbox`, or the name of a paired bridge\n- `chat` — phone number (`15550001234`) or group id (`1203630000@g.us`)\n- `body` — the message text",
        "width": 260,
        "height": 230
      },
      "id": "d3bec5b2-36be-51fa-8b67-09cf57694aa1",
      "name": "Edit here",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -20,
        -280
      ]
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Send WhatsApp message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "active": false
}