{
  "name": "Send WhatsApp Notification",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "send-whatsapp",
        "options": {}
      },
      "id": "e43d1a8e-5b1e-4512-8e6a-1234567890ab",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        460,
        340
      ]
    },
    {
      "parameters": {
        "resource": "whatsapp",
        "operation": "send",
        "from": "={{ $env.TWILIO_WHATSAPP_NUMBER || 'whatsapp:+14155238886' }}",
        "to": "={{ $json.to.startsWith('whatsapp:') ? $json.to : 'whatsapp:' + $json.to.replace(/[^0-9+]/g, '') }}",
        "body": "=Hi {{ $json.studentName }}! \ud83d\udc4b\n\nYour registration for {{ $json.eventTitle }} on {{ $json.eventDate }} is confirmed! \u2705\n\nAccess your entry pass here: {{ $json.qrUrl }}\n\nSee you there! \ud83c\udf89"
      },
      "id": "f54e2b9f-6c2d-4623-9f7b-0987654321cd",
      "name": "Twilio WhatsApp",
      "type": "n8n-nodes-base.twilio",
      "typeVersion": 1,
      "position": [
        680,
        340
      ],
      "credentials": {
        "twilioApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Twilio WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {},
  "versionId": "generated-by-agent",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "whatsapp-sender-workflow",
  "tags": []
}