

It will then automatically create the right web hooks for the Viber bot platform. While deploying, Claudia will ask for your Viber Public Account Access Token. The api-module parameter is the name of your JavaScript module (if you saved the code as bot.js, this will be just bot). You can now deploy the bot to AWS: claudia create -region us-east-1 -api-module bot -configure-viber-bot Later on, we’ll modify it to do something more interesting. This bot will just reply back with the same message it received. exports = botBuilder ( function ( request ) ) Create a file called bot.js with the following content: var botBuilder = require ( ' claudia-bot-builder ' ) module. Let’s first create a very simple bot, just to check that everything is configured correctly.

Just make sure to give it a descriptive name: npm initĪdd the claudia-bot-builder library as a project dependency: npm install claudia-bot-builder -S Creating a Viber botįirst, create an empty folder, and a new NPM project inside it. You’ll need this later to configure the bot. After your Public Account is approved, you will be able to get the authentication token from the Public Account. The PA represents an account of a company, celebrity, person or product. To create a Viber bot, you will need to create a Public Account (PA). If you’re completely new to using Claudia.js, check out Installing and configuring Claudia.js for information on how to set up access credentials.
