Twilio
Twilio integration enables you to send personalized SMS with coupons straight from the Voucherify dashboard. You can schedule segment- or event-based SMS send outs to engage your customers in the right place and time.
The integration with Twilio consumes webhook limits for sending messages.
Contents
Before you start
This guide assumes you have already familiarized yourself with the Distribution basics.
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.
From now on, you can set the default prefix (Project Settings) for each country and launch multiple international campaigns. The setting affects any future customer added without a specified dialing prefix.
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. Please note that each manual distribution is sent with a 10-minute delay, so you can introduce edits or stop the message delivery within this time.
Manual distribution delivers messages once you confirm its settings with Save & 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 actions:
- 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.
You can name the distribution and choose the message action, trigger, and audience.
Channel choice & messages
In Channels, enable SMS channel settings. You can enable many channels within a single distribution. Choose Twilio as your provider.
Edit the message template and add variables.