Documentation index for AI agents (llms.txt)
Skip to main content

WhatsApp

Your site can send order updates, reminders and sign-in codes from your WhatsApp business number. Your number's quality, sending limit and message templates show in the builder.

Just want a WhatsApp chat button on your site? That needs no connection. Ask the AI for one.

Connect​

WhatsApp connects with a permanent access token from your Meta business, plus two IDs from your Meta app.

  1. Open Settings > Connectors, click WhatsApp, then Connect.
  2. Access token: in Meta Business settings, open System users, pick one, click Generate token and copy it.
  3. Phone number ID and WhatsApp Business Account ID: in developers.facebook.com, open your app, then WhatsApp, API Setup, and copy each one.
  4. Each value is picked up when you come back to WebTwizz, then checked with Meta and connected. You can also paste them into the fields yourself.

The system user needs your WhatsApp account assigned to it. If Meta can't reach the number with that token, WebTwizz says which ID to check.

What you see​

  • Status, when something needs you: the number isn't connected yet, its display name is in review, declined or expired, your business isn't verified yet, or templates are waiting for Meta's review. Until your business is verified, you can message 250 people a day. Each opens the page in Meta where you fix it.
  • Number: Quality and Messaging limit, then the display name, marked Approved, In review or Declined, with the number. Meta bills template messages by its own price list. Replies within a customer's 24-hour window are free. WhatsApp Manager opens your numbers.
  • Profile: what customers see about your business in WhatsApp: About, Address, Email and Website. Edit opens them to change. Click Save, then Save again to confirm. Everyone who chats with you sees it right away.
  • Templates: each message template with its category and language, and whether Meta approved it. Starting a chat needs an approved one. All templates opens WhatsApp Manager.
    • Click a template to see its text, Status, Category, Language and Quality, and Why it was rejected when Meta turned it down. WhatsApp Manager opens your templates.
    • Delete removes it from WhatsApp Manager too. Confirm with Delete. Your site can't send a deleted template, and Meta keeps an approved one's name from new templates for 30 days.
    • Show more loads the next 10.
  • Settings:
    • Your WhatsApp number: the AI sends test messages only to this number.
    • Address for Meta: paste it as the Callback URL in your Meta app's WhatsApp webhook settings, so incoming messages reach your published site. It shows After you publish until the site is live.
    • Code for Meta: paste it as the Verify token, next to the address.
  • At the top, next to the name, Message templates and Phone numbers open WhatsApp Manager.

What the AI can do​

  • Build sending into your site, from its server. A message outside the 24 hours after a customer last wrote must be an approved template.
  • Handle incoming messages on your published site, checking each one really comes from Meta
  • Read your message templates with their review status
  • Write a template, including a copy-code template for sign-in codes, and send it to Meta for review. It asks first.
  • Send an approved template to your own WhatsApp number as a test. It asks first.

Secrets​

  • WHATSAPP_ACCESS_TOKEN: your access token, server-side only
  • WHATSAPP_PHONE_NUMBER_ID: the number your site sends from
  • WHATSAPP_VERIFY_TOKEN: the Code for Meta, which your site checks when Meta sets up the webhook

To check incoming messages, add your Meta app's secret as WHATSAPP_APP_SECRET in Secrets.

Good to know​

  • Replace key takes a new access token for the same number. Every project using it switches.
  • Signing in with Meta instead of pasting a token isn't available yet.
  • Removing WhatsApp from a project stops the site sending messages and takes its secrets out. Your number, templates and chats stay in WhatsApp.