This plugin is no longer maintained. Agent Assistance has been migrated to Twilio Professional Services - Flex Project Template. Instead of the Supervisor Barge Coach and Agent Assistance Plugins being seperate, I've combined those into one Supervisor "Suite" within the Flex Project Template. This feature is now supported for 2.x Flex. I hope you enjoy the enhancements!
For reference to the specific Supervisor Barge Coach feature, you can find that here: https://github.com/twilio-professional-services/flex-project-template/tree/main/plugin-flex-ts-template-v2/src/feature-library/supervisor-barge-coach
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 adds the ability for the agent to ask for assistance from a supervisor. While on a task the agent can click the "Agent Assistance" button to alert supervisors that they need assistance. From the Supervisor perspecitve, they will receive an alert that gives them the ability to navigate to the Team's View tab. From the team's view tab, the Task Card will show as Red for any agent that requires assistance. Upon monitoring a call or if the agent clicks to turn off assistance, the will clear the Task Card back to normal.
This plugin pairs extremely well with the Supervisor Barge/Coach Plugin (which gives the Supervisor the ability to barge into the call or coach the agent):
https://github.com/twilio-professional-services/plugin-supervisor-barge-coach
This is the agent assistance button available to the agent while on a task:

Once the agent has clicked the Agent Assistance button, this Alert will broadcast to each supervisor

Once the Supervisor navigates to the Team's View tab, they will see which agents are in need of assistance
This button is available to Supervisors to mute the Agent Assistance Alerts, if they wish

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 -vin your terminal to check) - Node.js version 10.12.0 or later installed (type
node -vin your terminal to check) - Twilio CLI along with the Flex CLI Plugin and the Serverless Plugin. Run the following commands to install them:
# Install the Twilio CLI npm install twilio-cli -g - A GitHub account
Make sure you have Node.js as well as npm installed.
Navigate to the primary plugin folder and run NPM install for the plugin
cd plugin-agent-assistance
npm installFrom the public folder, create the appConfig.js
cd public
rename appConfig.example.js to appConfig.jsIn order to develop locally, you can use the Webpack Dev Server by running (from the root plugin directory):
Twilio flex:plugins:startThis will automatically start up the Webpack Dev Server and open the browser for you. Your app will run on http://localhost:3000. If you want to change that you can do this by setting the PORT environment variable:
When you make changes to your code, the browser window will be automatically refreshed.
When you are ready to deploy your plugin, in your terminal run:
Run:
twilio flex:plugins:deploy --major --changelog "Notes for this version" --description "Functionality of the plugin"
For more details on deploying your plugin, refer to the deploying your plugin guide.
After running the suggested next step with a meaningful name and description, navigate to the Plugins Dashboard to review your recently deployed and released plugin. Confirm that the latest version is enabled for your contact center.
You are all set to test the Agent Assitance feature on your Flex instance!
September 24, 2021
- Improved how the Render works within the Supervisor Alert Component. Previous design was causing those components to re-subscribe to sync docs.
May 25, 2021
- Initial Release of the Agent Assistance Plugin
This software is to be considered "sample code", a Type B Deliverable, and is delivered "as-is" to the user. Twilio bears no responsibility to support the use or implementation of this software.