Skip to content

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.

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.

  1. In the Twilio Console, go to Explore Products > Studio.
  2. Create a new flow and give it a name.
  1. In the Studio canvas, drag a Make HTTP Request widget onto the flow.
  2. Connect the Incoming Message trigger to the widget.

Set the following values in the widget’s configuration panel:

FieldValue
Widget NameTalkyto-message
Request MethodPOST
Request URLhttps://us-central1-twiconnect-257c6.cloudfunctions.net/receiveSms
Content-TypeApplication/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}}"
}

After configuring the widget, save the flow and click Publish.

  1. In the Twilio Console, open your phone number’s settings.
  2. Under Messaging Service, select None.
  3. Under A message comes in, select Studio Flow.
  4. Choose the flow you just created.
  5. Save the number settings.

Incoming messages to that number now pass through your Studio flow before Talkyto receives them.


Related guides: