Introduction

This article describes how to create a Viber chatbot on the TruCHAT platform. This will help you run your business via Viber.

Let’s create your first Viber chatbot together.

Go to the “Chatbots” section and click the “Add Chatbot” button.

nullFigure 1. Adding the Viber Chatbot

Enter your chatbot name, then choose a chatbot type. Click “Next”.

nullFigure 2. Entering the Chatbot Name and Choosing the Type

On the next page choose a template and click “Next”.

nullFigure 3. Choosing the Chatbot Template

Now it’s time to set up a Viber integration. You can choose the “Connect Now” or “Connect Later” option.

nullFigure 4. Connect Now and Connect Later Options

Let’s choose “Connect Now”. There are five quick steps to set up a Viber integration.

nullFigure 5. Quick Steps to Set Up a Viber Integration

Navigate to the Viber login page. Enter your phone number and click “Login”.

null

Figure 6. Viber Account Login

Now it’s time to create a bot account. Start with uploading an account image.

nullFigure 7. Uploading an Account Image

Next, fill in the required fields: Account Name, Uri, Category, Subcategory, Language, Account Description, Website Address, and Email Address.

null

Figure 8. Empty Fields

null

Figure 9. Completed Fields

Once you are done with uploading the account image and filling in the fields, check the checkboxes and click “Create”.

null

Figure 10. Checking the Boxes

Now your bot account is created. Copy your Private Token by clicking the “Copy” button.

null

Figure 11. Your Private Token

Paste the token into the “Private Token” field.

nullFigure 12. Pasting the Private Token

After that, choose a needed time zone from the dropdown list. Click “Finish”.

nullFigure 13. Choosing a Time Zone and Finishing Setup

This is what the created Viber chatbot looks like on the diagram. There are no triggers or scripts, so they need to be added. An example of this is described in the article Getting Started With TruCHAT.

nullFigure 14. The Created Viber Chatbot’s Diagram

Now let’s make sure that the trigger is linked to the created Viber connection that has the same name as your Viber chatbot.

nullFigure 15. Linking the Trigger to the Connection

After that, go to Step 3 in the chatbot trigger settings. Let’s add a condition to run the script. The condition is “Connection type = Viber”. Click the “Add Condition” button and choose the needed options, then click “Save”. 

nullFigure 16. Adding the Condition to Run Script

If necessary, you can edit the script. Then publish the chatbot.

nullFigure 17. Publishing the Chatbot

Now you can test the Viber chatbot. Open the Viber app on your phone and go to the Settings section. Click on the “My Bots” section.

null

Figure 18. Finding the Created Bot in the Viber App on a Mobile Phone

Once your bot is opened, click the “Publish” button.

null

Figure 19. Publishing the Bot

Click the “Message” button and send any message to the bot as if you are the client.

null

Figure 20. Writing a Message to the Bot in the Viber App

In response, the created Viber chatbot will start.

null

Figure 21. The Viber Chatbot in Use

Now let’s have a look at the option “Connect Later” that you can choose when setting up a Viber integration.

nullFigure 22. Connect Now and Connect Later Options

If you choose “Connect Later”, you can finish setting up Viber integration and get back to it later. 

nullFigure 23. Connect Later Option

After finishing setting up Viber integration, your Viber chatbot will be created and ready to customize. You can find it in the “Chatbots” section.

nullFigure 24. The Created Viber Chatbot

Once you are ready to set up the Viber integrations settings, go to the “Connections” section. Here you will find the created Viber connection that has the same name as your Viber chatbot.

nullFigure 25. The Created Viber Connection

Click on the connection and go to the “Integration” tab. Follow the outlined steps to complete the Viber integration setup.

nullFigure 26. Setting Up the Viber Integration

Conclusion

Now you can create a Viber chatbot. You can also see the article Integration With Viber in TruCHAT.