Twilio Flex Plugins allow you to customize the appearance and behavior of Twilio Flex. If you want to learn more about the capabilities and how to use the API, check out our Flex documentation.
This plugin will automatically accept the incoming task and will alert the agent by playing a notification sound.
Sample demo is provided below :
Any incoming task will be accepted as shown below :
You can customize the sound played to the agent when a call connects through the use of the .env
file. See the .env.sample file for instructions and an example alert sound.
To deploy this plugin, you will need:
- An active Twilio account with Flex provisioned. Refer to the Flex Quickstart to create one.
- npm version 5.0.0 or later installed (type
npm -v
in your terminal to check) - Node.js long term support(LTS) version(type
node -v
in your terminal to check)
Make sure you have Node.js as well as npm
installed.
- Clone this repo:
https://github.com/twilio-professional-services/plugin-auto-answer-call.git
- Go to the plugin directory
cd plugin-auto-answer-call
- Install the dependencies
npm install
- Run plugin on a local environment using Twilio CLI :
twilio flex:plugins:start
- Deploy your plugin to your Flex project using Twilio CLI:
twilio flex:plugins:deploy --major --changelog "Notes for this version" --description "Functionality of the plugin"
More detailed information about deploying Flex plugins can be found here: https://www.twilio.com/docs/flex/developer/plugins/cli/deploy-and-release