WhatsApp Integration Guide¶
Connect Meta WhatsApp Business Cloud API to JengaFlow to automate customer orders, send payment links, and dispatch signed eTIMS receipts.
Step 1: Meta Developer Credentials¶
To connect WhatsApp, retrieve the following keys from your Meta for Developers dashboard:
- Phone Number ID: Found under WhatsApp > API Setup.
- WhatsApp Business Account ID (WABA ID): Listed on the API configuration screen.
- Permanent Access Token: Generated from Meta Business Manager under System Users with
whatsapp_business_messagingpermissions.
Step 2: Configure JengaFlow Webhook¶
- In the Meta App Dashboard, navigate to WhatsApp > Configuration.
- Set the Callback URL to:
- Enter your Verify Token (configured in your JengaFlow workspace settings).
- Under Webhook Fields, subscribe to
messages.
Step 3: Order-to-Odoo Workflow¶
When a customer messages your business WhatsApp number:
- Meta triggers the JengaFlow webhook with the message payload.
- JengaFlow parses the customer phone number, item names, and quantities.
- The workflow queries Odoo to verify product availability and prices.
- A new draft Sales Quotation is created in Odoo.
- JengaFlow replies on WhatsApp with the quotation summary and an M-Pesa STK push prompt.