Overview
Connecting the WhatsApp Bot lets customers install their loyalty card through WhatsApp, view their balance and rewards, and access their QR code for scanning — all within the WhatsApp chat. Once connected, WhatsApp appears as an installation option on your card issuing form.
This is a more advanced setup that requires a Facebook Business account and a Meta developer app. Follow each step carefully.
Step 1: Create a Meta developer app
Log in to your Facebook Business account.
Go to developers.facebook.com and navigate to My Apps.
Click Create.
Select Other, then click Next.
Select Business as the app type.
Enter your Application Name, email, and select or create a Business Manager.
Click Create App.
Step 2: Set up WhatsApp
On the app dashboard, find WhatsApp and click Set up.
Select your Business profile.
Click Start Using the API.
Add the phone number you want to use to send WhatsApp messages.
Optionally, enter a test phone number to verify that messaging works.
Note: Take note of the Phone Number ID and WhatsApp Business Account ID displayed on this page — you'll need both to connect in Perkstar.
Step 3: Configure webhooks
In the WhatsApp setup, find the Webhooks section and click Edit next to Callback URL.
Enter the following details:
Verify Token:
whatsapp_bot_webhook_verify_token
Click Verify and Save.
Click Manage next to Webhooks.
Find Messages in the list and enable it.
Click Done.
Step 4: Generate a permanent access token
Select the Business Manager you specified when creating the app.
Navigate to Users > System Users and click Add.
Create a system user: enter a name and select the Admin role.
Click Generate New Token and select your app.
Set Token Expiration to Never.
Enable the following permissions:
business_managementcatalog_managementwhatsapp_business_managementwhatsapp_business_messaging
Click Generate Token and save the generated token securely.
Go to Assign Assets > Apps and enable Manage App.
Return to your business account dashboard and enable Live Mode.
Step 5: Connect WhatsApp Bot in Perkstar
Navigate to Settings in the left-hand menu, then click Services.
Click Connect WhatsApp Bot.
Enter the following details:
Token — The permanent access token you generated
Sender's phone number — The phone number you added in Step 2
Phone Number ID — From the WhatsApp setup page
WhatsApp Business Account ID — From the WhatsApp setup page
Click Connect.
Your WhatsApp Bot is now connected.
For more information about generating access tokens, see the Meta WhatsApp Business API documentation.
How customers install a card via WhatsApp
Once the WhatsApp Bot is connected, a Install in WhatsApp button appears on your card issuing form.
The customer scans the QR code or opens the card installation link.
They fill in their details (e.g., first name and phone number).
They tap Install in WhatsApp.
A confirmation message is sent to the customer's WhatsApp, confirming the setup was successful.
What customers can do in WhatsApp
Once the card is installed, customers can interact with it directly in the WhatsApp chat:
View card details — See their balance, rewards, company name, card expiration date, and serial number
Open QR code — Tap to display the QR code in fullscreen so your staff can scan it
Switch cards — If the customer has multiple cards installed, they can choose which card to view and the system will load the details for that card
FAQs
Do I need a Facebook Business account?
Yes. The WhatsApp Bot requires a Meta developer app linked to a Facebook Business account.
Can customers install multiple cards through WhatsApp?
Yes. If a customer has more than one card, they can switch between cards within the WhatsApp chat.
Does the WhatsApp Bot send automatic messages?
The bot sends a confirmation when a card is installed and allows customers to interact with their card details. Push notifications and mailings are handled separately through the Push and Mailings sections.
What phone number should I use?
Use a phone number dedicated to your business WhatsApp communications. This is the number customers will see messages from.
