Integrations Setup
Connect llea.ai to the systems it sends predictive audiences and events to. Complete the sections in order: Shopify Flow first, then your messaging platform (Klaviyo or MoEngage).
1. Shopify Flow Setup
Overview
This workflow catches every smart engagement outreach llea.ai sends, filters it down to the email channel, and forwards it to Klaviyo as a tracked event – so Klaviyo’s timeline and flows know about the outreach the moment it happens.
Why a condition before the action?
llea.ai can send outreach over more than one channel. The condition keeps this workflow scoped to email only – a second condition branch can route SMS or other channels later without touching this one.
Prerequisites
- Admin access to your Shopify store, with the Flow app installed.
- The
llea.aiapp already connected as a Flow trigger source. - A Klaviyo login for the same account, to grab the public API key.
Step-by-step setup
Start the workflow
- Step 1Go to your store’s admin at
admin.shopify.com. - Step 2Press
⌘Kto open Search. - Step 3Type
flow. - Step 4Click Flow in the results.
- Step 5Click Create workflow.
Add the trigger
- Step 1Click Select a trigger.
- Step 2Click
llea.aiin the app list. - Step 3Click LLEA Smart Engagement – not the similarly named LLEA Smart Clearance sitting just above it.Triggers a Shopify Flow when llea.ai sends a smart engagement outreach to a customer.
- Step 4Click the close icon – this trigger needs no configuration.
Filter by channel
- Step 1Click the + connector below the trigger.
- Step 2Click Condition.
- Step 3Click into the condition block to open its configuration.
- Step 4Click Add a variable.
- Step 5Click
channel. - Step 6Click the value field and confirm the operator is Equal to.
- Step 7Type
email. - Step 8Click the close icon to collapse the Condition panel.
Only the True branch continues
Everything from here builds off the condition’s True output – that’s where the Klaviyo action goes.
Add the Klaviyo action
- Step 1On the True branch, click +.
- Step 2Click Action.
- Step 3Click Klaviyo: Email Marketing & SMS.
- Step 4Click Track an Event – Push any event to Klaviyo.
- Step 5Click into the action to open its configuration panel.
Grab the Klaviyo API key
- Step 1Switch to (or open) your Klaviyo tab.
- Step 2Click the account switcher and confirm you’re on your store’s Klaviyo account.
- Step 3Click Settings.
- Step 4Click API Keys.
- Step 5Click the Public API Key value to select it.
- Step 6Press
⌘Cto copy it.
Keep that tab open
The key is on your clipboard – the next steps paste it straight into Flow.
Map the event data
- Step 1Switch back to the Shopify Flow tab.
- Step 2Press
⌘Vto paste the key into Klaviyo Public API Key. - Step 3Click the Event Name field and type
llea_smart_engagement– this is what shows up on the customer’s Klaviyo timeline. - Step 4Click Customer Email Address and insert the
customerEmailvariable. - Step 5Click Customer Properties and paste:
{
"$email": "{{ customerEmail }}",
"$phone_number": "{{ customerPhone }}",
"messageId": "{{ messageId }}"
}- Step 6Click Event Properties and paste:
{
"action": "llea-smart-engagement",
"channel": "{{ channel }}",
"customerEmail": "{{ customerEmail }}",
"customerPhone": "{{ customerPhone }}",
"messageId": "{{ messageId }}",
"subject": "{{ subject | json }}",
"messageHtml": "{{ messageHtml | json }}",
"previewText": "{{ previewText | json }}"
}Turn it on & rename
- Step 1Click Turn on workflow, then Turn on in the confirmation dialog – this activates the automation immediately.
- Step 2Click the close icon (×) to dismiss the workflow view.
- Step 3Click Flow in the sidebar to return to the workflow list, then click the
New Workflowentry to reopen it. - Step 4Click More actions → Rename.
- Step 5Type
Llea_smart_engagementand click Save.
Verification & testing
Test the workflow
- Step 1Click Test your workflow.
- Step 2Click Select test event.
- Step 3Click LLEA Smart Engagement and confirm the run completes without errors.
Confirm it’s live
- Step 1Click Flow in the sidebar to return to the workflow list.
- Step 2Confirm the workflow now reads
Llea_smart_engagementwith an Active status badge.
Quick reference
Everything you typed into the Track an Event action, in one place – useful if you ever need to rebuild or audit this workflow.
| Field | Value |
|---|---|
| Event Name | llea_smart_engagement |
| Customer Email Address | {{ customerEmail }} |
| Condition | channel Equal to email |
| API key location | Klaviyo → account switcher → Settings → API Keys → Public API Key |
Troubleshooting
If the test run fails
Double-check the Klaviyo Public API Key was pasted without extra whitespace, and that the condition is comparing channel – not a different variable – to email.
2. Klaviyo & MoEngage Integration Setup
Set up whichever messaging platform your store sends to. Choose your platform to continue: