Skip to main content

Attentive Integration

Seamlessly integrate Stay and Attentive to keep your subscribers in the loop!

Written by Karin Brashears
Updated over 3 weeks ago

How to Set Up the Integration

  1. Navigate to the Integrations page in your Stay AI merchant portal.

  2. Locate the Attentive section and click "Integrate with Stay AI".

  3. Select Attentive, then click "Add New Account".

  4. Click "Connect Attentive". You'll be redirected to log in to Attentive.

  5. 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!

  6. 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.

  7. 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_Created event. 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 cancel

  • city — City on the customer's shipping address

  • country — Country on the customer's shipping address

  • createdAt — Date the subscription was created

  • discountedPrice — Subscription price after discount

  • email — Email address on the subscription

  • firstName — Customer's first name

  • lastName — Customer's last name

  • loginLink — Magic link to the customer portal (non-transactional messages only)

  • nextBillingDate — Next scheduled billing date

  • orderId — Shopify Order ID

  • orderIntervalFrequency — Time between shipments (numeric value)

  • orderIntervalUnit — Unit of time between shipments (weeks, months, years)

  • orderNumber — Order cycle number for the upcoming shipment

  • phone — Customer's phone number

  • price — Full subscription price (before discount)

  • province — Province on shipping address (if applicable)

  • stayActiveSubscriber — Returns "Yes" or "No" for active subscriber status

  • stayActiveSubscriptionCount — Number of active subscriptions for the customer

  • stayActiveSubscriptionVariantIds — Variant IDs on the subscription

  • stayActiveSubscriptionChargeCount — Total number of charges for the subscriber in Stay

  • stayCancelledSubscriptionCount — Number of cancelled subscriptions for the customer

  • stayExternalCustomerId — Customer ID in Stay

  • stayFirstChargeProcessedAt — Date of the customer's first subscription charge

  • stayOrderId — Order ID in Stay

  • staySubscriptionId — Subscription ID in Stay

  • staySubscriptions — Product names included in the subscription

  • subscriptionContractID — Contract ID in Stay

That's it! You're ready to use Stay AI subscription events to power personalized Attentive messaging for your subscribers.

Did this answer your question?