Reputation: 103
There is no option to turn on enhanced option for Speech recognition Result in Studio widgets.
In that case,I guess we have to use twiml redirect to another twiml or Run functuion widgets.
But,if we used that ,how will we return back to studio? using twiml.redirect and ?FlowEvent=return, with this way? But where should we use this url to get back to studio?
twiml.gather({action:'webhook.twil.io/AC..../FW...xx?FlowEvent=return'
enhanced:true} ,'Hi say your query');
But,this actually doesnt return back to studio. Or should we put url of another function in action and redirect from that function to studio?
Upvotes: 1
Views: 313
Reputation: 73100
Twilio developer evangelist here.
When you redirect out of a Studio flow to use raw TwiML you should do so using the TwiML Redirect widget.
To handle returning control to Studio, you need to specify a <Redirect>
to the Studio Webhook URL and append ?FlowEvent=return
. Any additional parameters specified in the return URL will be injected into the Studio context and addressable via Liquid template variables.
Example:
<Response>
<Say>Returning you back to the Studio Flow.</Say>
<Redirect>https://webhooks.twilio.com/v1/Accounts/{AccountSid}/Flows/{FlowSid}?FlowEvent=return&foo=bar</Redirect>
</Response>
Upvotes: 1