Overview
The WhatsApp Bot integration allows you to send automated messages to your customers through WhatsApp, leveraging the world's most popular messaging platform for customer engagement. Once connected, you can send promotional messages, notifications, and updates directly to your customers' WhatsApp accounts.
What you can do with WhatsApp Bot:
Send automated promotional campaigns
Deliver transaction notifications and receipts
Share special offers and announcements
Communicate updates about loyalty programs
Reach customers on their preferred messaging platform
Increase message open rates compared to email
Important limitation: WhatsApp Bot integration is only available for loyalty cards.
Time to complete: 30-45 minutes for first-time setup
Before You Begin
Required Accounts and Access
You'll need:
Facebook Business account (create one at business.facebook.com if you don't have one)
Admin access to your Facebook Business Manager
Perkstar account with access to mailing settings
Phone number to use as your WhatsApp sender (must support WhatsApp Business)
Information You'll Need to Save
During this process, you'll generate several pieces of information. Have a document ready to record:
Phone number ID
WhatsApp Business Account ID
Permanent access token
App ID (Facebook app)
Technical Requirements
Stable internet connection
Access to Facebook Developers portal
Permission to create apps in your Facebook Business account
Ability to receive test messages on WhatsApp
Part 1: Create Facebook App
Step 1: Access Facebook Developers
Log in with your Facebook Business account credentials
Navigate to My Apps in the top menu
Click Create App
Step 2: Select App Type
Choose Other as your app type
Click Next
On the next screen, select Business
Click Next
Step 3: Configure App Details
App Name: Enter a descriptive name (e.g., "YourBusiness WhatsApp Bot")
App Contact Email: Enter your business email
Business Manager: Select your existing Business Manager or create a new one
Click Create App
You'll be taken to your new app's dashboard.
Part 2: Set Up WhatsApp API
Step 4: Add WhatsApp Product
In your app dashboard, scroll down to find WhatsApp in the products list
Click Set up next to WhatsApp
Select your Business Profile from the dropdown
Click Start Using the API
Step 5: Configure Phone Number
You'll see a section to Add a phone number
Enter the phone number you want to use for sending WhatsApp messages
Follow the verification process to confirm the number
Important: This phone number will appear as the sender for all WhatsApp messages to your customers.
Step 6: Test Message Sending (Optional)
In the API setup page, you'll see a Send Test Message section
Enter a test phone number (your own WhatsApp number)
Click Send Message to verify the connection works
Check your WhatsApp to confirm message received
Step 7: Save Critical Information
On this page, you'll see three important pieces of information. Copy and save these now:
Phone Number ID: (found under your added phone number)
WhatsApp Business Account ID: (displayed in the account section)
App ID: (found in the top-left of the page)
You'll need these later to connect to Perkstar.
Part 3: Configure Webhooks
Webhooks allow Perkstar to receive delivery status and responses from WhatsApp.
Step 8: Set Up Callback URL
On the WhatsApp API page, find the Webhooks section
Click Callback URL - Edit
Enter the following information exactly:
Callback URL:
https://mailing.digitalwallet.cards/whatsapp/webhook/inboundVerify Token:
whatsapp_bot_webhook_verify_token
Click Verify and Save
Important: These values must be entered exactly as shown. Any variation will prevent the webhook from working.
Step 9: Enable Message Webhooks
Click Webhooks - Manage
In the list of webhook fields, find Messages
Enable the Messages toggle
Click Done
This allows Perkstar to receive message delivery updates and customer replies.
Part 4: Generate Permanent Access Token
The permanent access token allows Perkstar to send messages through your WhatsApp account without the token expiring.
Step 10: Access Business Manager Settings
Select the Business Manager you specified in your app settings earlier
In the left menu, navigate to Users → System Users
Step 11: Create System User
Click Add to create a new system user
Name: Enter a descriptive name (e.g., "Perkstar WhatsApp Integration")
Role: Select Admin
Click Create System User
Step 12: Generate Token
Find your newly created system user in the list
Click Generate New Token
Configure token settings:
App: Select the WhatsApp app you created earlier
Token Expiration: Select Never (critical—token must not expire)
Enable the following permissions by checking each box:
business_managementcatalog_managementwhatsapp_business_managementwhatsapp_business_messaging
Click Generate Token
Immediately copy and save the token—you won't be able to see it again
Security note: Treat this token like a password. Never share it publicly or commit it to code repositories.
Step 13: Assign App Permissions
While still viewing your system user, click Assign Assets
Select the Apps tab
Find your WhatsApp app in the list
Enable Manage App permission
Click Save Changes
Part 5: Enable Live Mode and Connect to Perkstar
Step 14: Enable Live Mode
Return to your app dashboard at https://developers.facebook.com
Navigate to your WhatsApp app
Find the Live Mode toggle in the top-right corner
Switch it to ON
Your app is now ready to send real messages (not just test messages).
Step 15: Connect WhatsApp Bot in Perkstar
Log in to your Perkstar account
Go to Mailings → Settings
Direct URL: https://app.perkstar.co.uk/settings/services
Click Connect WhatsApp Bot
Enter the information you saved during setup:
Access Token: The permanent token from Step 12
Sender's Phone Number: The phone number you configured in Step 5
Phone Number ID: From Step 7
WhatsApp Business Account ID: From Step 7
Click Connect or Save
Test the connection: Send a test message to verify everything works correctly
Success! Your WhatsApp Bot is now connected and ready to send messages to your customers.
Best Practices
Security and Maintenance
Token management:
Store your access token securely (password manager or secure documentation)
Never share tokens in emails, chat messages, or public spaces
If you suspect a token is compromised, generate a new one immediately
Document who has access to tokens in your organization
Regular monitoring:
Check webhook delivery status periodically
Monitor message delivery rates
Watch for Facebook/Meta platform updates that may affect API access
Compliance and Messaging
WhatsApp Business Policy compliance:
Only message customers who have opted in to receive communications
Provide clear opt-out instructions in your messages
Respect customer preferences and unsubscribe requests
Follow WhatsApp's messaging guidelines and rate limits
Message quality:
Keep messages concise and valuable
Personalize content when possible
Include clear calls-to-action
Test message formatting before sending to all customers
Operational Considerations
Phone number selection:
Use a dedicated business phone number (not personal)
Ensure the number can receive messages for two-way communication
Consider using a number with your local area code for better trust
Business Profile setup:
Complete your WhatsApp Business Profile with accurate information
Add your business logo and description
Include business hours and location if applicable
Troubleshooting
"Webhook verification failed"
Check: Did you enter the Callback URL and Verify Token exactly as specified?
Solution: Re-enter the values, ensuring no extra spaces or characters
Callback URL:
https://mailing.digitalwallet.cards/whatsapp/webhook/inboundVerify Token:
whatsapp_bot_webhook_verify_token
"Token is invalid or expired"
Check: Did you set token expiration to "Never"?
Check: Did you copy the entire token without truncating it?
Solution: Generate a new token with "Never" expiration and ensure complete copy/paste
"Cannot find app in system user assets"
Check: Did you assign the app to your system user in Step 13?
Solution: Go back to Business Manager → System Users → Assign Assets → Apps → Enable "Manage App"
"Phone number verification failed"
Check: Is the phone number already connected to another WhatsApp Business account?
Check: Can the number receive SMS or voice calls for verification?
Solution: Use a different number or disconnect from previous WhatsApp Business account
"Messages not sending from Perkstar"
Check: Is Live Mode enabled on your Facebook app?
Check: Are all four credentials entered correctly in Perkstar?
Check: Did you enable the Messages webhook field?
Solution: Verify each piece of information and re-save in Perkstar
"Permission denied" errors
Check: Did you select all four required permissions when generating the token?
Solution: Generate a new token with all permissions enabled
Cannot connect WhatsApp Bot in Perkstar
Check: Are you using a loyalty card account (not a sub-account)?
Limitation: WhatsApp Bot is only available for loyalty cards
Solution: If you need WhatsApp messaging for sub-accounts, contact Perkstar support for alternatives
Frequently Asked Questions
How long does the setup process take? First-time setup typically takes 30-45 minutes. Subsequent setups (if you need to reconfigure) are faster once you're familiar with the process.
Can I use my personal WhatsApp number? It's not recommended. Use a dedicated business phone number that can be associated with WhatsApp Business API. Personal numbers may not work correctly.
Does the token ever expire? Only if you set an expiration date. If you selected "Never" during token generation, it will remain valid indefinitely unless you manually revoke it.
Can I connect multiple WhatsApp numbers? You would need to create separate Facebook apps for each phone number and connect them individually to different Perkstar accounts.
What happens if I change my phone number later? You'll need to update the phone number in Facebook Developers, verify it, and then update the sender's phone number in Perkstar settings.
How many messages can I send per day? This depends on your WhatsApp Business API tier, which is determined by Facebook/Meta based on your sending patterns and compliance. Start with smaller volumes and scale up.
Can customers reply to my WhatsApp messages? Yes, if you've enabled two-way messaging. However, you'll need to configure how replies are handled in your Perkstar account.
What if my Facebook Business account gets disabled? Your WhatsApp Bot will stop working. Resolve any Facebook Business account issues immediately and ensure compliance with all platform policies.
Do I need a WhatsApp Business app on my phone? No, the API operates independently. However, having the WhatsApp Business app can be helpful for understanding the customer experience.
Can I test before sending to real customers? Yes, use the test message feature in Step 6, and send test campaigns to your own number before launching to customers.
What's the difference between this and the WhatsApp Business app? The WhatsApp Business app is for manual, small-scale messaging. The API (what you're setting up) allows automated, large-scale messaging from your Perkstar platform.
Additional Resources
Official documentation:
Facebook WhatsApp Business API: https://developers.facebook.com/docs/whatsapp
Need help? If you encounter issues not covered in this guide:
Verify each step was completed exactly as described
Check Facebook Developer status page for platform issues
Contact Perkstar support with:
Screenshots of any error messages
Confirmation of which step you're stuck on
Your app ID (but never share your access token)
Pro tip: Take screenshots at each step during your first setup. This creates a visual reference guide specific to your account, making future troubleshooting or reconfiguration much easier.
