Login

TUTORIAL

How to Connect viaSocket with AiSensy?

Send a WhatsApp message from AiSensy whenever something happens in your other apps, like a new row in Google Sheets.

Simply follow the steps below.

viaSocket flow sending WhatsApp messages via AiSensy

What does the viaSocket integration do?

viaSocket is a no-code automation tool that connects your apps. With the AiSensy integration, a trigger in one app, like a new Google Sheets row, a new CRM lead, a form response or a new order, sends an approved WhatsApp template from AiSensy. In this guide, we use Google Sheets as the example.

Hundreds of apps

Trigger WhatsApp messages from hundreds of apps.

No code

Set up every automation without writing code.

Personal messages

Fill each message with data from the trigger, like a name or order details.

Steps to Connect viaSocket with AiSensy

You need an AiSensy account with a live WhatsApp Business API number, an approved template, an API campaign, your AiSensy API key and a viaSocket account.

Create a new flow in viaSocket

Log in to viaSocket and start a new flow.

Create a new flow in viaSocket

Pick Google Sheets as the trigger

Choose Google Sheets as the trigger app and pick the event, like a new row added.

Pick Google Sheets as the trigger

Set up the trigger

Connect your Google account and pick the sheet. Choose whether to run for new rows, updated rows or both, say whether the first row has column names, and pick a unique column and trigger columns.

Set up the trigger

Create a WhatsApp template in AiSensy

Go to Manage → Template Message and click Create Template. Every WhatsApp message you send through this integration uses a template that Meta has approved.

Create a WhatsApp template in AiSensy

Fill in the template details

Pick the category, language and template type, give the template a name and type your message. Add variables like {{1}} and {{2}} wherever the message should change for each customer, such as their name or a link. For a lead welcome, you might use the name from your sheet.

Fill in the template details

Add sample values and submit

Add a sample value for every variable so Meta can review the template, then click Submit. Approval usually takes a few minutes to a few hours. Once approved, the template is ready to use in campaigns.

Add sample values and submit

Launch an API campaign

Go to Campaigns, click Launch and click Next under API Campaign. An API campaign lets another tool trigger your WhatsApp template automatically.

Launch an API campaign

Name your campaign

Type a campaign name, for example Sheet Lead Welcome. Note it down exactly as you typed it, because you will enter the same name in viaSocket later.

Name your campaign

Pick the template and set it live

Select the approved template you created and click Set Live. Your API campaign is now ready to receive triggers.

Pick the template and set it live

Copy your AiSensy API key

In your AiSensy dashboard, open Developer from the left menu and go to the API Campaign Key tab. Click Regenerate Key and copy the key that shows up. For security, AiSensy shows the key only once, so save it somewhere safe. If this key is already used in another tool, a new key will stop that connection, so use the saved key there instead. New to AiSensy? Sign up for free.

Copy your AiSensy API key

Add AiSensy as the action

Back in your viaSocket flow, click Add Step, search for AiSensy and choose Send Template Message.

Add AiSensy as the action

Connect your AiSensy account

Click Connect to AiSensy, paste your API key, click Update Connection and then Done.

Connect your AiSensy account

Add the campaign details and test

Enter the API campaign name exactly as it is in AiSensy, map the destination to the phone number column and the user name to the name column, fill the template variables, then test and publish the flow.

Add the campaign details and test

Unlock the Full Potential of WhatsApp

Connect, convert, and scale — all in one powerful platform. Let AiSensy do the heavy lifting.
⚡️Powered by Official WhatsApp Business API 

viaSocket Integration FAQs

What can trigger a WhatsApp message through viaSocket?

Any app event viaSocket supports, like a new Google Sheets row, a new CRM lead, a form response or a new order.

Where do I find the AiSensy API key?

In AiSensy, open Developer → API Campaign Key. Only the project owner can see it, and it is shown once when generated.

Why is my flow not sending messages?

Check that the campaign name matches the API campaign in AiSensy exactly, the campaign is live, and the phone numbers include the country code.

Do I need to code anything?

No. viaSocket is a no-code tool, so you set everything up with clicks.