In this blog, we will learn how to read when an incoming message is received in Twilio using Power Automate.

Power Automate Flow creation

Open https://make.powerapps.com/ and create a new automated flow in Power Automate using the "When an HTTP request is received" trigger.

To do this, search for "HTTP" and select the HTTP request trigger, as shown below.

HTTP request

Cloud Flow

Give the required flow name and click on Create.

Next, add Compose compound and add the below formal to read input from the above step.

decodeUriComponent(
    string(
        triggerBody()
    )
)

Compose compound

Next to read the received message, from number and to number we need each initial variable in flow.

From Number add below formal in value: first(split(split(outputs('Compose'), 'From=')[1], '&'))

Read received message

To Number add below formal in value.

first(split(split(outputs('Compose'), 'To=')[1], '&'))

Number add

To read Message add below formal value.

first(split(split(outputs('Compose'), 'Body=')[1], '&'))

Read Message add

And save the flow, once flow is saved an HTTP POST URL will get generated as show in blow screen.

HTTP POST URL

Configuration power automates flow URL in Twilio.

Logging to https://console.twilio.com/

Thank you!