This Studio Flow provides an example of how to perform a Lookup with the customer's number using the Lookup API. This is used to retrieve the Country Code.
The Country Code is then passed into a function to get the language code. The language code is then passed into a function to dynamically retrieve the greeting message, avoiding a lot of extra management in Studio itself.
This flow is dependent on the functions in the functions
folder of this repository. Please ensure they are deployed before deploying the Studio Flow. Information on Twilio Functions can be found here:
https://www.twilio.com/docs/runtime/functions
The Studio Flow JSON can be imported into a new Studio Flow in your own Twilio project. Instructions for importing a Studio Flow JSON file can be found here:
https://www.twilio.com/docs/studio/user-guide#importing-flow-data
After importing the Studio Flow, it may be necessary to edit the Function widgets to point to your own versions of the functions. If so, open the newly imported Studio Flow and go through each widget starting with the word Function
and select the correct function from the dropdown list.
This Studio Flow provides an example of how to handle multiple languages in a voice flow using Studio Say/Gather widgets.
The prompt verbiage for the Say widgets is stored in flow variables at the beginning of the Flow for easy management and editing in the future, so maintainers don't have to hunt for the prompts in what will inevitably be a very large flow.
This flow is dependent on the functions in the functions
folder of this repository. Please ensure they are deployed before deploying the Studio Flow. Information on Twilio Functions can be found here:
https://www.twilio.com/docs/runtime/functions
The Studio Flow JSON can be imported into a new Studio Flow in your own Twilio project. Instructions for importing a Studio Flow JSON file can be found here:
https://www.twilio.com/docs/studio/user-guide#importing-flow-data
After importing the Studio Flow, it may be necessary to edit the Function widgets to point to your own versions of the functions. If so, open the newly imported Studio Flow and go through each widget starting with the word Function
and select the correct function from the dropdown list.
This sample plugin shows you how to auto accept a chat based task