{
  "name": "Threadwire: send a WhatsApp message",
  "nodes": [
    {
      "parameters": {
        "content": "## Send a WhatsApp message from any workflow\nCopy *Send WhatsApp message* into your own workflow, after whatever should trigger it.\n1. Add a **Header Auth** credential: name `Authorization`, value `Bearer YOUR_API_KEY`.\n2. Set your Instance ID (on the instance's page, under Instances) and the person's number, in international format like 201012345678.\n\n**Best to people who wrote to you:** a message to someone who never did is a first message, the most limited kind (a few dozen a day per instance, short, personal, never the same text to many), because that is how numbers get banned. Give people your chat link so they write first.",
        "width": 520,
        "height": 320
      },
      "id": "5c9c5ebd-0cba-500d-87f7-790e0e356e3d",
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -60,
        -360
      ]
    },
    {
      "parameters": {},
      "id": "af97e87c-dee3-5a72-8212-078d1ec999aa",
      "name": "Run it",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://threadwire.net/api/v1/messages",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ instance_id: 'YOUR_INSTANCE_ID', to: '201012345678', text: 'Hi Sara, your booking for Friday is confirmed.' }) }}",
        "options": {}
      },
      "id": "1ac91871-98ee-5fe9-824a-d8a122367a5c",
      "name": "Send WhatsApp message",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        240,
        0
      ]
    }
  ],
  "connections": {
    "Run it": {
      "main": [
        [
          {
            "node": "Send WhatsApp message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
