Twilio Flex CLI Plug-in
    • Dark
      Light

    Twilio Flex CLI Plug-in

    • Dark
      Light

    Article summary

    The Twilio Flex Command Line Interface (CLI) allows users to manage Twilio resources from a terminal or command prompt. For the Workspace to load the Campaign Manager widgets and work as expected, you have to deploy the non-tethered plug-in using this CLI. This section deals with the end-to-end deployment of this plug-in.

    Notes:

    • Twilio Flex integration with Campaign Manager is only in a non-tethered model.

    • If you have any other plug-in to integrate, combine the deployment with the Twilio Flex CLI plug-in.

    Deploying the Twilio Flex CLI

    For Non-Tethered calls, deploy the Twilio Flex CLI plug-in to support Preview Dialing.

    Perform the following steps:

    1. Install Visual Studio Code or Cygwin Terminal to run the Twilio Flex commands.

    2. Download the Non-Tethered Simple Plugin and the Non-Tethered Functions from the Amazon S3 folder or any other Source shared with you.

    3. If you are using Campaign Manager Simple Plug-in for Non-Tethered, download the plugin-AcqueonNon-Tethered folder and save it on the local disk.

    4. Open the Cygwin Terminal in Administrator Mode.

    5. Point to the directory where the plug-in is saved.

    6. Set the Twilio Flex Account SID and Twilio Flex Auth Token using the following commands:

      export TWILIO_ACCOUNT_SID=YourTwilioAccountSID
      
      export TWILIO_AUTH_TOKEN=YourTwilioAuthToken

    7. Install the Twilio Flex CLI using the following command to ensure that you point to the folder where these functions are available:

      npm install twilio-cli -g
    8. Install the node modules using the following command:

      npm install
    9. Point Twilio Flex account SID and auth Token in the following .env file:

      1. REACT_APP_TWILIO_ACCOUNT_SID=<Your Twilio account sid>

      2. REACT_APP_TWILIO_AUTH_TOKEN=<Your Twilio auth token>

      3. REACT_APP_TWILIO_WORKSPACE_SID=<Your Workspace sid>

      4. REACT_APP_SERVICE_ADAPTER_URL=<Your Application Adaptor URL>

      5. REACT_APP_SERVICE_AGENTCLIENT_URL=<Your Application Agent Client URL>

      6. REACT_APP_SERVICE_CLEARSCREENPOP=false

      7. REACT_APP_SERVICE_PLUGINAUTOACCEPTCALL=true

      Notes:

      If the value is true, the plug-in auto accepts the calls. If the value is false, see Progressive and Predictive calls.

      Auto Accept Using Functions is the recommended model.

    10. Run the build Twilio Flex command:

      twilio flex:plugins:build

    11. Run the Deploy command to deploy the plugin:

      twilio flex:plugins:deploy --major --changelog "NonTetheredPlugin" --description "NonTetheredPlugin"

    12. Release the Plugin using the release command. After successful deployment of plugin with the serverless functions, launch Flex and verify that calls are dialed out as expected.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence