'Twilio Flow replying to "Send and wait for reply" not triggering next widget
I'm trying to set up a Flow with a Send and wait for reply widget (triggered with the REST API), however, the reply doesn't seem to trigger the next widget (handle_welcome...) and instead triggers the Incoming Message for the Flow (handle_incoming...).
Is there a way to set up a Flow so that it knows that the received SMS is a reply and not just a generic Incoming Message?
Here is a screenshot of the flow:

I only have one number set up and that is set to trigger the Studio Flow on an incoming message.
Also, I'm not sure if it makes a difference but I have Concurrent calls trigger enabled.
Solution 1:[1]
Make sure that you do not have the phone number associated to Service. I had created a service, associated the number and that seems to have short circuited the flow. I logged a ticket with Twilio and they kindly instructed me to remove it. Once I removed it, the flow worked as expected:
Remove the number (:warning: if this is not required for your service. Else, purchase a new number and use that with your flow)

References
Solution 2:[2]
To use the REST API trigger with a subsequent wait and reply widget, the phone number you send from can not be associated with a messaging service. Remove that association and then you will be able to use the flow with both REST API trigger and incoming message trigger.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Foestauf |

