Skip to content

Twilio WhatsApp Webhook

Twilio WhatsApp Webhook is a trigger: the flow runs every time someone writes on WhatsApp to your Twilio number. It delivers the message received and, if there is one, the attached file. The flow answers with the deployed version; the details to connect it with Twilio appear when calling the flow from another application.

When to use it

  • Serving your customers on WhatsApp with an agent.
  • Receiving orders or bookings on WhatsApp and recording them.
  • Transcribing the voice notes that arrive on WhatsApp.

Configuration

You need a Twilio WhatsApp Integration credential with your Twilio account details and your WhatsApp number. See Credentials.

FieldWhat it does
Credential (required)The Twilio WhatsApp Integration credential.
DataTesting only: paste an example of what Twilio sends to run the flow without waiting for a real message.

Advanced options

FieldWhat it does
Store MessagesStores the message in the conversation history. On by default.

Output

  • Data: all the data Twilio sends, such as the sender’s number.
  • Message: the message text, ready to pass to an agent.
  • Media: the attached file, such as an image or a voice note, to connect to components that receive files.

Example

A restaurant takes bookings on WhatsApp.

  1. Add Twilio WhatsApp Webhook and connect Message to an agent with access to the bookings calendar.
  2. Connect the agent’s reply to Twilio WhatsApp to answer.
  3. Deploy the flow and set in Twilio the address NappAI gives you.