Skip to main content

Setup

You will need:
  1. A Viber bot account. Make a note of the auth token.
  2. An active webhooks server that can receive POST requests from Viber. Viber provides a Node.js utility for handling these requests.
In Courier, navigate to the Viber Integration page, enter your auth token and sender name, then click “Save.”

Webhooks Server

Before sending notifications, Viber requires a webhooks server to be registered:
This server will receive events from Viber such as UserIDs of users who subscribe, as well as delivery status events.

Profile Requirements

To send a direct message to a user, supply the Viber UserID to the viber.receiver property of the recipient profile. The recipient must have an active Viber account. The UserID is sent to your webhooks server after a user messages the Viber bot.

Overrides

Body Overrides

You can override the request body that Courier sends to the Viber Send Message API.

Config Overrides

You can swap the auth token, sender name, or API URL at send time: