Twilio Studio - Send and wait for and reply - how can I loop until desired user input

267 views Asked by At

I'm sending text suggestions for my users using Twilio. A user can respond with a "Confirm", "Decline" or send a freetext response, which I then parse and make changes accordingly (using a Make HTTP request widget), and send the new suggestion back to the user.

Is there a way to create a "while" loop for this process? every time the user doesn't respond with a "Confirm"/"Decline" - send its input to the make request widget.

Thanks in advance!

1

There are 1 answers

2
IObert On

You could do a while look by combining a Set Variables Widget with a Split Based On... Widget. Similarly to what is shown in this diagram: enter image description here

However, I think in your case the no reply outlet of the Send & Wait For Reply Widget should do the job as well.

You can configure a timeout to wait for the response, after which we will assume "No Reply" and transition accordingly. You can use this to send a followup reminder message, trigger an outgoing voice call, or update your database with no response.