Overview #
WhatsApp notifications in WPCafe send automatic WhatsApp messages to your customers and to you when a table reservation or food order is created or changes. They use the official Meta WhatsApp Cloud API and your approved message templates, and they only message customers who agreed to it.
Customers often read WhatsApp faster than email, so a short booking or order confirmation there cuts no-shows and “did my order go through?” calls. WPCafe also checks each phone number for its country and asks the customer for permission first, as Meta requires, so messages go to the right person.
Requirements #
You need the latest WP Cafe and WP Cafe Pro on PHP 8.1 or newer, WooCommerce for food orders, and a Meta for Developers app with at least one approved text-only template in WhatsApp Manager.
Step 1: Get Your Details From Meta #
You need three things from Meta: an access token, a Phone number ID, and a WhatsApp Business Account ID.
- Open your app from My Apps on Meta for Developers.
- Open Use cases and click Customize on Connect on WhatsApp.
- Go to Basic setup and open Step 1. Try it out.
- Copy the Phone number ID and the Messaging account ID. WPCafe calls the second one WhatsApp Business Account ID.
- Click Generate token under Access token and copy it.

Note: The token from Generate token is for testing and expires within a day. For a live site, create a permanent token from a system user with the whatsapp_business_messaging and whatsapp_business_management permissions. |
| Tip: A Meta test number can only send to up to 5 recipient numbers. Add your own number to that list on the same Basic setup page. |
Step 2: Connect WPCafe to WhatsApp #
- Go to WP Cafe > Settings > Integrations.
- Find the WhatsApp card and switch it on.
- Click Configure.
- Paste the Access token, the Phone number ID and the WhatsApp Business Account ID. The two IDs are numbers only, with no spaces or letters.
- In Admin WhatsApp number, pick your country and enter your number. This number gets the admin alerts, so use a different number from your business number.
- Click Check and connect.

WPCafe saves your details and asks Meta right away whether they work. When everything is right, the top of the window shows Connected: with your business name and number. If something is wrong, you see the reason in plain words, for example “The access token is wrong or has expired” or “This Phone number ID does not belong to that Business Account ID”.

The window also warns you about anything that would stop messages later:
| Warning | What to do |
| No approved message template | Create one in WhatsApp Manager (Step 3). |
| No template can be sent by automation | Your templates all have a picture, video, button or carousel. Create a text-only template. |
| Token is missing a permission | Give the token both whatsapp_business_messaging and whatsapp_business_management. |
| Meta rates this number Red | Meta may limit how many messages you can send. Check the number’s quality in WhatsApp Manager. |
| No Admin WhatsApp number | Add one to receive order and reservation alerts. |
| Reservation form has no phone field | Add a phone field to the form so guests can get WhatsApp updates. |
| Checkout hides the phone field | Show the phone field in WooCommerce so food order customers can get messages. |
Click Recheck at any time to test the connection again. Disconnect removes the saved token, IDs and admin number and turns WhatsApp off, so customers stop seeing the WhatsApp box until you connect again.
Step 3: Create a Message Template in Meta #
Meta only lets a business start a chat with an approved template.
- Open WhatsApp Manager and go to Message templates.
- Click Create template and choose the Utility category.
- Pick a language.
- Write the body. Use
{{1}},{{2}}and so on for the values WPCafe fills in, for example:
Hi {{1}}, your table for {{2}} is booked for {{3}}. See you soon!
- Add a sample value for each variable and submit.
Keep the template text only. A header with a picture or video, button values, or a carousel cannot be filled by automation, so WPCafe hides those templates from the list. Approval usually takes a few minutes and can take up to 24 hours.
Step 4: Finish Your WhatsApp Automations #
The first time Check and connect succeeds, WPCafe adds four draft automations for you:
- New reservation: WhatsApp to admin
- New reservation: WhatsApp to customer
- New order: WhatsApp to admin
- New order: WhatsApp to customer
The reservation pair needs the Reservation module on, and the order pair needs Food Ordering on. If a module is off, its pair is added the next time you connect after turning it on. Drafts never send anything until you finish and switch them on, and your existing automations are never changed.

To finish a draft:
- Go to WP Cafe > Settings > Email Automations and open one of the drafts.
- Click the Send WhatsApp Message step.
- Choose your approved template under WhatsApp Template. Click Refresh if it is missing.
- Fill each parameter: click a parameter field, then click a variable under Available Variables.
- Click Save, switch the automation to Active, and click Save Now.
For the example template, map {{1}} to {%reservation_name%}, {{2}} to {%reservation_total_guests%}, and {{3}} to {%reservation_date%} at {%reservation_start_time%}. For food orders, use variables such as {%customer_name%}, {%order_number%} and {%order_total%}.

To build your own automation for another event, click Create New Automation, pick a Trigger Event, then add a Send WhatsApp Message step under Automation Starts. Reservation events include Created, Confirmed, Pending, Updated, Completed, Cancelled and Refunded. Food order events are Order Created and Order Status Changed. Use Order Status Changed for cancelled orders too.

| Tip: To message both the customer and yourself for the same event, use two automations or two Send WhatsApp Message steps, one with Receiver Type set to Customer Number and one with Admin Number. |
Step 5: Check How Customers Agree to WhatsApp Messages #
Meta only allows messages to people who agreed to them. While WhatsApp is connected, WPCafe adds this to your forms on its own, with no setup:
- Reservation form: the phone field gets a country dropdown, and below it an unticked box: “Send me updates about this booking on WhatsApp from [your restaurant name].”
- Checkout: an unticked box: “Send me updates about this order on WhatsApp from [your restaurant name], to my billing phone.” On the classic checkout it sits under the billing phone. On the block checkout it sits under Additional order information.

When the customer ticks the box, WPCafe checks the number for the chosen country (or the billing country at checkout). A wrong number gets a clear message, such as “This is not a valid United Kingdom number. Check the country and the number.” or “This looks like a landline. WhatsApp needs a mobile number.” If the box is not ticked, the number is saved as typed and the customer gets no WhatsApp messages.

Your staff can see and change the choice. On the reservation’s Add or Edit screen it shows as Guest agreed to WhatsApp updates. On the WooCommerce order screen it shows under the billing address as Customer agreed to WhatsApp updates, with the date it was given.
| Note: Bookings and orders made before this update have no agreement saved, so their customers get no WhatsApp messages. Tick the box on the booking or order if the customer agrees by other means. Admin messages are not affected. |
Step 6: Test It #
- Make a test reservation or place a test food order with your own mobile number, and tick the WhatsApp box.
- Trigger the event your automation listens to (for example, confirm the reservation).
- Check WhatsApp for the message.
Frequently Asked Questions (FAQ) #
| Q1: Why did the customer not get the WhatsApp message? First check that the customer ticked the WhatsApp box, because WPCafe never messages a customer without it. Then check that the automation is Active, the template is approved, and the number has the right country code. With a Meta test number, the customer’s number must also be on your test recipient list. |
| Q2: Why is my approved template missing from the WhatsApp Template list? WPCafe only lists templates it can fill in on its own. A template with a picture or video header, a button that needs a value, or a carousel is hidden, because Meta would reject every send. Create a text-only Utility template, wait for approval, and click Refresh in the automation. |
| Q3: I updated, but I don’t see Check and connect or the Order Created trigger. Why? Make sure both WP Cafe and WP Cafe Pro are updated, because the new screens come from WP Cafe, not Pro. Your server also needs PHP 8.1 or newer, or WordPress refuses the update. Check the version under Plugins, then open WP Cafe > Settings > Integrations > WhatsApp > Configure. |
Conclusion #
WhatsApp notifications in WPCafe now check your Meta connection for you, prepare your first automations, and only message customers who agreed. Click Check and connect, finish the four drafts with your approved template, and send yourself a test booking.