AlmanacGuide

WhatsApp setup

Almanac talks to WhatsApp through Meta's official WhatsApp Business Platform (the "Cloud API"). You set this up once in Meta's dashboards, then paste five values into Almanac. Budget about 30 minutes.

Before you start#

1. Create the Meta app#

  1. Go to developers.facebook.com/apps and click Create app.
  2. Choose the use case Connect with customers through WhatsApp (older screens: app type Business) and link your business portfolio.
  3. In the app, open App settings → Basic. Copy the App ID and App secret (click Show). The installer asks for both.
  4. Still on that page, add a Privacy policy URL (your own website's, or https://almanac.bar/privacy while you get started). Meta needs it before the app can go live.

2. Add your phone number#

  1. In the app, open WhatsApp → API Setup.
  2. Meta gives you a free test number straight away. It can only message up to five phone numbers you verify on this page: good for a first test, not for customers.
  3. Click Add phone number, enter your business display name and number, and verify it with the code Meta sends.
  4. Copy two IDs from this page for your real number:
    • Phone number ID
    • WhatsApp Business Account ID (WABA ID)

Display name: Meta reviews the name customers see. It should match your business (e.g. "Sharma Textiles"), not a personal name or a generic word. Approval usually takes a day or two; you can message in the meantime.

3. Create a permanent access token#

The token on the API Setup page expires after 24 hours. Almanac needs one that doesn't:

  1. Open Business settings → Users → System users → Add. Name it almanac, role Admin.
  2. With the system user selected, click Assign assets:
    • Apps → your app → Full control
    • WhatsApp accounts → your account → Full control
  3. Click Generate new token, pick your app, set expiry to Never, and tick these permissions:
    • whatsapp_business_messaging
    • whatsapp_business_management
  4. Copy the token now. Meta shows it only once.

Treat this token like a password. Almanac stores it encrypted, and it never needs to go anywhere else.

4. Connect Almanac#

  1. In Almanac, open Settings → WhatsApp.
  2. Fill in:
    • Phone number ID and WABA ID from step 2
    • Access token from step 3
    • Verify token: any random phrase you make up, e.g. sharma-textiles-7Qx2. You'll paste the same phrase into Meta next.
    • Two-step verification PIN: the 6-digit PIN for your number. If you never set one, choose one now in WhatsApp Manager → Phone numbers → your number → Two-step verification.
  3. Click Save. Almanac checks the token, registers the number and links your WhatsApp account to the app. If something is wrong it says exactly which value to fix.

5. Point Meta's webhook at Almanac#

This is how incoming messages reach your inbox.

  1. In the Meta app, open WhatsApp → Configuration.
  2. Under Webhook, click Edit:
    • Callback URL: https://<your Almanac address>/api/whatsapp/webhook
    • Verify token: the same phrase you entered in Almanac
  3. Click Verify and save, then under Webhook fields subscribe to:
    • messages (required: incoming messages and delivery ticks)
    • message_template_status_update (recommended: template approvals show up in Almanac automatically)
  4. At the top of the app dashboard, switch App mode to Live.

Send a WhatsApp message to your business number from your own phone. It appears in Almanac's Inbox within a second or two.

Rules worth knowing before you message customers#

If something goes wrong#

Almanac explains most connection errors in plain words when you save your settings. The full list, with fixes, is in WhatsApp connection troubleshooting. The most common three:

Next: Using Almanac.