Embed any Returning.AI widget type as an iframe. Each type has its own URL pattern and recommended sizing.
All widget types follow the same URL pattern:
https://prod-widgets.returning.ai/{type}/{widget_id}Replace {type} with one of: store, channel, milestone, social, currency, or minigames.
All widget types support both attribute authentication and token authentication. See the Auth - Attribute and Auth - Token guides for details.
Rewards marketplace where users browse and redeem loyalty currency for products, vouchers, and experiences.
700pxBest at 700px+ height to show product cards without excessive scrolling.
<iframe
src="https://prod-widgets.returning.ai/store/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiStoreWidget"
frameborder="0"
style="width: 100%; height: 700px; border: none;"
></iframe>Community hub with missions, quests, social tasks, and engagement activities.
600pxThe default 600px height works well for most layouts.
<iframe
src="https://prod-widgets.returning.ai/channel/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiChannelWidget"
frameborder="0"
style="width: 100%; height: 600px; border: none;"
></iframe>Progress tracker showing achievement stages and unlock rewards.
500pxCan be shorter (500px) since milestones are typically a vertical timeline.
<iframe
src="https://prod-widgets.returning.ai/milestone/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiMilestoneWidget"
frameborder="0"
style="width: 100%; height: 500px; border: none;"
></iframe>Social media task board where users complete platform-specific engagement tasks.
600px600px is ideal for displaying a list of social tasks.
<iframe
src="https://prod-widgets.returning.ai/social/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiSocialWidget"
frameborder="0"
style="width: 100%; height: 600px; border: none;"
></iframe>Loyalty points display showing balance, transaction history, and earning opportunities.
400pxCompact widget - 400px is usually sufficient. Works well in sidebars.
<iframe
src="https://prod-widgets.returning.ai/currency/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiCurrencyWidget"
frameborder="0"
style="width: 100%; height: 400px; border: none;"
></iframe>Interactive games like spin-the-wheel and scratch cards for engagement.
600pxNeeds enough height for the game UI. 600px recommended minimum.
<iframe
src="https://prod-widgets.returning.ai/minigames/YOUR_WIDGET_ID"
allow="clipboard-write"
id="returningAiMinigamesWidget"
frameborder="0"
style="width: 100%; height: 600px; border: none;"
></iframe>| Widget | Recommended Height | Notes |
|---|---|---|
| Store | 700px | Best at 700px+ height to show product cards without excessive scrolling. |
| Channel | 600px | The default 600px height works well for most layouts. |
| Milestone | 500px | Can be shorter (500px) since milestones are typically a vertical timeline. |
| Social | 600px | 600px is ideal for displaying a list of social tasks. |
| Currency | 400px | Compact widget - 400px is usually sufficient. Works well in sidebars. |
| Mini Games | 600px | Needs enough height for the game UI. 600px recommended minimum. |
All widgets should use width: 100% and be placed inside a container that controls the max width. The widget content is responsive and will adapt to the available space.