Zapier Integration Guide

ItamarMItamarM RSS Feed

Zapier is an online automation tool that connects your favorite apps, such as Gmail, MailChimp, Zendesk, Amazon CloudWatch and many others. Connect your Viber Public Account with any Zapier integrated app to automate repetitive tasks without coding, and remove the reliance on developers to build the integration.

For example, receive a notification in Viber when an Amazon CloudWatch alarm is triggered with just a few clicks.

Follow the instructions below to configure your Zapier account to work with a Viber Public Account.

To get Viber to work with Zapier, the first thing to do is to add your Viber Public Account token to Zapier. Zapier will prompt you to add these details when you’re adding your Viber Zap (a Zap is a blueprint for a task you want to do over and over).

In Viber chat API console

Viber chat API console is a helper site set up for this integration, specifically to help you set up a WebHook and retrieve your user id, both of which are required when connecting to Zapier.

Note: If you already have a working chat integration (bot, CRM, etc.) you can skip to step 2.

1. Set your Public Account WebHook

In order to send messages to your Public Account, the Viber Chat API has to be enabled. Add your Public Account authentication token and select the Set a WebHook operation. Click the Apply button to make the change.

Note: You can always undo this by selecting Remove your WebHook.

2. Get your user id Zapier has to send the messages from a specific user and in this step you should copy the user id you wish to use later on as the sender.

Select the Get Account Info operation and then click the Apply button to make the request.

Choose one of your Public Account admins as the user id to send messages from. Save the id somewhere as you will need it later.

In Zapier

1. Log into your Zapier account.

2. Add the Viber Zap

As the application still works in Beta, you should follow this invite link to add Viber Zap. From here, click the Accept Invite & Build a Zap.

3. Create the Zap

Click Create this Zap to get started.

4. Choose a Trigger App

For this demo, let’s select the Weather trigger and mark the ‘Today’s Forecast’ as the trigger action.

Click Save + Continue to proceed.

5. Set the weather trigger details

Let’s assume that you would like to get daily weather forecasts for Bridgetown, Barbados (13.096851, -59.614482), one of the best surf places in the world 🏄. You can type any valid latitude/longitude combination.

Click Fetch & Continue until the trigger step is accepted.

6. Select Viber as the action app

The action app is where you want the weather information to be sent.

7. Select Viber post to Public Account as the Viber action

8. Connect your Viber Public Account by setting your authentication token

Just like you did for the trigger app, you now need to customize the behavior of the post to a Viber Public Account action. Click connect a New Account and set Public Account authentication token. Click Save + Continue once you are done.

9. Set Up Template

Here you map the weather’s properties to relevant fields or attributes in the action app. The more properties you map, the richer data you will get in your Viber message. In our example, we mapped the today weather summary.

Under the From field we need to set one of the Public Account Users Id you acquired on the previous step. Click Continue.

10. Test The Action App

On this final step you will test the entire integration end to end. By clicking Create & Continue, Zapier will simulate your trigger (the generation of a weather update) and the action you configured will be executed in the Viber app.

In our example, a weather update will appear in your Public Account so we can then review and confirm it before turning the Zap on. If you don’t want to add another step, click Finish and you will be able to rename your Zap and switch it on. You’re ready to go!

Need help or found a bug? Contact us.