This repo contains a Flex plugin and the Twilio serverless function needed to receive WhatsApp attachments in Flex.
- Follow this blogpost to add WhatsApp to your Flex istance
- Install the Flex plugin for Twilio CLI
cd
intoserverless
folder- Copy
env.template
into a new.env
file - In the
.env
file fill in Twilio Account SID and Auth Token - Install dependencies
npm install
- Provision your Flex istance using
node provision.js
cd
intoplugin-whatsapp-attachment
- Install dependencies
npm install
- Run locally
twilio flex:plugins:start
- Deploy
twilio flex:plugins:deploy