It's easy for you to create your own Viber messenger bot and integrate susi's API into it. You can read the documentation on how to make a public account in Viber and get started.
Messenger bots uses a web server to process messages it receives or to figure out what messages to send.
To create your account on -:
- Viber
- Github
- Heroku
-
Fork this repository.
-
Request for a public account on Viber.
Follow the instructions for verification as indicated by viber.
- After verification, create and setup the public account.
Click Second button from top-right, to discover public accounts made by you.
Click blue button at bottom-right, to create a new one.
Click Join Now to start setting it up.
After filling the required details click Continue
Add more specific details.
Select Viber chat Api as your chat Solution.
Copy the public account key.
-
Change the key written after "'x-viber-auth-token':" (in index.js file) with the new public account key generated. Enclose the api key in ' '. Commit and push the changes to this forked repository.
-
Create a new heroku app here.
This app will accept the requests from Viber and Susi api.
-
Change the url in set webhook request options that is on line 33 in index.js file to https://YOUR-APP-NAME.herokuapp.com enclosed in ' '. Commit and push the changes to this forked repository.
-
Connect the heroku app to the forked repository.
Connect the app to Github
- Deploy on development branch. If you intend to contribute, it is recommended to Enable Automatic Deploys.
Branch Deployment.
Successful Deployment.
- Now, visit the created heroku app from a browser, and check if the status message received for set Webhook request is - ok. That means the webhook is successfully set.
This should be the output.
- Go to the Viber public account created and click the symbol indicating 1-on-1 chat with Susi at your top right(second symbol).
1-on-1 chat
- Enjoy chatting with Susi.