- Install Twilio CLI following these instructions
- Install the Infra Plugin for Twilio CLI
$ twilio plugins:install plugin-twilio-infra
- Download and Install the Pulumi CLI
- Login in to the Pulumi service. You can either use the Pulumi service backend (you need to sign up to a free account for that) or the local storage, using one of the commands below:
# Pulumi Service backend
$ pulumi login
# Local storage
$ pulumi login --local
- If you've never used the Twilio CLI with this project, create a new profile with
- Login to the project using
$ twilio profile:use <profile name>
- Add the following environment variables:
CHAT_SERVICE_SID
FLEX_WORKSPACE_SID
SMS_TASK_CHANNEL_SID
EVERYONE_TASK_QUEUE_SID
TWILIO_PHONE_NUMBER
FLEX_PROXY_SERVICE_SID
- If you don't have an environment defined, use the following command
$ twilio infra:environment:new <environment name>
- Deploy the solution using:
$ TWILIO_AUTH_TOKEN=xxxxxx twilio infra:deploy
- In the Twilio Console Settings page for Flex make sure that the "Enable Dialpad" is Enabled
- In Flex click the dialpad button (next to the microhpne on the top right corner). At the bottom of the dialpad you will find the "Outbound SMS" section.
- Type the destination number and press on START
- A new Task / Reservation is generated: Click the accpet button to accept and start chatting