User's guide /

Integrations

/

Viber

Create a Viber account

To begin, you need a Viber account. Visit the Viber  portal and sign up for an account.
Once registered, you'll gain access to the Viber API and other tools.

Create a chat bot

After creating your Viber account, proceed to set up a chatbot. Navigate to the Viber Developer portal at https://partners.viber.com/login and create a new bot. This action will generate an authentication token, a crucial element for your bot to interact with the Viber API. Once you have created the chatbot, on the same page, you should find a field called 'Token', this is your authentication token. Next, you should create a new record in the "Viber Chatbots" module with the chatbot name, the authentication token, and the message you want the chatbot to send.



https://partners.viber.com/account/create-bot-account

Send a webhook configuration to the Viber server

To enable real-time communication, you must configure a webhook to inform the Viber server where to send updates and messages. After configuring your chatbot in the "Viber Chatbots" module, the next step is to click "Edit" on the record. Then, press the button on the left labeled "Initiate webhook communication." If everything is correct, an alert will pop up saying "Success!" 



 Module "Viber Chatbots" - Edit

Update module 'Viber Accounts'

Once you have sent a webhook, the next step is to create and link the Viber accounts.

1.People who will use the Viber account should subscribe to the Chatbot. When they subscribe, the "Viber accounts" module will be automatically populated with information about the  account.
2.The only thing that needs to be set up manually is linking the "Staff" module with the "Viber accounts" module. Navigate to the "Viber accounts" module, and click "Edit" on the account that you want to link. There will be a field called "Employee." There, you will choose whichever employee you need to link.

Set the process in module 'Tasks'

Now, every time you create a new task and set the task status to "In Progress," a message will be sent to the selected employee's Viber account. The message content will be the one you have set up in the "Chatbots" module. You can always modify it to suit your needs.

Test the integration


To ensure that everything is working properly, please create a couple of tasks for testing purposes.