How to manage Viber bots
A Viber bot is a public account in Viber that customers write to and that can answer them automatically. In SMSBAT Omni the section Bots under Viber shows all your Viber bots. For each bot you can update its data, connect the webhook so that messages reach the chat workspace, set up chat triggers and API integrations, and build the bot scenario (the strategy) out of actions and messages.
To add a new bot or order its registration, see Register a Viber Bot. This page explains how to manage bots that are already in the list.
Where to find the bots
- Sign in to omni.smsbat.com.
- In the left menu open Channels → Viber → Bots.
The page Viber Bots opens. The Add Bot button above the table opens the bot registration form.
Filters
Press Filters to show or hide the filter bar and Clear filter to reset it.
| Filter | What it does |
|---|---|
| URI | Finds a bot by its Viber username. |
| Account | Shows bots linked to one Viber business account. |
| Organization | Shows bots of one organization. |
| Name | Finds a bot by name. |
| Launch Date | Shows bots with the selected launch date. |
| Status | Shows bots in the selected status. |
| Category | Shows bots of the selected category. |
| Bot Type | Technical or Public. |
Table columns
| Column | What it shows |
|---|---|
| Name | The bot name. |
| URI | The bot username in Viber. |
| Launch Date | The date the bot starts working in full mode. |
| Status | The bot status: Active, Inactive, Pending Approval, Hold, Closed, Declined, Archived, Moderation or Approved. |
| Category | The bot categories. |
| Type | Technical or Public. |
Click a row to open the bot page. On a phone, press Show more on a card for the launch date and categories, and Details to open the bot.
The bot page
The page title is the bot name. Press the menu icon (three lines) in the top-left corner of the content to open the list of blocks:
- Details
- Downtime
- Chat settings
- API integrations
- Bot operators (for Technical bots only)
Click a block to open it. Press × to hide the list.
Details
Activity Status. The current status of the bot. Below it you see the Next Status and the Next Status Date if a change is planned. The status is changed by SMSBAT administrators: they see the Status Launch Date field and the Update Status button.
Switches on the right: Is Bot parking, Is Bot proxing, Is Bot searchable and Is Bot under verification. Change them only if your SMSBAT manager asks you to. Below them you see the bot’s Launch Date and Bot Type.
Bot data:
| Field | What it means |
|---|---|
| Beneficial Owner | The person who controls the company or owns at least 25% of it, as explained under the field. |
| Legal Name | The full official name of the company, including the legal form. |
| Bot description | A description of the bot. |
| Bot name | The bot name. |
| Bot language | Start typing and choose the language from the suggestions. |
| Bot category | One or several categories. |
| Bot URI | The bot username. Read-only. |
| Bot token | The bot access key from Viber. |
| Bot ID | The bot identifier. |
| Internal Callback Url | Shown when available. The link icon copies the address; it is used when integrating the bot through the API. |
Buttons:
- Update Bot Settings saves the changes. The message Bot data updated appears.
- Edit Bot Strategy opens the strategy editor, see The bot strategy below.
- Set Webhook connects the bot to SMSBAT so that customer messages reach the chat workspace. It is inactive while the bot has no token. On success you see Webhook successfully was seated.
Downtime
- Open the Downtime block.
- Type the Downtime message.
- In Downtime press the clock and choose the time (hours, minutes, seconds).
- Press Set new downtime.
Automatic closing of idle chats for the whole organization is set up separately, see Chat settings.
Chat settings
- Open the Chat settings block.
- Turn on the Chat switch. The change is saved at once.
- Fill in the Start chat trigger and the End chat trigger. The fields can be edited only when Chat is on.
- Press Update chat settings.
API integrations
Here you add web addresses of your systems that work with the bot.
- Open the API integrations block and expand the API integrations panel with the arrow.
- Press the + button.
- Fill in Url, Header name, Header value and choose the Source: General or OneC.
- Press Create. The message Successfully was created appears.
The table shows Url, Header name, Header value and Source. Use the pencil icon to edit a row and the check mark to save it. The bin icon deletes a row after confirmation.
Bot operators
The block is shown for Technical bots.
- Press Create.
- In the Add Operator window enter the Name and the Phone (with the country code; the ”+” is already there).
- Press Create. The message Operator created appears.
To delete an operator, select it in the table, press Delete and confirm. Click an operator to open their page. Contact-center operators for chat.smsbat.com are created elsewhere, see How to create operators.
The bot strategy
The strategy is the bot scenario: a set of actions, and for each action the template messages the bot sends. Open it with Edit Bot Strategy on the Details block. The page Viber Bot Strategy has three columns:
| Column | What it contains |
|---|---|
| Actions | The list of actions, a Search box and the Add button. |
| Action Editor | The settings of the selected action and its messages. Until you select an action, it shows “Select element”. |
| Template messages | The messages loaded for the actions you have opened. A message without text is shown as “Message…”. |
Step 1. Add an action
-
In Actions press Add. A new action named “New Action N” is created and saved at once.
-
Click the action. The Action Editor opens.
-
Change the Action Name.
-
Choose the Action Type:
Action Type What the bot does SendActionMessages Sends the messages of this action. DeleteMessage Deletes a message. DeleteAndSendActionMessages Deletes a message and sends the messages of this action. UpdateMessage Updates a message. SendActionMessagesAndResetUserAction Sends the messages of this action and resets the user’s current action.
To delete an action, press × on its card and then Delete in the window “Are you sure you want to remove?”.
Step 2. Add messages to the action
-
Under Attached Templates press Add Template Message. An empty message is added and saved.
-
Fill in the message card:
Field What to enter Sequence number The order of the message within the action, starting from 0. Text The message text. Keyboard The keyboard (buttons) of the message. The dashboard does not check this field and passes it on as typed, so agree the format with your SMSBAT manager. Images Press Add image and choose a picture file. Press × on a picture to remove it. -
To delete a message, press × in the top-right corner of its card and confirm.
Step 3. Save the strategy
Press Save strategy under the columns. The message Strategy saved appears. Changes to names, types, texts, keyboards and images, new pictures and deleted messages are saved only with this button. If something goes wrong, you see Strategy save error.
Common questions
Set Webhook is inactive. The bot has no token. Paste it in Bot token, press Update Bot Settings and then Set Webhook.
Messages to the bot do not appear in the chat. Check the token, press Set Webhook again and make sure the bot status is Active. See also Register a Viber Bot.
I can’t change the bot status. Bot statuses are changed by SMSBAT administrators. Contact your manager or support@smsbat.com.
I don’t see the Bot operators block. It is available for bots of the Technical type only.
I changed a message in the strategy, but the bot still sends the old one. Press Save strategy and wait for Strategy saved. Edits are not saved until then.
Where do I set the after-hours message for the bot? On the Working hours tab of Chat settings.