The integration with Twilio consumes webhook limits for sending messages.
Integration
The integration doesn’t require any line of code and comes down to 3 steps:- In Home section in Voucherify, open the Integrations tab and choose Twilio.
- Provide the required credentials from your Twilio account: Account SID, Auth Token, and Sender phone number.
- Confirm with CONNECT.
Coupon distribution with Twilio
When your Twilio account is already integrated, let’s see how to distribute SMS with coupons from the Voucherify dashboard. Setting up the distribution starts from running the Distribution Manager. Go to the Distributions tab in the Engagement section in your dashboard. Now, decide whether you want to set up manual or automatic distribution:Manual distribution
Manual distribution delivers messages once you confirm its settings with Save and send. Each manual distribution is sent with a 10-minute delay, so you can introduce edits or stop the message delivery within this time.- Provide the distribution name.
- In Trigger – Manual message, choose your audience: either a single customer, or a customer segment. You can define a new customer segment by clicking the funnel icon and Add new segment in the pop-up window.
- Define the action:
- Notify customers about promotion
- Send and publish unique codes from campaign
- Send plain message to customers
- In Summary, check your configuration and click Save & Send.
Automatic distribution
Automatic distribution can trigger a message in response to one of the following events:- Changes in a chosen customer segment:
- Customer entered segment
- Customer left segment
- Voucher-related activity:
- Gift credits added
- Loyalty points added
- Loyalty points expired
- Voucher redeemed
- Voucher redemption rolledback
- Customer rewards:
- Reward redemption
- Cart-related activity (once your order data are synchronized with Voucherify, distribution can respond to changes in customers’ orders):
- Order update
- Order has been paid
- Order creation
- Order canceled
- Customer-related activity:
- Customer entered loyalty tiers structure
- Customer exited loyalty tiers structure
- Customer loyalty tier upgraded
- Customer loyalty tier downgraded
- Customer loyalty tier prolonged
- Customer rewarded loyalty points
- Customer was referred
- Publishing codes:
- Successfully published – the message is sent once the code from a campaign is assigned to a customer.
- Custom events – Send messages to customers when custom event was created for them.

