{
  "name": "WooCommerce order updates to customers via WhatsApp with Rapiwa API",
  "nodes": [
    {
      "id": "8fa0a1db-d6d4-420e-a7d3-e7eab8b050fd",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        432,
        960
      ]
    },
    {
      "id": "d5efa97f-454d-4661-865c-8432481c0627",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        912,
        1056
      ]
    },
    {
      "id": "10f7dc66-1e40-4b8a-aa0b-8a2f38a4c44b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -384,
        944
      ]
    },
    {
      "id": "0d1fa192-0b73-4960-b2a7-048516d7a4ac",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -816,
        944
      ]
    },
    {
      "id": "28386518-8878-4821-bd56-8ccf8c4acc00",
      "name": "Format Webhook Response Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -624,
        944
      ]
    },
    {
      "id": "d852312f-b45c-4ce5-9671-e4c8c7cabc36",
      "name": "Clean WhatsApp Number",
      "type": "n8n-nodes-base.code",
      "position": [
        -96,
        960
      ]
    },
    {
      "id": "b492da98-bae3-4140-bced-c7efe4b06f7f",
      "name": "Store State of Rows in Verified & Sent",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        896,
        848
      ]
    },
    {
      "id": "a286ee00-45ea-4fff-83ff-c1fd72f79778",
      "name": "Store State of Rows in Unverified & Not Sent",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        672,
        1056
      ]
    },
    {
      "id": "b16d300c-0e2a-4a25-af34-ae2db0f1b201",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        496
      ],
      "parameters": {
        "width": 896,
        "height": 1392,
        "content": "# WooCommerce Order Updates to Customers via WhatsApp with Rapiwa API\n## Overview\nThe workflow listens for incoming WooCommerce order events—either through a webhook or the `order.updated` trigger—and"
      }
    },
    {
      "id": "b5196501-b7a3-403b-8608-32051a41c1b1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        496
      ],
      "parameters": {
        "width": 496,
        "height": 784,
        "content": "## 1. Webhook\n- Purpose: Accepts incoming HTTP POST requests (example path: `4746f380-002d-xxxx-90fe-7c963bd7a67b`).\n- Usage: configured for test/webhook mode in sample `pinData`.\n\n## 2. Format Webhoo"
      }
    },
    {
      "id": "7e7d4967-f95e-4f84-b778-7d37bb4d78c1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        736
      ],
      "parameters": {
        "width": 464,
        "height": 544,
        "content": "## 1. Clean WhatsApp Number\n- Purpose: Ensure `number` field exists and strip non-digit characters.\n\n\n## 2. Check valid whatsapp number Using Rapiwa\n- Purpose: Verify WhatsApp registration via Rapiwa "
      }
    },
    {
      "id": "4a8334f3-6dc4-4cf5-9357-f649986a6e0b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        400
      ],
      "parameters": {
        "width": 912,
        "height": 880,
        "content": "## 1. If\n- False path: route to `Store State of Rows in Unverified & Not Sent`.\n\n\n## 2. Rapiwa Sender\n- Purpose: Send personalized WhatsApp messages for verified numbers.\n- Authentication: Rapiwa Bear"
      }
    },
    {
      "id": "ea94e52e-8729-4653-930e-a3c027aa708c",
      "name": "Rapiwa",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        112,
        960
      ]
    },
    {
      "id": "83425184-4348-4892-b7be-1b59c94195a4",
      "name": "Rapiwa (send message)",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        656,
        848
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Rapiwa (send message)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store State of Rows in Unverified & Not Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rapiwa": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Format Webhook Response Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Clean WhatsApp Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean WhatsApp Number": {
      "main": [
        [
          {
            "node": "Rapiwa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rapiwa (send message)": {
      "main": [
        [
          {
            "node": "Store State of Rows in Verified & Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Webhook Response Data": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store State of Rows in Verified & Sent": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store State of Rows in Unverified & Not Sent": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}