OLG
Dream Generator: Generative AI Photo Kiosk
A walk-up generative AI kiosk for Ontario Lottery and Gaming: guests pick the dreams that speak to them, pose for a photo, and get an AI-made portrait of themselves living that dream, to print or scan home.
Challenge
Turn generative AI into an in-person experience anyone could walk up to: in English or French, accessible, quick enough to hold a guest's attention, and with a person able to review what the AI makes before it goes out.
What I built
- The kiosk flow: language, sign-up, dream cards drawn from a configurable deck, camera capture, generation, review and share.
- Prompts built from each guest's picks, generating 5 images per session (a batch of 4 plus an accessible variant), with a direct Gemini fallback for image generation.
- A real-time moderator dashboard synced to the kiosk over WebSockets, with approval before results go out and a self-serve mode when no moderator is present.
- A public share page reached by QR code, consent and data-retention notices, and a Windows installer that runs the kiosk full screen on the on-site PC.
How it works
The kiosk
A Nuxt 3 app (Vue 3 and TypeScript) walks each guest through language, sign-up, dream cards, camera, generation, review and share, in English or French. It runs full screen in Chrome's kiosk mode on an on-site Windows PC, set up by a PowerShell installer.
Dream cards and prompts
The cards come from a configurable deck in the platform's Experience Builder, in categories like Health and Wellness, City, Resort and Bucket List, each card with its own image and prompt fragment. A prompt template fills in each guest's picks, so the deck can change without a new release.
Generating the dream
A NestJS backend on Fastify takes the photo and starts two generations in parallel through the client's image pipeline: a batch of 4 for the moderator to choose from, plus an accessible variant. A direct Gemini fallback covers image generation if the pipeline fails, and a three-step text prompt writes the dream's caption.
A person in the loop
Two WebSocket gateways connect the kiosk to a moderator dashboard that mirrors the guest's screen, helps fill in the form, and approves the result before it goes out. Moderators sign in through Keycloak (OIDC with PKCE). If no moderator is connected for 10 seconds, the kiosk switches itself to self-serve.
Taking it home
Each result gets a QR code that opens a public share page on the guest's phone, with the image to download and the caption to copy. Guests can also print it on the spot.
Consent built in
Consent and data-retention notices, the liability release and the full privacy policy, in English and French, are part of the flow rather than an afterthought.