Articles on: Integrations

Wati Integration

Visit the Wati Integration Page. You can also find it under WhatsApp Marketing inside the Integrations page.

To enable the integration, you need to choose the primary selector, and get the server url & API key from your Wati dashboard.

Primary Selector - This refers to the primary attribute used to map customers between Nector and Wati. You can choose mobile.

Getting your API token & server url

Go to the API Docs page as shown below

Copy the Access Token without the “Bearer” word as shown in the image below. Paste this in the API Token field in Nector dashboard

Copy the API Endpoint without the “https://” as shown in the image below. And paste this in the server url field in Nector dashboard.

After entering the details, click on the Initialize button to enable the integration. Once it is enabled, you will see the below view.

Sending Whatsapp Messages

Whatsapp messages can be sent to customers for various events that occur on Nector. For example: When a customer is rewarded with some wallet coins, you can send a whatsapp message via Wati.

The first step is to configure for which events you would like to send whatsapp messages to your customers.

Visit the Events Page on your Nector dashboard.

As the first step enable the events by toggling the status button on that page. After enabling you will see the below view.

Now switch to the Send Events tab and click on the Create button, a popup will open

Now select the event on which you want to notify the external integration, also select the Wati as the external integration that needs to be notified, and add any filters based on which event sending should be restricted

There are many events supported on nector. If you don't know which to choose, here are the two events that are most relevant and commonly used:

Wallet Coins Rewarded: This event will be sent whenever wallet coins are rewarded on nector.
Coupon Is Created: This event will be sent whenever a customer uses his wallet coins to get a discount/coupon code on nector.

For example,
To send an Wallet Reward Event to a Wati whenever wallet coins are rewarded to a customer on nector, you would create the event as shown below.

Once you have entered all the details, click on the Create button in the popup.

Events can also be sent for other things like when a new customer is referred, for coin expiry notification, for review request, and more. To learn how to setup these events, look into those respective articles.

For a list of events and the data associated with each event, please refer this article for more info:

After you have created the events, you can now configure which whatsapp template to be used for each of the event that you created.

Once again, visit the Wati Integration Page on your nector dashboard. And switch to the "Template Settings" tab.

For each of the event that you created in the previous step, you will have to add a "Flow Id" (which can be obtained from your Wati dashboard, see below for more details) for the associated event on this page.

How to get the template name from Wati dashboard

Visit your Wati dashbord
Go to the templates page & click on any template to find the template name. See the below image for reference

Once you have added the template name, you can also choose the variables/properties that you are using in your whatsapp template.

For example, if you are sending a whatsapp message when a customer is rewarded with wallet coins, you would use the following variables in your template:

amount: this refers to the number of wallet coins rewarded
user_balance: this refers to the total number of wallet coins that the customer has

So, your Template Settings would look something like this:

Updated on: 28/03/2024

Was this article helpful?

Share your feedback


Thank you!