Skip to content

guvarallo/plugin-conversations-send-wa-audio

Repository files navigation

Twilio Flex Send WhatsApp Audio Plugin

Disclaimer

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.

CURRENT LIMITATION AS OF OCT/2022

As of Oct/2022, due to limitations in the way web browsers capture audio media, it is ONLY possible to record the audio if you open Flex in Firefox. The good thing is that I added the capability of rendering media in the chat window, regardless of the browser you use. You can still install it in your account and use Flex with other browsers normally, it will simply disregard the recording controls and allow you to take advantage of the media rendering feature.

Important note

To use this plugin you must be using the latest version of Flex UI. If you are still on UI 1.x.x, use this guide to migrate to UI 2.x.x

Information about the plugin

This plugin adds a recording control below the text input area, in order to record audio trough the web browser and send it. On top of this, it renders all media files in the chat window. For images, it adds a capability to open them at a modal.

demo

Setup

  • First install the dependencies:
# If you use npm
npm install
  • Inside the /public folder, create a appConfig.js file according to the appConfig.example.js file.

  • Finally, to deploy the plugin, run:

twilio flex:plugins:deploy --changelog "WRITE YOUR CHANGELOG HERE"
  • You can also run the plugin locally for testing purposes:
twilio flex:plugins:start

About

Twilio Flex Send WhatsApp Audio Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published