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 display the hold time for when the agent puts the user on hold. The hold time would appear both on the agent view as well as the teams view.
For the Flex UI 1.x version of this plugin, see the flex-ui-1 branch.
Sample demo is provided below :
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-hold-time.git
-
Go to the plugin directory
cd plugin-hold-time
-
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