I created a simple call screener using Twilio Studio Flows.
How it works:
- Someone calls my Twilio number
- A greeting is played
- If they hang-up or record audio
- Twilio sends a SMS text, with the audio recording URL, to my actual phone number
- The
Media URL
value is{{widgets.RECORD_VM.RecordingUrl}}
according to the docs
Visual:
Problem:
- Most of the time, the Flow fails with ERROR - 11200
- If I drill into one of the errors and replay the request, the audio recording is returned.
- It feels like there needs to be a pause between the time the
RECORD_VM
step andSEND_SMS
steps in the Flow. - Some pause to give Twilio time to write the audio recording to a database so it can be retrieved by the
SEND_SMS
step. - But it I don't see an option for this in Flow.
How should I troubleshoot and address this?
The fix ended up being:
{{widgets.RECORD_VM.RecordingUrl}}
from theMEDIA URL
field to theMESSAGE BODY
field as shown.