{
  "name": "WhatsApp order/booking confirmation",
  "nodes": [
    {
      "parameters": {
        "content": "## WhatsApp order/booking confirmation\n\n**What it does:** auto-sends a WhatsApp confirmation when a new order/booking arrives.\n\n**Setup**\n1. Point your order/booking form to the *New order* webhook URL (expects a `phone` field).\n2. Open *Send confirmation* \u2192 add your **WhatsApp Cloud API** credential.\n3. Edit the message text. 4. Click **Active**.",
        "width": 360,
        "height": 300
      },
      "id": "sticky-setup",
      "name": "Setup guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -140
      ]
    },
    {
      "parameters": {
        "path": "order",
        "httpMethod": "POST",
        "responseMode": "lastNode"
      },
      "id": "wh",
      "name": "New order (webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -160,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://graph.facebook.com/v20.0/PHONE_NUMBER_ID/messages",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"messaging_product\": \"whatsapp\",\n  \"to\": $json.phone,\n  \"type\": \"text\",\n  \"text\": { \"body\": \"Thank you for your order with your business! We'll be in touch shortly.\" }\n}"
      },
      "id": "wa",
      "name": "Send confirmation",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        120,
        0
      ]
    }
  ],
  "connections": {
    "New order (webhook)": {
      "main": [
        [
          {
            "node": "Send confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "id": "LjU3CBlPB1M0pk4a"
}