Ayra exposes its signals and engine decisions to Shopify Flow as triggers, so you can react to a loyalty tier change, a referral reward or a Journey Guard decision with Shopify’s own actions (tag a customer, add to a segment, send a Shopify Email, call a webhook). Every trigger carries the customer ID, the Ayra event name and a payload specific to the trigger. Triggers for modules that have not shipped are listed as planned so you can plan automations; they appear in Flow when the module does.
- Triggers are registered as a Flow extension of the Ayra app and appear in Shopify Flow under Ayra.
- Each trigger fires once per event, after Journey Guard has made its decision (so a “message sent” trigger means the message really went out).
- Payloads use Shopify object references where one exists (customer, order, product variant), so Flow’s own conditions and actions can read them directly.
- The same events are available as typed events for developers; the trigger name is the event name without the
ay: prefix.
Status: live is available to beta merchants today; planned ships with the module named.
| Trigger | Status | Payload fields |
|---|
| Ayra: Points earned | Live | customer, points, balanceAfter, rule, order (optional) |
| Ayra: Points spent | Live | customer, points, balanceAfter, order |
| Ayra: Store credit issued | Live | customer, amount, currency, reason, expiresAt (optional) |
| Ayra: Tier changed | Live | customer, fromTier, toTier, direction (up/down), reason |
| Ayra: Points expiring | Live | customer, points, expiresAt |
| Trigger | Status | Payload fields |
|---|
| Ayra: Referral link shared | Live | customer, channel |
| Ayra: Referred order placed | Live | referrer, referred, order, status (pending) |
| Ayra: Referral reward granted | Live | referrer, referred, order, rewardType, rewardValue |
| Ayra: Referral reversed | Live | referrer, referred, order, reason (refund, fraud) |
| Trigger | Status | Payload fields |
|---|
| Ayra: Lifecycle stage changed | Live | customer, fromStage, toStage |
| Ayra: Segment entered | Live | customer, segment (id, name) |
| Ayra: Segment exited | Live | customer, segment (id, name) |
| Ayra: Intent score changed | Planned (Wishlist) | customer, score, previousScore, drivers[] |
| Trigger | Status | Payload fields |
|---|
| Ayra: Opportunity created | Live | customer, opportunityType, priority, evidence[], expiresAt |
| Ayra: Opportunity converted | Live | customer, opportunityType, order, attributedModule |
| Ayra: Action sent | Live | customer, action, module, channel, reason |
| Ayra: Action held | Live | customer, action, module, reason, rescheduledFor |
| Ayra: No action | Live | customer, reason |
| Trigger | Status | Payload fields |
|---|
| Ayra: Review requested | Planned (Reviews) | customer, order, channel |
| Ayra: Review published | Planned (Reviews) | customer, product, rating, hasMedia, verified |
| Ayra: Question asked | Planned (Reviews) | customer (optional), product, question |
| Trigger | Status | Payload fields |
|---|
| Ayra: Item wishlisted | Planned (Wishlist) | customer, productVariant |
| Ayra: Price drop detected | Planned (Wishlist) | productVariant, fromPrice, toPrice, subscribers |
| Ayra: Restock registration | Planned (Back in Stock) | customer, productVariant |
| Ayra: Restock alert sent | Planned (Back in Stock) | customer, productVariant, incentive (optional) |
| Ayra: Pre-order placed | Planned (Pre-Order) | customer, order, productVariant, expectedShipDate |
| Trigger | Status | Payload fields |
|---|
| Ayra: Subscription skipped | Planned (Subscriptions) | customer, subscriptionContract, skipCount |
| Ayra: Cancellation intent detected | Planned (Subscriptions) | customer, subscriptionContract, saveOffer |
| Ayra: Save offer accepted | Planned (Subscriptions) | customer, subscriptionContract, offer (pause, skip, swap) |
- In Shopify Flow, create a workflow with the trigger Ayra: Tier changed.
- Add a condition:
toTier equals Gold.
- Add the action Add customer tags with
ayra-gold.
The tag is now usable in Shopify segments, Shopify Email and any app that reads tags. Ayra also writes the tier to a customer metafield, which is usually the better join key; see Metafields & metaobjects.