How to Set Up the Integration
Navigate to the Integrations page in your Stay AI merchant portal.
Locate the Attentive section and click "Integrate with Stay AI".
Select Attentive, then click "Add New Account".
Click "Connect Attentive". You'll be redirected to log in to Attentive.
Authorize Attentive to access data through Alloy Automation. Note: this is Stay AI accessing your data — not a third party. No need to be alarmed!
Once authorized, you'll be redirected back to Stay AI. A green checkmark next to Attentive in the integration modal confirms the connection was successful.
To populate events in Attentive, you'll need to trigger the relevant actions in Stay AI first. For example, create a subscription to trigger the
Stay.Ai_Subscription_Createdevent. Events will only appear in Attentive after they've been triggered at least once.
What Can You Do with the Attentive + Stay AI Integration?
The Attentive + Stay AI integration lets you build targeted campaigns and flows based on real-time subscription activity. You can segment your audience and send personalized messaging triggered by the following events:
A subscription has started
An order is purchased
A billing attempt was processed
An upcoming order is scheduled
A subscription is cancelled
A subscription is paused
A subscription order is skipped
A billing attempt has failed
An item is out of stock
When building segments or campaigns in Attentive, find these events under Subscriber Activity — they'll appear with the label "Stay AI – [EVENT NAME]".
Available Message Variables
You can personalize your messages using dynamic variables pulled from each customer's profile. Note: link variables like loginLink are only available in non-transactional messages.
cancelReason— Passed on Canceled events, the provided cancellation reason at time of cancelcity— City on the customer's shipping addresscountry— Country on the customer's shipping addresscreatedAt— Date the subscription was createddiscountedPrice— Subscription price after discountemail— Email address on the subscriptionfirstName— Customer's first namelastName— Customer's last nameloginLink— Magic link to the customer portal (non-transactional messages only)nextBillingDate— Next scheduled billing dateorderId— Shopify Order IDorderIntervalFrequency— Time between shipments (numeric value)orderIntervalUnit— Unit of time between shipments (weeks, months, years)orderNumber— Order cycle number for the upcoming shipmentphone— Customer's phone numberprice— Full subscription price (before discount)province— Province on shipping address (if applicable)stayActiveSubscriber— Returns "Yes" or "No" for active subscriber statusstayActiveSubscriptionCount— Number of active subscriptions for the customerstayActiveSubscriptionVariantIds— Variant IDs on the subscriptionstayActiveSubscriptionChargeCount— Total number of charges for the subscriber in StaystayCancelledSubscriptionCount— Number of cancelled subscriptions for the customerstayExternalCustomerId— Customer ID in StaystayFirstChargeProcessedAt— Date of the customer's first subscription chargestayOrderId— Order ID in StaystaySubscriptionId— Subscription ID in StaystaySubscriptions— Product names included in the subscriptionsubscriptionContractID— Contract ID in Stay
That's it! You're ready to use Stay AI subscription events to power personalized Attentive messaging for your subscribers.



