Skip to content

dremin/flex-custom-channels-webchat-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio Flex Web Chat UI Custom Channels Sample

The out-of-box web chat UI sample does not allow testing custom chat channels; it only allows testing the web channel type. This sample solution deploys a serverless function to create a custom chat channel that the UI consumes without further modification necessary.

Instructions

  1. First, to deploy the serverless function:
cd serverless-functions
npm install
twilio serverless:deploy

This will return the function URL. Keep a note of this to use for step 3.

  1. For the webchat UI, install all dependencies by running:
cd ..
npm install
  1. Copy webchat-appConfig.sample.js in public/assets folder and configure accordingly to use your Twilio account and the function URL from step 1.
cp public/assets/webchat-appConfig.sample.js public/assets/webchat-appConfig.js
  1. Start Flex UI by running:
npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published