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
cdintoserverlessfolder- Copy
env.templateinto a new.envfile - In the
.envfile fill in Twilio Account SID and Auth Token - Install dependencies
npm install- Provision your Flex istance using
node provision.jscdintoplugin-whatsapp-attachment- Install dependencies
npm install- Run locally
twilio flex:plugins:start- Deploy
twilio flex:plugins:deploy