This repository is meant as an example on how one can create a click to dial functionality for internal agents. This code is not meant to be deployed to production as it might contain security vulnerabilities.
- Active instance of Twilio Flex
- Dialpad activated, currently a Pre-Release Feature
git clone https://github.com/andrej-s/twlo-clicktodial
cd twlo-clicktodial
npm install
cp .env.example .env
- Add credentials and configuration in
.env
npm start
- Head over to http://localhost:3000/
- Select active user and enter a phone number to dial in E164 format - if you are on a trial, you can only call verified phone numbers
- A task will be accepted in Twilio Flex and a call is initiated