Objective
Create and configure a Twilio Studio Flow that integrates with your WhatsApp sender, enabling seamless routing of inbound messages to the Flow for automated responses or further actions.
Product
Programmable Messaging
Environment
legacy Twilio Console
Procedure
Create your Studio Flow
We'll start with a fresh Twilio Studio Flow. Log into your Twilio account and navigate to the Studio Dashboard, then tap the + icon to create a new Flow. A "Flow" is the series of Twilio elements and applications that you orchestrate through Studio.
You can name your Flow anything you like, for example Customer Support.
You'll notice that the Studio Canvas comes with a Widget already in place. That's the Trigger (Start) Widget, which kicks off the Flow when the trigger that is specified is fired.
Connect your WhatsApp Sender to your Studio Flow
Next, connect the Studio Flow to your WhatsApp number ("Sender"). Click on the Trigger (Start) Widget and locate the Webhook URL field in the right-hand menu. Copy that URL to your clipboard.
Next, navigate to your WhatsApp Senders in the Twilio console. Click to select the sender that you want to use with this Studio Flow. Paste the Webhook URL that you copied from your Studio Flow into the field Webhook URL for incoming messages. Don't forget to click Update WhatsApp Sender.
Now, any time you receive an inbound message on your selected WhatsApp-enabled sender (number), it will be routed to your new Studio Flow.