Skip to main content

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.

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.

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

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.
Viber lets you send promotional and non-promotional messages when users have given consent. Users must have subscribed to your Viber bot to receive messages.
  • 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:
  1. On the left navigation menu in the MoEngage dashboard, click App marketplace.
  2. On the App Marketplace page, search for Viber. App Marketplace search results for Viber
  3. Click the Viber tile.
  4. On the Viber page, go to the Integrate tab.
  5. Open the integration dropdown and click Send messages (Native). Viber integration dropdown with Send messages Native selected
  6. Enter the following details:
    FieldRequiredDescription
    Connection nameYesName of the Viber connection.
    Viber Auth TokenYesYour 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 NameYesThe sender name displayed to recipients.
    Sender Avatar URLNoURL for the sender avatar. Note: Maximum size is 100 KB. Recommended resolution is 720×720 pixels.
    Viber native connection configuration form
  7. 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 named viber_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:
  1. On the left navigation menu, click Engage, and then click Campaigns.
  2. On the All campaigns page, click + Create campaign.
  3. In the Create campaign dialog, under Connected Apps, click Viber, and then select a delivery type. Create campaign dialog with Viber and delivery types
  4. Under Select audience, click Filter users by.
  5. On the User property tab, select users for whom viber_id exists (you can combine this with other segment criteria).
  6. In step 2 (Content), select the native message connector and specify the content to send.
  7. Enter the following details: Viber native campaign content configuration
    FieldRequiredDescription
    ConnectorYesSelect Send messages (Native).
    ConnectionsYesSelect the connection you added in the App marketplace.
    Receiver IDYesRecipient’s unique Viber user ID. You can use personalization.
    Tracking IDYesTracks messages and user replies. The tracking_data value you send is returned with the user’s reply. Maximum 4096 characters.
  8. 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

If you select Text, enter:
FieldRequiredDescription
Message ContentYesMessage text. You can use personalization. Note: Maximum 7000 or 768 characters (per Viber limits).
Media URLNoLeave blank.
Video SizeNoLeave blank.
Video DurationNoLeave blank.
For more information, see the Viber REST Bot API send message documentation.
  1. Test the campaign using Test. If your test user receives the message, the setup is ready. Viber campaign test functionality
  2. 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

  1. On the left navigation menu, click App marketplace.
  2. Search for Viber. App Marketplace search results for Viber
  3. Click the Viber tile.
  4. Go to the Integrate tab.
  5. Open the integration dropdown and click Send messages (Infobip). Viber Infobip integration option
  6. Enter the following details:
    FieldRequiredDescription
    Connection nameYesName of the Viber connection.
    API Base URLYesUnique API base URL for your Infobip account. See Infobip base URL.
    API KeyYesYour Infobip API key. See API authentication.
    Viber Infobip connection form
  7. 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 the viber_id user attribute via the Track User API or User Imports.

Step 2: Create a Viber campaign in MoEngage

  1. Click Engage > Campaigns.
  2. Click + Create campaign.
  3. Under Connected Apps, click Viber and select a delivery type. Create campaign with Viber delivery types
  4. Under Select audience, click Filter users by.
  5. On the User property tab, select users for whom viber_id exists.
  6. In step 2 (Content), select the Infobip connector and specify content.
  7. Enter the following details: Viber Infobip campaign content screen
    FieldRequiredDescription
    ConnectorYesSelect Send messages (Infobip).
    ConnectionsYesSelect the connection from the App marketplace.
    Sender IDYesUnique identifier for your Viber account (alphanumeric or numeric). You can use personalization. Note: Maximum 11 characters.
    User mobile numberYesUser’s mobile number. You can use personalization. Note: For India, use DLT parameters; for Turkey, IYS regulations; for South Korea, use case-dependent parameters.
  8. Select the Message type: Text, Image, Video, or File.

Infobip message type fields

FieldRequiredDescription
MessageYesMessage content. You can use personalization. Note: Maximum 1000 characters.
Button TextNoText on the action button. Required only if adding a button. Note: Maximum 30 characters.
Button Action URLNoURL or action when the button is pressed. Required only if adding a button. Note: Maximum 1000 characters.
Media URLNoLeave blank.
Video DurationNoLeave blank.
Thumbnail URLNoLeave blank.
File nameNoLeave blank.
For more information, see Infobip send Viber messages.
  1. Test the campaign. If the test user receives the message, the setup is ready. Campaign test screen
  2. 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

  1. On the left navigation menu, click App marketplace.
  2. Search for Viber and click the Viber tile.
  3. Go to the Integrate tab.
  4. Click Add integration, then Send messages (8x8). 8x8 Viber integration option
  5. Enter the following details:
    FieldRequiredDescription
    Connection nameYesName for this connector instance (for your reference in MoEngage).
    8x8 Subaccount IDYesYour 8x8 Chat Apps API Subaccount ID. In the 8x8 Connect portal, go to Channels under Messaging Apps and copy Subaccount ID.
    8x8 API TokenYesYour 8x8 Chat Apps API token. In the portal, go to API Keys and copy the API Key.
  6. Click Connect. 8x8 Viber connection confirmation

Step 2: Create an 8x8 connector campaign in MoEngage

  1. Click Engage > Campaigns.
  2. Click + Create campaign.
  3. Under Connected Apps, click Viber and select a delivery type. Create Viber campaign delivery type
  4. Under Select audience, click Filter users by.
  5. Select users for whom viber_id exists.
  6. In step 2 (Content), select the 8x8 Viber connector and specify content.
  7. Configure campaign fields and message content: 8x8 Viber campaign content configuration

8x8 message type fields

FieldRequiredDescription
Recipient Mobile NumberYesMobile number in E.164 format including country code (for example, 14155552671).
Message TextYesText content. Can be combined with a CTA button.
Media URLNoLeave blank for text messages.
Video Content DetailsNoLeave blank for text messages.
Button CaptionConditionalCTA button title (for example, Shop Now). Required if Button Action URL is provided.
Button Action URLConditionalHTTPS 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.
Use these events for analytics dashboards, performance tracking, and follow-up actions.

Send a Viber message to a channel or group

  1. Create a MoEngage user for the channel or group. Set the Viber ID to the channel or group ID.
  2. 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.
  3. 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.