Create a new flow in viaSocket
Log in to viaSocket and start a new flow.

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

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.

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.

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.

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.

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.

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.

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.

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.

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

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

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.
