This is the TL;DR; to setup your Twilio WhatsApp Mother's Day photo Collection or any photo Collection you like.
Upload the images overlay-mother.png
and blank.png
to your Cloudinary Media Library
Go to your Twilio Studio Dashboard and create a new flow using import from json use the JSON File in this repository
Go to your Twilio Functions Dashboard and add the following environment variables and dependencies
Environment Variables:
- CLOUDINARY_URL - You can find this here
- PICTURE_WIDTH - I used 1200 for postcard sized printing
- PICTURE_HEIGHT - I used 1600 for Postcard sized printing
- PICTURE_OVERLAY_ID - The name of the overlay image after you have uploaded it to cloudinary. Warning cloudinary may change the name of your image when you upload it.
Dependencies:
- promisify
- got
- cloudinary
Create 2 Functions filled with the code from the two javascript files in this repository.
Go to your Twilio Studio Flow and edit the Function URLs to reference your Twilio Functions
Copy your Studio Flow Webhook URL into your WhatsApp Sand box Configuration
Test it
I can’t wait to see what you build with Twilio WhatsApp. Let me know what you’re working on at: Twitter - @chatterboxCoder Email - [email protected] GitHub - nokenwa