Skip to main content
Build a Tinder-style product swipe widget that can be embedded on any site — a newsletter, a blog, an email landing page, a creator’s Substack. Each swipe captures intent signals and awards points for engagement.

What You’ll Build

Prerequisites

Step 1: Fetch Products for the Stack

Load products from the agentic product feed, personalized if you have a user ID.

Step 2: Swipe Card Component

Each card is a full-bleed product image with name and price. Swipe right = interested, left = skip.

Step 3: Record Swipe Interactions

Every swipe is an intent signal. Record it through the companion API and award points.

Step 4: Widget Shell with postMessage

The widget communicates with the parent frame via postMessage — reporting completion, swipe counts, and any purchase intent.

Step 5: Embed on Any Site

Build and host the widget, then embed it anywhere with a single iframe.

Listen for Completion on the Parent

Step 6: Campaign Integration

Tie the swipe widget to a campaign for structured engagement tracking.

Architecture Notes

  • No auth required for anonymous users — the widget works without a userId, using the general product feed instead of personalized recommendations
  • Points only award for authenticated users — anonymous swipes still capture aggregate signals
  • postMessage API — keeps the widget decoupled from the host site; no shared state or cookies needed
  • Campaign tracking — optional but recommended for measuring engagement across different embed locations