Home » Use Cases

Automated Loyalty Program Points

Viber use case - Automated loyalty points - high-level overview

Welcome messages for new members of a loyalty program can stimulate your customers to explore new benefits of purchasing your goods or services as well as share their experience and give feedback.

Use Flow to create, customize, and send welcome messages. Additionally, send automated messages using call API when your customers want to check how many loyalty points they’ve earned so far.

This use case will show you how to create a welcome message for new members of your loyalty club and show them their loyalty points status.

Process Workflow

Viber use case - Automated loyalty points - process diagram


Some features included in this use case are available within our Moments solution only. Please contact your dedicated Customer Success Manager to learn more.


Steps over Web Interface

  1. Log in to the Infobip web interface and navigate to the Communicate module > CREATE FLOW > Start from Scratch > Flow API.

  2. Name your campaign.

  3. Add the Send Viber message element. Select the sender and enter the message content. Click Show Advanced options to add rich content (picture or button with a URL to loyalty program details). Set promotional label in advanced options. For example: “Dear {First Name}, thank you for shopping at Lux Dynamic. Send the keyword POINTS to check your loyalty points or click on the button to see the loyalty program details.” For a more personal approach use variables such as subscriber`s first name.

Click CLOSE when finished editing the message.

Viber use case - Loyalty points - send a Viber message

  1. Add the Evaluate inbound message element and select Viber as your channel.

  2. Choose the same sender as you used in the previous element and then set the conditions.

  3. In this case, when you expect a specific answer, it should be set like this: “IF… the keyword is POINTS”

  4. From the Keyword is POINTS, add the Call API element to send and receive data from your API management service over HTTP(S) requests.

  5. Specify the URL on which the http(s) request will be sent. According to your API features, specify the http(s) method. If required by your system, enter key-value request header pair. Specify the key-value parameter in the request body.

Viber use case - loyalty points - call API details

  1. Enable Wait until response is received check box and Save to Variable from Response Body check box.

  2. Provide Variable details (name, data type, and navigation) to the value. Add them after the response is received condition.

Viber use case - loyalty points - call API variables

  1. From the Response is Received, add the Send Viber message element. Choose a sender and enter the message content. For example: “You currently have {Points} points on your loyalty account.”

  2. Once finished, click VALIDATE and then LAUNCH. Here’s how the entire flow looks like:

Viber use case - Loyalty points - entire flow finished


To add new people to the flow, use People API.

Related Products



Transform all your customer data into messaging moments using multiple channels and targeted messaging.

Use Viber Business Messages to connect with your customers.

Create rich customer profiles for more targeted communication.