In studio you can enable callers to be called-back instead of waiting;
Make sure you have Node.js as well as npm
. We support Node >= 10.12 (and recommend the even versions of Node). Afterwards, install the dependencies by running npm install
:
Next, please install the Twilio CLI.
cd callback
cp .env.example .env
# EDIT .ENV
twilio serverless:deploy
in Studio, add a "run function" widget, select your "add_callback" function and add 2 parameters :
- phone_number: the phone number to call back: {{trigger.call.From}}
- motif: the reason for the call (if any): could be any text.
cd ../plugin-callback
twilio flex:plugins:deploy --changelog "original version"
Then copy the code offered in response and run it.