Viber is a cross-platform voice-over-IP and instant messaging application that is secure, fast, and synchronized across all devices. Through Viber, brands can engage with users using rich messaging.Documentation Index
Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
MoEngage and Viber
The MoEngage and Viber integration lets you use segmentation, predictive capabilities, personalization, and triggering to message users on your Viber bot through the Viber REST Bot API.Use cases
The integration supports the following use cases:- Personalized messaging: Send personalized messages based on user preferences.
- Rich media content: Include images, videos, and files in Viber messages.
- Automated campaigns: Send messages on a schedule or trigger them based on user actions.
Methods to send messages via Viber integration
You can send messages through Viber using:- Integration via native: Use MoEngage campaigns with Viber APIs directly.
- Integration via Infobip: Send messages through the Infobip connector.
- Integration via 8x8 connector: Send text, media (images, videos, files), and call-to-action (CTA) button messages through the 8x8 Chat Apps API.
Integration via native
Prerequisites
- Viber bot: You must have a Viber bot. Messages are sent from your bot profile, so users see your bot details. To create a bot, see the Viber Partners portal.
- Active auth token: An active Viber account that supports bots (iOS or Android). During account creation, the Viber account is set as the account administrator.
- Account authentication token: A unique identifier that validates your account in API requests. After you create the account, the authentication token appears on the account edit info screen (admins only).
- Viber user IDs: A unique ID for each Viber user. After users subscribe to your bot, you can access user IDs through the Viber Users API.
- Account webhook: Define webhook and response preferences during account setup to configure message handling.
- Connected Channels add-on: Viber is part of the Connected Channels add-on. Contact your MoEngage customer success manager (CSM) to enable it for your account.
- After users send their first message to the Viber bot, they are automatically subscribed.
- Personalized campaigns can only be sent to users if you have their user identifier (phone number).
- The Viber bot does not assign a default phone number to users. You can obtain a phone number in two ways:
- Request it directly from the user by sending a broadcast message to their Viber ID.
- Access phone numbers directly if you are part of Viber’s Business Messages service.
Step 1: Connect Viber on the App marketplace
To connect Viber on the App marketplace:- On the left navigation menu in the MoEngage dashboard, click App marketplace.
-
On the App Marketplace page, search for Viber.
- Click the Viber tile.
- On the Viber page, go to the Integrate tab.
-
Open the integration dropdown and click Send messages (Native).
-
Enter the following details:
Field Required Description Connection name Yes Name of the Viber connection. Viber Auth Token Yes Your Viber auth token. The token is generated when you create the bot; admins can view it on the bot edit info screen or in the Viber Admin Panel. For more information, see Authentication token. Sender Name Yes The sender name displayed to recipients. Sender Avatar URL No URL for the sender avatar. Note: Maximum size is 100 KB. Recommended resolution is 720×720 pixels.
- Click Connect. Your Viber connection is integrated.
Step 1.1: Collect users’ Viber IDs
To send Viber messages, collect each user’s Viber ID. Viber generates these IDs; use them when calling the Viber send message API.Step 1.2: Save users’ Viber IDs in MoEngage
Add Viber IDs to MoEngage as a custom user attribute namedviber_id. You can:
- Pass the data using the Track User API.
- Upload it using User Imports in MoEngage.
Step 2: Create a Viber campaign in MoEngage
To create a campaign:- On the left navigation menu, click Engage, and then click Campaigns.
- On the All campaigns page, click + Create campaign.
-
In the Create campaign dialog, under Connected Apps, click Viber, and then select a delivery type.
- Under Select audience, click Filter users by.
- On the User property tab, select users for whom viber_id exists (you can combine this with other segment criteria).
- In step 2 (Content), select the native message connector and specify the content to send.
-
Enter the following details:
Field Required Description Connector Yes Select Send messages (Native). Connections Yes Select the connection you added in the App marketplace. Receiver ID Yes Recipient’s unique Viber user ID. You can use personalization. Tracking ID Yes Tracks messages and user replies. The tracking_datavalue you send is returned with the user’s reply. Maximum 4096 characters. - Select the Message type to send. Supported types are Text, Picture, and Video. Based on the type, enter the fields in the following tables.
Native message type fields
- Text message
- Picture message
- Video message
If you select Text, enter:
| Field | Required | Description |
|---|---|---|
| Message Content | Yes | Message text. You can use personalization. Note: Maximum 7000 or 768 characters (per Viber limits). |
| Media URL | No | Leave blank. |
| Video Size | No | Leave blank. |
| Video Duration | No | Leave blank. |
-
Test the campaign using Test. If your test user receives the message, the setup is ready.
- Publish the campaign.
Integration via Infobip
Prerequisites
- Viber bot: You must have a Viber bot. Messages are associated with your bot profile. To create a bot, see the Viber Partners portal.
- Infobip APIs: A Viber connection established with your connected Viber bot, with access to Infobip APIs.
Step 1: Connect Viber on the App marketplace
- On the left navigation menu, click App marketplace.
-
Search for Viber.
- Click the Viber tile.
- Go to the Integrate tab.
-
Open the integration dropdown and click Send messages (Infobip).
-
Enter the following details:
Field Required Description Connection name Yes Name of the Viber connection. API Base URL Yes Unique API base URL for your Infobip account. See Infobip base URL. API Key Yes Your Infobip API key. See API authentication.
- Click Connect.
Step 1.1: Collect users’ Viber IDs
Collect each user’s Viber ID for use with the Viber send message API.Step 1.2: Save users’ Viber IDs in MoEngage
Add IDs as theviber_id user attribute via the Track User API or User Imports.
Step 2: Create a Viber campaign in MoEngage
- Click Engage > Campaigns.
- Click + Create campaign.
-
Under Connected Apps, click Viber and select a delivery type.
- Under Select audience, click Filter users by.
- On the User property tab, select users for whom viber_id exists.
- In step 2 (Content), select the Infobip connector and specify content.
-
Enter the following details:
Field Required Description Connector Yes Select Send messages (Infobip). Connections Yes Select the connection from the App marketplace. Sender ID Yes Unique identifier for your Viber account (alphanumeric or numeric). You can use personalization. Note: Maximum 11 characters. User mobile number Yes User’s mobile number. You can use personalization. Note: For India, use DLT parameters; for Turkey, IYS regulations; for South Korea, use case-dependent parameters. - Select the Message type: Text, Image, Video, or File.
Infobip message type fields
- Text message
- Image message
- Video message
- File message
| Field | Required | Description |
|---|---|---|
| Message | Yes | Message content. You can use personalization. Note: Maximum 1000 characters. |
| Button Text | No | Text on the action button. Required only if adding a button. Note: Maximum 30 characters. |
| Button Action URL | No | URL or action when the button is pressed. Required only if adding a button. Note: Maximum 1000 characters. |
| Media URL | No | Leave blank. |
| Video Duration | No | Leave blank. |
| Thumbnail URL | No | Leave blank. |
| File name | No | Leave blank. |
-
Test the campaign. If the test user receives the message, the setup is ready.
- Publish the campaign.
Integration via 8x8 connector
PrerequisitesBefore configuring this connector, ensure you have:
- 8x8 Connect account: An active 8x8 Connect portal account.
- Viber channel enabled: Your 8x8 subaccount must be provisioned for Viber. Contact your 8x8 account manager or 8x8 support for provisioning.
- 8x8 API access: Ability to generate an API key and locate your Subaccount ID in the 8x8 Connect portal.
Step 1: Connect Viber on the App marketplace
- On the left navigation menu, click App marketplace.
- Search for Viber and click the Viber tile.
- Go to the Integrate tab.
-
Click Add integration, then Send messages (8x8).
-
Enter the following details:
Field Required Description Connection name Yes Name for this connector instance (for your reference in MoEngage). 8x8 Subaccount ID Yes Your 8x8 Chat Apps API Subaccount ID. In the 8x8 Connect portal, go to Channels under Messaging Apps and copy Subaccount ID. 8x8 API Token Yes Your 8x8 Chat Apps API token. In the portal, go to API Keys and copy the API Key. -
Click Connect.
Step 2: Create an 8x8 connector campaign in MoEngage
- Click Engage > Campaigns.
- Click + Create campaign.
-
Under Connected Apps, click Viber and select a delivery type.
- Under Select audience, click Filter users by.
- Select users for whom viber_id exists.
- In step 2 (Content), select the 8x8 Viber connector and specify content.
-
Configure campaign fields and message content:
8x8 message type fields
- Text message
- Image message
- Video message
- File message
| Field | Required | Description |
|---|---|---|
| Recipient Mobile Number | Yes | Mobile number in E.164 format including country code (for example, 14155552671). |
| Message Text | Yes | Text content. Can be combined with a CTA button. |
| Media URL | No | Leave blank for text messages. |
| Video Content Details | No | Leave blank for text messages. |
| Button Caption | Conditional | CTA button title (for example, Shop Now). Required if Button Action URL is provided. |
| Button Action URL | Conditional | HTTPS destination when the user taps the button. Required if Button Caption is provided. |
Message combinations
The connector handles these content combinations:- Text + button: Text message with a CTA button.
- Image + button: Image with a CTA button.
- Video + button: Video with a CTA button.
- Media only: Send only an Image, Video, or File by setting Content Type and Media URL (and Video Content Details for video).
Analytics and delivery tracking
The 8x8 connector tracks delivery status. MoEngage creates these events from the 8x8 API response:- Connected App Campaign Sent: Triggered when the 8x8 API accepts the message request (HTTP 200).
- Connected App Campaign Failed: Triggered when the 8x8 API returns a non-200 response.
Send a Viber message to a channel or group
- Create a MoEngage user for the channel or group. Set the Viber ID to the channel or group ID.
- Create a segment that includes only that user. If multiple users are in the segment, the message is sent to the channel or group multiple times.
- In step 2 of campaign creation, enter the channel or group Viber ID (personalization supported).
Campaign analytics
MoEngage campaign analytics help you measure performance. For general Connected Apps analytics, see Connected Apps campaign analytics. By default, Viber campaigns include:- Attempted: After frequency capping (FC) exclusions, the number of users who qualified for the campaign and to whom MoEngage attempted delivery.
- Failed: Users for whom Viber did not send a message, or users for whom MoEngage could not resolve user or event attributes used in the campaign.
- Successfully sent: The campaign is marked successful when Viber APIs accept the send request (HTTP 200) for users, groups, or rooms. For response details, see Viber REST Bot API documentation.