Studio workflow for messaging
This guide is for advanced users who want Twilio Studio to process incoming messages before Talkyto receives them. Studio handles routing and logic; Talkyto handles delivery, logging, and app features.
When to use this setup
Section titled “When to use this setup”Use a Studio flow when you need to apply logic to incoming messages — for example, auto-replies, keyword routing, or conditional branching — before the message reaches Talkyto.
Create a Studio flow
Section titled “Create a Studio flow”- In the Twilio Console, go to Explore Products > Studio.
- Create a new flow and give it a name.
Add a Make HTTP Request widget
Section titled “Add a Make HTTP Request widget”- In the Studio canvas, drag a Make HTTP Request widget onto the flow.
- Connect the Incoming Message trigger to the widget.
Configure the widget
Section titled “Configure the widget”Set the following values in the widget’s configuration panel:
| Field | Value |
|---|---|
| Widget Name | Talkyto-message |
| Request Method | POST |
| Request URL | https://us-central1-twiconnect-257c6.cloudfunctions.net/receiveSms |
| Content-Type | Application/JSON |
The URL above is Talkyto’s incoming message webhook. Enter it exactly as shown.
Under Request Body, add the following JSON fields to pass message metadata to Talkyto:
{ "To": "{{trigger.message.To}}", "From": "{{trigger.message.From}}", "AccountSid": "{{trigger.message.AccountSid}}", "Body": "{{trigger.message.Body}}"}Save and publish the flow
Section titled “Save and publish the flow”After configuring the widget, save the flow and click Publish.
Connect the flow to your phone number
Section titled “Connect the flow to your phone number”- In the Twilio Console, open your phone number’s settings.
- Under Messaging Service, select None.
- Under A message comes in, select Studio Flow.
- Choose the flow you just created.
- Save the number settings.
Incoming messages to that number now pass through your Studio flow before Talkyto receives them.
Related guides: