Official Cloud API

Test the bot on your phone

WhatsApp does not load this website inside the app. You add a Cloud API test number in Meta, point the webhook at Bookfin, then message that number from your own WhatsApp.

  1. 1. Meta appOpen developers.facebook.com → your app → WhatsApp → API Setup. Add your personal number as a tester. Copy the temporary access token and Phone number ID.
  2. 2. WebhookCallback URL: https://YOUR-APP/api/whatsapp/webhook
    Verify token: bookfin-verifySubscribe to messages.
  3. 3. Secrets on the serverWHATSAPP_TOKEN and WHATSAPP_PHONE_ID. Without them the webhook still answers Meta’s challenge but cannot send replies.
  4. 4. Message the test numberSend hi. Reply with a service name (Cut, Gel set) or tap the buttons. Send PAY to confirm a hold. This demo does not charge a real card.

The zip is a small Node script plus README. Run it on your laptop with ngrok if the hosted webhook is not public yet. Unofficial WhatsApp Web reverse-engineering is not included.