WhatsApp Business

WhatsApp Business

Send and receive WhatsApp messages

Hard30 min0% complete

What you need

  • A Meta (Facebook) Business account
  • A phone number for WhatsApp Business
  1. 1.Go to developers.facebook.com
  2. 2.Click "My Apps" → "Create App"
  3. 3.Select "Business" as the app type
  4. 4.Fill in app name and contact email
  5. 5.Find WhatsApp and click "Set Up"
Meta Developers
  1. 1.In your app, go to WhatsApp → Getting Started
  2. 2.Follow the setup wizard
  3. 3.Add a phone number (can use test number first)
  4. 4.Verify the phone number
💡Start with the test number to learn how it works before using your real number.
  1. 1.In WhatsApp → API Setup, find your "Phone number ID"
  2. 2.Generate a permanent access token
  3. 3.Create a verify token (any random string you choose)
# Add to your .env.local file:
WHATSAPP_TOKEN=EAAGm0P...
WHATSAPP_PHONE_NUMBER_ID=123456789012345
WHATSAPP_VERIFY_TOKEN=your_random_string

Environment Variables

VariableDescriptionExample
WHATSAPP_TOKENPermanent access tokenEAAGm0P...
WHATSAPP_PHONE_NUMBER_IDYour WhatsApp phone number ID123456789012345
WHATSAPP_VERIFY_TOKENWebhook verification token (you create this)my_secret_token

Test Your Integration

After completing setup, try this prompt in Claude Code:

"Send a test WhatsApp message to my number"