Code Monkey home page Code Monkey logo

flex-whisper's Introduction

Twilio Flex Supervisor Whisper Plugin

This plugin enables supervisors to not only listen in to calls, but optionally also speak to the agent without the customer noticing.

Supervisor whisper extension screenshot

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.

Requirements

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:

# for both the subfolders functions and plugin-coaching
cd

# If you use npm
npm install

Next, please install the Twilio CLI by running:

brew tap twilio/brew && brew install twilio

Finally, install the Flex Plugin extension and the Flex Serverless extension for the Twilio CLI:

twilio plugins:install @twilio-labs/plugin-flex@beta
twilio plugins:install @twilio-labs/plugin-serverless

Deployment

This repo consists of two parts:

  • a Twilio Function, which modifies the conference to enable/disable whispering
  • a Twilio Flex Plugin to give supervisors an interface to trigger the function

Deploy the Twilio Function

  1. Rename /functions/.env.example to .env and add your Twilio AccountSid and AuthToken
  2. Run twilio serverless:deploy in your console
  3. Keep the function URI (looks like https://functions-12345.twil.io/coachControl)

Deploy the Twilio Flex Plugin

  1. Rename /plugin-coaching/.env.example to .env and set COACHING_FUNCTION to the URI copied from step 3 of deploying your Twilio Function
  2. Run twilio flex:plugins:deploy --changelog "Initial release" and follow the instructions to release the plugin

Disclaimer

This plugin was written as an example to quickstart other developers with their own project. This plugin has not been tested extensively, especially not in a production environment, and should be treated as such. No guarantees are given, no liability is assumed.

flex-whisper's People

Stargazers

 avatar Army Nougues avatar  avatar Charlie Weems avatar Matthias Damm avatar Thao Le avatar

Watchers

James Cloos avatar andrej avatar

flex-whisper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.