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 bundle-url="https://prod-widgets.returning.ai/store-widget/bundle/widget.js"5></rai-store-widget>/ Integration
Two ways to integrate
Pick the path that matches your stack. The Widget SDK is the recommended route when you have a backend; the Embed Script keeps things drop-in for marketing and CMS-only pages.
/ Showcase
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
/ Authentication
Two ways to authenticate
Both approaches verify identity before the widget renders. Pick Access Key Embed when you have a backend; pick Attribute Auth for HTML-only environments.
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-customer-id="CUST-10482" data-custom-tier="gold"></script>This is a browser-visible fallback. Prefer a stable field like data-customer-id over email when you can.
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" bundle-url="https://prod-widgets.returning.ai/store-widget/bundle/widget.js"></rai-store-widget>Server-verified identity with bundle mode rendering. The recommended approach for any platform with backend access.
/ Widget catalog
Every widget you need
Drop the right component into your platform. Each widget ships as a single web component with sensible defaults — switch out the tag, keep the rest.
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>/ Get started
Ready to integrate?
Get your loyalty widgets live in under 10 minutes.
/ Included with every deployment
- Web component widgets
- Bundle and iframe rendering
- Access Key + Attribute auth
- Framework guides for React, Vue, Angular, Qwik