Skip to content

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:

  1. Phone Number ID: Found under WhatsApp > API Setup.
  2. WhatsApp Business Account ID (WABA ID): Listed on the API configuration screen.
  3. Permanent Access Token: Generated from Meta Business Manager under System Users with whatsapp_business_messaging permissions.

Step 2: Configure JengaFlow Webhook

  1. In the Meta App Dashboard, navigate to WhatsApp > Configuration.
  2. Set the Callback URL to:
    https://jengaflow-n8n.jengastack.app/webhook/whatsapp
    
  3. Enter your Verify Token (configured in your JengaFlow workspace settings).
  4. Under Webhook Fields, subscribe to messages.

Step 3: Order-to-Odoo Workflow

When a customer messages your business WhatsApp number:

  1. Meta triggers the JengaFlow webhook with the message payload.
  2. JengaFlow parses the customer phone number, item names, and quantities.
  3. The workflow queries Odoo to verify product availability and prices.
  4. A new draft Sales Quotation is created in Odoo.
  5. JengaFlow replies on WhatsApp with the quotation summary and an M-Pesa STK push prompt.