{
  "name": "Send WooCommerce new category alert via WhatsApp using Rapiwa API",
  "nodes": [
    {
      "id": "a541b71e-e2c2-4996-ac24-254cac3b1520",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        784,
        0
      ]
    },
    {
      "id": "b8aa1d94-1cde-49cd-bcfa-dd2888491155",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        0
      ]
    },
    {
      "id": "08e7182d-9173-44a1-8619-e1132003bfdb",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        64
      ]
    },
    {
      "id": "2c2889d2-31a2-43a0-9ddd-bc0245fb65cb",
      "name": "unverified append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1600,
        192
      ]
    },
    {
      "id": "c13d178c-44d1-43b9-abb4-b2ef2fd4339c",
      "name": "verified append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1824,
        -112
      ]
    },
    {
      "id": "57be7f7a-83a3-4d90-8482-dde77c36af9c",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        592,
        0
      ]
    },
    {
      "id": "ef0dd016-434e-4ebf-8702-3873296e9d15",
      "name": "Get many customers",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        368,
        0
      ]
    },
    {
      "id": "06ea3912-3b01-45c3-907b-68d40574f6c3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        -624
      ],
      "parameters": {
        "width": 1568,
        "height": 4288,
        "content": "# Send WooCommerce New Category Alert via WhatsApp Using Rapiwa API\n\n# Overview\nThis n8n workflow sends a WhatsApp message to customers when a new WooCommerce product category is created. It checks cu"
      }
    },
    {
      "id": "f4e1ca03-818e-46a9-8638-ea516a43ee62",
      "name": "Format Webhook Response Data",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        0
      ]
    },
    {
      "id": "b4337fa3-2263-431c-bf80-13af7754dd24",
      "name": "Check valid whatsapp number Using Rapiwa",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1184,
        64
      ]
    },
    {
      "id": "558447c8-a3e5-43b2-8e5a-dbb82041f7a1",
      "name": "Send Message Using Rapiwa",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        -112
      ]
    },
    {
      "id": "1d88ede8-16a5-463a-87c6-b9004a4249ed",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1824,
        192
      ]
    },
    {
      "id": "2e148087-cfa0-48a5-a290-7ea909e4c84e",
      "name": "Clean Number",
      "type": "n8n-nodes-base.code",
      "position": [
        1008,
        64
      ]
    },
    {
      "id": "836df614-c61d-4ca8-8b9f-f5029fbbf33f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -336
      ],
      "parameters": {
        "width": 528,
        "height": 736,
        "content": "## Webhook\n**Node Name:** Webhook  \n**Function:** Listens for incoming HTTP POST requests — specifically, product category creation data from WooCommerce. Triggers the workflow.\n\n## & Format Webhook R"
      }
    },
    {
      "id": "a083b897-58f2-447c-81c2-3e7d4b24e9ca",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -336
      ],
      "parameters": {
        "width": null,
        "height": 736,
        "content": "## Get many customers\n**Node Name:** Get many customers  \n**Function:** Fetches all customer data from WooCommerce using the WooCommerce API.\n"
      }
    },
    {
      "id": "5f9330bf-928d-4b65-bb80-2a0d679c3356",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -336
      ],
      "parameters": {
        "width": 384,
        "height": 736,
        "content": "## Limit\n**Node Name:** Limit  \n**Function:** Limits the number of customers processed to 10 (likely for performance or testing purposes).\n\n## & Loop Over Items\n**Node Name:** Loop Over Items  \n**Func"
      }
    },
    {
      "id": "5f6e6d5f-60ee-4bbd-91f9-46a6ce25c2ff",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -624
      ],
      "parameters": {
        "width": 544,
        "height": 1024,
        "content": "## Clean Number\n**Node Name:** Clean Number  \n**Function:** Cleans up customer phone numbers by removing non-digit characters and prepares name, email, and address from billing info.\n\n## & Check valid"
      }
    },
    {
      "id": "e7d53496-d99d-448f-9470-50788743d86e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -624
      ],
      "parameters": {
        "width": 720,
        "height": 1024,
        "content": "## Send Message Using Rapiwa\n**Node Name:** Send Message Using Rapiwa  \n**Function:** If the number is valid, sends a WhatsApp message to the user with the new category info using the Rapiwa API.\n\n## "
      }
    },
    {
      "id": "0c112f0e-e944-43d9-87cb-8e1419c77d64",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -624
      ],
      "parameters": {
        "width": 1184,
        "height": 272,
        "content": "## Summary Flow:\n\n1. Webhook receives category data  \n2. Formats category data  \n3. Fetches WooCommerce customers  \n4. Cleans their info  \n5. Verifies WhatsApp number  \n6. Sends message if valid  \n7. "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Send Message Using Rapiwa",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "unverified append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Format Webhook Response Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Number": {
      "main": [
        [
          {
            "node": "Check valid whatsapp number Using Rapiwa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Clean Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many customers": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Message Using Rapiwa": {
      "main": [
        [
          {
            "node": "verified append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Webhook Response Data": {
      "main": [
        [
          {
            "node": "Get many customers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "verified append row in sheet": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "unverified append row in sheet": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check valid whatsapp number Using Rapiwa": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}