Event lead capture spin-to-win game with inventory tracking
Build an interactive Spin the Wheel prize game for events and booths. Players enter their details, spin a weighted prize wheel, and win an item. Prizes have real stock that counts down, weighted odds, and optional daily caps (e.g. one LEGO winner per day). Staff manage stock from a private admin page. Every spin is logged to a Google Sheet this workflow creates and owns, and a daily digest is sent as a Slack DM (with a CSV) to Ailbhe Duffy at 8pm Dublin. Flow Spin the Wheel — the public webpage (GET /spin). Players fill in Name, Email, Phone, Company and Title to unlock the wheel. It loads the current prizes from /wheel-prizes, then on spin POSTs the player to /log-spin, which returns the prize the wheel lands on. Tines-branded periwinkle/cream UI. Wheel Prizes — GET /wheel-prizes (public). Returns the prizes to draw right now (in stock, under daily cap). Log Spin — POST /log-spin (public). Picks a prize server-side (weighted, respecting stock + daily caps), decrements stock, creates the Google Sheet on the first win, and appends [timestamp, name, email, phone, company, title, prize]. Manage Swag — GET /admin (space members only). Admin UI to edit prize names, weights, stock, and daily caps before an event. Swag Config — GET/POST /swag (space members only). Data API behind the admin page. Daily Digest — cron 0 19 * * * (19:00 UTC ≈ 8pm Dublin in summer). If there were spins that day, DMs the list as a CSV (plus a sheet link) to a specified user on Slack. Thank You Emails — cron 0 19 * * *. If there were spins that day, emails each unique participant a thank-you note (with book-a-demo and upcoming-events links) via the Gmail API, from a user specified email, subject "Thanks for spinning the wheel!". Connectors Google Sheets (OAuth) — Log Spin (create + append), Daily Digest and Thank You Emails (read). Slack — Daily Digest sends the DM + CSV to Ailbhe Duffy. Gmail (OAuth) — Thank You Emails sends the participant emails. Storage — the spin-sheet volume sheet-id.txt — the Google spreadsheet id. prizes.json — the prize/stock config (labels, weights, stock, daily caps, today's award counts). Shared prize logic lives in each step's prizes.ts. Writers (Log Spin, Swag Config) mount it concurrency=exclusive; readers (Wheel Prizes, Daily Digest) mount it :ro. Draft branches keep their own copy; on publish, Live starts fresh. Notes /spin, /wheel-prizes, and /log-spin are public so anyone at the booth can play. /admin and /swag are restricted to space members. Cron only fires on the published version. 19:00 UTC = 8pm Dublin in summer, 7pm in winter. Tools used: Google Sheets, Slack, Gmail, 3B named volume (spin-sheet storage)
What this prompt builds
An interactive spin-to-win game for event booths that captures lead information while attendees compete for prizes with real inventory tracking. The workflow manages prize allocation with weighted odds and daily caps, logs every spin to a Google Sheet, and sends daily lead digests plus automated thank-you emails to participants. Staff control prize inventory through a private admin interface.
The problem
Field marketing teams running event booths need an engaging way to capture qualified leads while creating a memorable brand experience. Traditional lead capture forms feel transactional and forgettable, making it harder to build pipeline and stand out at crowded events. This workflow turns lead capture into an interactive spin-to-win game where attendees enter their contact details and company information to win real prizes with tracked inventory, weighted odds, and daily caps. The system automatically logs every spin to a Google Sheet, sends daily lead digests with CSVs to the marketing team, and follows up with personalized thank-you emails that include demo booking and event links.
Solution and impact
Marketing teams get qualified leads with complete contact and company information captured in an engaging, brand-forward experience that attendees remember. Real-time inventory management prevents over-promising prizes, while automated daily digests and follow-up emails eliminate manual lead processing work. The workflow showcases the product's capabilities while simultaneously building pipeline, turning booth traffic into actionable sales opportunities.