logo
enes

Interactive messages

Last update: 6 hours ago by Irais Aguirre

Interactive messages give users buttons, lists and other controls so they can respond to a business more easily.

Integration summary

  • Endpoint: POST https://{{url}}/whatsapp-bsp-api-endpoint-ws/services/v1/messaging
  • Token: messaging token, in the Authorization: Bearer {{wa-msg-api-token}} header (how to generate it)
  • Common fields: from, to (phone number or BSUID) and type (details)
  • Response: the same for every message (see response)

Interactive messages let you:

  • Help your users easily find and select what they're looking for from a business on WhatsApp.
  • Offer a simpler, more consistent format for people to find and choose what they want from a business.

The available interactive messages are:

  • Flows: Messages that open a WhatsApp Flow. To create and manage Flows, see the Flows section.
  • List messages: Messages that include a menu of up to 10 options. This message type gives users a simpler, more consistent way to make a selection when interacting with a business.
  • Reply buttons: Messages that include up to 3 options, each shown as a button. This message type gives users a faster way to pick from a menu when interacting with a business. They can also include up to 2 buttons that open a URL.
  • Call to action (URL): Messages with a button that opens a URL. They let you send users to a website without showing the full URL in the message text.
  • Contact information request: Messages with a button that lets users share their contact information with the business.
  • Location request: Messages with a button that asks the user to share their location.
  • Call button (voice call): Messages with a button that lets the user start a WhatsApp call to the business.
  • Multi-product messages: See the C-Commerce section.
  • Single-product messages: See the C-Commerce section.

You can combine interactive messages within the same flow.

All are sent with POST /v1/messaging; headers, common fields and the response are in HTTP connection.

General structure

All interactive messages use the type field with the value "interactive" and one of the following objects:

NameDescriptionTypeRequirements
listMessagesObject with the list message. Send only one: listMessages, replyButtons or flow (or another interactive message type).ObjectConditional
replyButtonsObject with the reply buttons. Send only one: listMessages, replyButtons or flow (or another interactive message type).ObjectConditional
flowObject with the WhatsApp Flow. Send only one: listMessages, replyButtons or flow (or another interactive message type).ObjectConditional
call_to_action_urlObject for sending a message with a button that opens a URL.ObjectRequired if you're sending a call to action (URL) message.
request_contact_infoObject for asking the user to share their contact information.ObjectRequired if you're sending a contact information request.
singleProductMessageSingle product message.ObjectConditional
multiProductMessageMulti-product message.ObjectConditional
send_location_requestLocation request from the user.ObjectConditional
call_permission_requestCall permission request. See Call permissions.ObjectConditional
voice_callCall button (voice call) message.ObjectConditional
order_detailsOrder details message (Payments Brazil).ObjectConditional
order_statusOrder status message (Payments Brazil).ObjectConditional
Previous
Coupons and limited-time offers
Next
List messages