auto_stories Knowledge Base chevron_right Work Flow chevron_right Article

Approve from WhatsApp (Approve / Reject buttons)v5

Approval notifications can also be sent over WhatsApp. The approver gets a WhatsApp message with Approve and Reject buttons and decides right inside WhatsApp, without signing in to Xpoda. Reject asks for a reason, and the text is written to the workflow history as the comment.

The feature is an option of the Send to Approval step in the workflow and is independent of the e-mail notification: the two can be used together or separately. Messages are sent through Meta's WhatsApp Cloud API, so a one-time setup on the Meta side is needed (see Setup below).

How it works

  1. When a record is sent for approval, each approver pending on the step gets their own WhatsApp message. The number is the phone number on the approver's user card.
  2. The message shows the form name, record number and description, with Approve, Reject and Open details buttons below.
  3. Approve decides at once, and WhatsApp replies "✅ Approved: Form #Record".
  4. Reject asks for the reason. The approver's next message becomes the rejection comment and "❌ Rejected" is sent back. Type cancel to back out; the approval stays pending. The reason must be sent within 15 minutes.
  5. Open details opens the approval page of the e-mail with buttons in the browser (see Approve from e-mail).

The description in the message is the step's Notification text if set, otherwise the step's Description.

If the approval was already decided, or the step was completed by other approvers, pressing a button only sends an information message and nothing new is decided:

WhatsApp replyMeaning
✅ Approved / ❌ RejectedThe decision was made and applied to the workflow.
ℹ️ You already decided on this approvalA button was pressed a second time; the first decision stands.
ℹ️ This approval is no longer pendingThe step was completed or the workflow was cancelled; nothing to do.
⚠️ This approval link is invalid or has expiredThe message is older than 7 days, or the button was pressed from a number other than the approver's own. Decide in Xpoda.
⚠️ Could not be processedThe decision could not be saved. Decide in Xpoda.

Turning it on in Studio

  1. Open the workflow designer in Studio and select the Send to Approval step.
  2. In the properties panel, turn on WhatsApp (Approve / Reject buttons in WhatsApp) in the Notifications section.
  3. Save the project.

Approvers need a mobile number on their user card (e.g. +90 5xx xxx xx xx). Approvers without one get no message; this is written to the Service log, and the workflow and the other approvers are not affected.

Security

  • Each message carries an approval code for that approver only; it is the same kind of code as in the e-mail with buttons and is valid for 7 days.
  • The number pressing the button must match the phone on the approver's user card. Even if the message is forwarded, the other person cannot decide.
  • The signature of every notification from Meta is verified with the App secret; requests with a bad signature are rejected.
  • The access token and app secret are stored encrypted and are never shown again in the admin panel.
  • No WhatsApp messages are sent on the test database.

Setup

The Client administrator does the setup. Only two values come from Meta: the access token and the app secret. Xpoda sets up the number, the webhook, the WhatsApp account's subscription to the app and the approval template automatically. The only manual step is publishing the app in Meta.

You need:

  • a Facebook account and a Meta business account (it can be created while creating the app),
  • a public HTTPS Client address (General Settings › Client Address). If the address isn't reachable from the internet, a warning appears at the top of the WhatsApp page.

This is the company's single WhatsApp connection: approval messages go out from this number. With an Xpoda AI license, users can also write to the same number to ask an AI agent (the agent is given to the user in Studio › Xpoda AI › Permissions).

Testing with the test number is free; in production Meta charges for approval messages (Utility template).

1. Create an app in Meta

  1. Sign in to developers.facebook.com with your Facebook account › My Apps › Create App.
  2. Choose Connect with customers through WhatsApp and your business account (create one there if you don't have it).
  3. Open WhatsApp › Quickstart. Meta gives you a free test number.

2. Get the access token

  1. business.facebook.com/settings › System users › Add: name "xpoda", role Admin.
  2. Assign assets: select your app and your WhatsApp account and give both Full control.
  3. Generate token: expiration Never, tick whatsapp_business_messaging and whatsapp_business_management. The token is a long text starting with "EAA" and is shown only once; paste it into the Access token field in Xpoda.

3. Get the app secret

In the Meta app: App settings › Basic › App secret › Show. Paste the 32-character value into the App secret field.

4. Publish the app

  1. On the same page enter the Privacy Policy URL (your company's privacy page) and Category, then save.
  2. Select Publish in the left menu; the status must be Published.

Meta doesn't deliver messages from phones to an unpublished app, so publishing is needed for testing too. Since this can't be read from Meta, it appears in the checklist as a step to check yourself (☑️).

5. Connect in Xpoda

  1. Open the WhatsApp tab in the Client admin panel.
  2. Paste the Access token and App secret into the Connect card and leave Active on.
  3. Select Connect and set up. Setting up with Meta may take 10–20 seconds.
Client admin panel, WhatsApp Connect card

Xpoda finds the app, WhatsApp account and number from the token, sets up the webhook, subscribes the account to the app and, if the approval template doesn't exist, creates it and submits it for Meta review. The result appears as a checklist in the top card, headed by the connected number and business name. When everything is ✅, setup is complete.

WhatsApp checklist, all steps complete
RowWhat is checked
Access tokenThe token must be valid and never expire. An expiring token shows ⚠️ with its expiry date.
Permissionswhatsapp_business_messaging and whatsapp_business_management.
WhatsApp account / Phone numberThe account and number the token can reach. If the account has several numbers, a list appears; choose the number and select Connect and set up again.
App secretMust be the secret of the token's app.
WebhookWhether Meta is set to the Client's /WhatsApp/Webhook address. Set up automatically.
WhatsApp account subscriptionWhether messages from phones are delivered to the app. Done automatically.
Approval templateThe xpoda_onay template. Created if missing; shows ⚠️ while in Meta review (usually a few minutes) and ✅ once approved, after which messages are sent.
App published☑️ Check it yourself (step 4).

Each ❌ row says what to do and has a How to fix? link; fix it and select Connect and set up again. Check again refreshes the list without changing anything. After saving, the token and secret are hidden for security; leaving the fields empty keeps the saved values.

Under Advanced you can change the phone number ID (leave empty to find it automatically), the Template name (default xpoda_onay) and the Template language (default tr). For English approval messages, set Template language to en and select Connect and set up; the template is created in that language. The Callback URL and Verify token are also shown here; automatic setup uses them, so you don't need to enter them in Meta.

The Guide at the bottom of the admin panel summarizes these steps and common Meta account errors.

Trying it with the test number

The test number only writes to registered numbers: add your mobile under Quickstart › To › Manage phone number list and verify it with the code sent on WhatsApp (up to 5 numbers).

Switching to your real number

  • WhatsApp Manager › Phone numbers › Add phone number; verify with the SMS code. A number used in the WhatsApp phone app can't be used here; a separate number is recommended.
  • Add a payment method under WhatsApp Manager › Settings, and start business verification in Security Center (daily sending limits stay low until verified).
  • In Xpoda select Check again, pick the new number from the list and select Connect and set up. If the template doesn't exist in the new account, it is created automatically.

Troubleshooting

SymptomCause / fix
❌ in the checklistFollow the text under the row, then select Connect and set up.
"The access token is a long text starting with EAA" / "The app secret must be 32 characters"The fields were mixed up or copied incompletely. The token comes from Generate token on the system user, the secret from App settings › Basic.
WhatsApp account ❌ "The token doesn't reveal your WhatsApp account"The account isn't assigned to the system user. Select Assign assets › WhatsApp accounts › your account › Full control, then Check again (if nothing changes, generate the token again). Or enter the WhatsApp Business Account ID shown under the number on the Quickstart page in the WhatsApp account ID field that appears.
App secret ❌The secret doesn't belong to the app you generated the token with. Enter that app's App secret.
Webhook ❌The Client address isn't reachable from the internet or the HTTPS certificate is invalid. Fix General Settings › Client Address.
Approval template ❌ "rejected"Meta rejected the template; the reason is in WhatsApp Manager › Message templates.
All ✅ but pressing a button gets no replyIs the app published? Is the number the one on the user card?
No messages arriveCheck the "WhatsApp onay bildirimi" lines in the Service log. Active must be on and the template approved. With the test number, the recipient must be registered in Meta. Nothing is sent on the test database.
One approver gets no messageNo or invalid phone on the user card.
Meta says "Payment disabled"The Facebook account is restricted. Try a private window without ad blockers or get added to your company's existing business account.
Meta says "You can't make this change at the moment"Use the device you use every day or wait 1–2 days.
"Link is invalid" replyThe message is older than 7 days, or the number pressing the button is not the phone on the approver's card.