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.

Connect AiSensy inside Yuko
In Shopify, open Yuko Loyalty & Reviews → Integrations → AiSensy. Choose API Key as the authentication type and paste your key.

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 example, use the customer first name, points earned and points balance as variables.

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 yuko_loyalty_point_earned. Note it down exactly as you typed it, because you will enter the same name in Yuko 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.

Create a workflow in Yuko
In Yuko, go to Workflows and click Create Workflow.

Set the trigger
Click the trigger node and pick the event you want, like Earn Points, and set the re-entry criteria.

Add the WhatsApp action
Add a WhatsApp action, choose AiSensy as the provider and enter your API campaign name exactly as it is in AiSensy.

Map the parameters
Fill each template parameter, for example {{first_name}}, {{total_earned_points}} and {{points_balance}}.

Turn on the workflow
Click Turn on Workflow. Place a test order with your own number to see the message arrive.
