Embed Loyalty Widgets
in Minutes
Drop-in components with Access Key authentication, or embed scripts. Any framework, any backend.
1<rai-store-widget2 community-id="YOUR_COMMUNITY_ID"3 embed-token="TOKEN_FROM_YOUR_SERVER"4 domain-key="PROD"5 bundle-url="https://prod-widgets.returning.ai/store-widget/bundle/widget.js"6 api-url="https://prod-widgets.returning.ai"7 v2-api-url="https://api-v2.returning.ai"8></rai-store-widget>Two Ways to Integrate
See What You Can Build
Electronics
4 items
iPhone 17 Pro Max
Latest flagship with A19 chip

iPad Pro 14" M4
Liquid Retina XDR display

AirPods Pro 3
Active noise cancellation

Apple Watch Ultra 3
Titanium case, GPS + cellular
Luxury Goods
2 items
Rolex Submariner
Oystersteel, black dial

Tag Heuer Monaco
Chronograph, blue dial
Two Ways to Authenticate
Attribute Auth
Pass user identity directly as HTML attributes. Ideal when you only have access to an HTML container or limited backend resources.
<script src=".../widget-loader.js" data-widget-id="YOUR_WIDGET_ID" data-email="user@example.com" data-user-id="USR-9a3f2b" data-firstname="Jane" data-tier="gold"></script>Stack attributes for stronger identity verification. Each additional field makes the identity harder to spoof. Custom fields from your platform add extra layers of security.
Access Key Embed
Your backend exchanges access credentials for a short-lived JWT. Inject the token as an attribute - no client-side secrets.
<rai-store-widget community-id="YOUR_COMMUNITY_ID" embed-token="TOKEN_FROM_YOUR_SERVER" domain-key="PROD" bundle-url="https://prod-widgets.returning.ai/store-widget/bundle/widget.js" api-url="https://prod-widgets.returning.ai" v2-api-url="https://api-v2.returning.ai"></rai-store-widget>Server-verified identity with bundle mode rendering. The recommended approach for any platform with backend access.
Every Widget You Need
Store
Rewards marketplace with loyalty currency
<rai-store-widget>Channel
Community hub with missions and quests
<rai-channel-widget>Milestone
Achievement stages and unlock rewards
<rai-milestone-widget>Social
Social media engagement tasks
<rai-social-widget>Currency
Points balance and transaction history
<rai-currency-widget>Referral
Invite links and referral rewards
<rai-referral-widget>Custom
Flexible admin-configured widget
<rai-custom-widget>