- Automated Birthday Campaigns via various Messaging Channels. Automatically send personalized birthday offers to customers via their preferred messaging channel (e.g., WhatsApp, SMS, Viber) to enhance engagement and encourage voucher redemption.
- Cart Abandonment Recovery with Personalized Discounts. Use personalized discount vouchers sent through a customerās preferred messaging channel to win back those who have abandoned their shopping carts.
- Loyalty Program Engagement. Reward loyal customers by sending real-time updates about their loyalty status or rewards through their chosen communication platform.
- Event-Triggered Campaigns (e.g., Black Friday Flash Sales). Maximize engagement during special events by sending time-sensitive offers across multiple messaging channels, ensuring timely outreach to various customer segments.
- Appeasement Codes for Customer Resolutions. Customer support agents can quickly generate and share appeasement codes (e.g., discounts or free shipping vouchers) via a customerās preferred channel directly from their support platform to resolve issues swiftly and improve satisfaction.
- Proactive Problem-Solving with Personalized Offers. When an issue is detected (e.g., delayed shipment), a personalized apology voucher or discount can be automatically generated and sent to the customer, preemptively addressing concerns and showing appreciation for their patience.
- Feedback-Based Incentives. After a customer support interaction, send a satisfaction survey, and upon completion, instantly deliver a voucher or discount code as a token of appreciation, fostering engagement and encouraging feedback.
Overview of the flow
The flow involves three steps:- Triggering the Flow. The trigger can be:
- External source (e.g., CRM, CDP, or eCommerce)
- Action or event,
- Predefined audience in Infobip,
- Inbound message,
- Change in personās profile.
- Calling Voucherify API: Infobip flow calls Voucherify to generate and retrieve a personalized voucher code.
- Sending WhatsApp Message: Infobip extracts the voucher code and uses it in a WhatsApp message to the customer.
Step-by-Step Configuration
Follow these steps to set up this scenario.Creating a Flow in Infobipās Flow Builder
- Access the Flow Builder: Navigate to the Campaigns section and select Flows to create a new flow.
- Define the Trigger: Choose External Source and Flow API as the starting point. This allows the flow to be triggered externally via an API call.Ā
You will get the Infobipās API endpoint URL for this specific flow.
Making an API Call to Voucherify
- Add āCall APIā Block in Infobip flow.
- Configure the API Call to Voucherify
To generate unique personalized vouchers, a Voucherify Discount Code Campaign needs to be configured. Then, the codes can be generated via Voucherifyās Create Publication API endpoint.You can pass
- Request URL:
https://{cluster}.voucherify.io/v1/publications - HTTP Method: POST
- Header: Include Content-Type: application/json and the necessary Voucherify API credentials (X-App-Id and X-App-Token).
- Body Payload: Pass the data needed for Voucherify to create the voucher, such as the
customer_id,campaign_id, and any other metadata required in JSON format.
customer.source_id as placeholder so that either ID from external source or Infobipās internal ID could be used in the runtime. Voucherify can work with any external ID.Extracting the Voucher Code
Once the API call is successful, configure Infobip to extract the voucher code from the API response. On the Response tab of Call API block configuration, turn āWait until response is receivedā toggle on. In Response Body Variable, add a Variable. Use JSON path expression$.voucher.code to map the voucher code to a flow variable, e.g., {voucher_code}. A flow variable can be either preconfigured in the flow settings or configured in the context of the Call API block configuration.
For the sake of simplicity, the API Call block error handling configuration capabilities is skipped here.
Sending the WhatsApp Message with Voucher Code
- Connect āSend WhatsApp Messageā block to āCall APIā block:
- Configure WhatsApp Messaging Block:
- Use a message template that includes personalized elements like the customerās name and the generated voucher code.
- Include the
{voucher\_code}variable extracted earlier to insert the voucher code dynamically in the WhatsApp message. - Example message template:
šHappyBirthday{firstName}!Hereāsa$50discountonyournextbouquet.Usecode{voucher_code}toredeemyourgift!
{firstName} here is a standard Infobip variable; {voucher_code} is a flow-specific variable that was configured earlier.
Launching the flow
Make sure you give a name to the flow and hit the Validate button. If everything is configured correctly, the flow is ready to launch. You can observe the flowās live performance, e.g., the number of engaged users or total engagements, on Infobip canvas.Voucherify must be integrated with the e-commerce store to enable customers to redeem their voucher codes. This integration ensures that the generated voucher codes sent through the Infobip flow can be validated and redeemed during checkout.

