WhatsApp Flows: Forms and native micro-apps in chat
WhatsApp Flows is one of the most powerful features in the Meta Cloud API ecosystem. They allow you to open complete native forms directly in WhatsApp without ever redirecting the customer to an external website.
E-commerce and business use cases in Morocco
1. Cash on Delivery (COD) Confirmation
The customer clicks on "Confirm my delivery" in the order message and selects:
- Its city and specific neighborhood.
- Its availability time slot (eg: "2 p.m. - 6 p.m.").
- Instructions for the delivery person (apartment number, intercom).
2. Making appointments and qualifying prospects (Lead Gen)
Dynamic form with date selectors, choice of services and personalized fields.
3. Satisfaction surveys (NPS / CSAT)
Star rating and feedback sent in 3 seconds.
How to send a Flow via API
Pass the interactive object of type flow in your request to POST /v1/messages:```json
{
"to": "+212612345678",
"channel": "whatsapp",
"interactive": {
"type": "flow",
"header": { "type": "text", "text": "Confirmation de Commande" },
"body": { "text": "Choisissez votre créneau et quartier de livraison :" },
"footer": { "text": "Validation 1-Clic" },
"action": {
"name": "flow",
"parameters": {
"flow_message_version": "3",
"flow_token": "token_cmd_12345",
"flow_id": "123456789012345",
"flow_cta": "Confirmer ma commande",
"flow_action": "navigate",
"flow_action_payload": {
"screen": "APPOINTMENT_SLOT",
"data": { "order_id": "CMD-12345" }
}
}
}
}
}