Start receiving and sending messages using the popular messaging app, Viber.
Viber allows you to configure a business account that you can use to send and receive messages to and from users
What you will learn
- The required steps to configure the Viber messages source
- How to connect your Viber account to Airy
To get started with Viber we will complete the following steps
- Step 1: Registration
- Step 2: Editing of the yaml file in Airy Core
- Step 3: Connecting the channel
- Step 4: Send and receive a test message
Let's proceed step by step.
#Step 1: Registration
First you need a Viber bot account. You can register one by clicking on this link and filling out the required form. At the end of the process you will be presented with your authentication token. Copy it for the next step.
#Step 2: Updating the Airy config file
Add a section for viber in your
components > sources. Add your authentication token so that your file looks like so:
Now run the
airy config apply command and viber is ready to use.
#Step 3: Connecting the channel
The next step is to send a request to the Channels endpoint to connect Viber to your instance.
Connect a Viber source to your Airy Core instance through the Channels endpoint
Connects your viber account to Airy.
name(optional) overwrite the Viber account name
image_url(optional) overwrite the Viber account image
#Step 4: Send and receive a test message
Find your bot on Viber and send it a message. The message should show up in your Airy Inbox. Now the conversation is created and you are ready to reply using the ui or the Messages endpoint.
Send messages to your Airy Core instance from different sources through the Messages endpoint
Sending a text message
Sending a picture
Sending a video
Sending a file
Sharing a contact
Sharing a location
Sending a URL