A marriage biodata maker with no form to fill. You talk, it talks back, and the document builds itself. A realtime voice model runs the entire interface through function calls, and 24 print-ready templates render to PDF entirely in the browser.
Every marriage biodata site in India is a long form: thirty-odd fields covering horoscope, caste, gotra, income and family. The problem is who actually fills it. It is usually a parent or an uncle in their sixties, and they do not fill web forms. They hand the phone to a nephew, or they give up.
So I removed the form completely. The app opens, greets you in Hinglish, and asks for the name out loud. You answer by speaking. It saves each answer as you go, reads everything back for confirmation, walks you through 24 designs one at a time, and finishes by offering the PDF, the image, or a shareable link over WhatsApp. Not a single field has to be typed, and no button has to be found.
Real duplex audio over a realtime voice API: 16 kHz mic capture through an AudioWorklet up, 24 kHz playback down, with barge-in so interrupting mid-sentence stops the reply instantly.
14 function declarations turn the app into a set of tools the model calls: save fields, jump to templates, favourite one, finalise, download, share. There is no scripted flow to fight with.
The model normalises before saving. "Paanch foot aath inch" arrives as 5'8" (173 cm); "barah January do hazaar ek" arrives as a formatted date with the age already computed. Deleting my regex layer made accuracy go up.
Every design is CSS and SVG, no licensed artwork. Five layouts crossed with themed ornament: temple arch, paisley corners, damask, lotus, mandala, peacock feather, arabesque.
A fitter measures every content box and shrinks a scale variable until the sheet fits 794x1123, so a biodata with 31 fields never silently loses a row in the PDF.
"Link banao, usme Rahul ka naam rakhna" publishes a page the recipient opens with no app, no login and no voice, with their own PDF, image and WhatsApp buttons.
One aiohttp process serves the static app and proxies the realtime voice socket on the same port. That is deliberate: split HTTP and WebSocket across two ports and a tunnel or an https host will block the ws:// as mixed content, killing voice remotely. The API key never reaches the browser. Tool calls are forwarded down to the browser and its responses flow back up, because everything the tools touch, fields, carousel, favourites, the PDF, lives client-side.
Stack: a hosted realtime speech-to-speech model (function calling, session resumption, sliding-window context), Python aiohttp + websockets, vanilla JavaScript with no build step, AudioWorklet, html2canvas + jsPDF, nginx with TLS on an Oracle ARM VM, Razorpay, GoDaddy DNS.
First end-to-end test: the socket opened, the model greeted me in perfect Hinglish, no errors anywhere, and it transcribed nothing. It looked like a dead key or a wrong audio format. It was neither. A real microphone keeps streaming silence after you stop talking, and automatic voice-activity detection needs that silence to close the turn. My test stopped sending frames entirely, so the turn never ended. I isolated it by talking to the voice API directly, bypassing my own bridge, which worked and proved the bridge was fine and the test was unfaithful. Padding each utterance with two seconds of zeros fixed it instantly.
Only found because I rendered a PDF and actually looked at it. html2canvas cannot parse color-mix(), which I had used in the banner and sidebar gradients, so the export threw and silently fell back to the print dialog. The preview looked perfect the whole time. Shades are now precomputed in JavaScript. Two sibling bugs came from the same audit: mirrored inline SVG transforms get mangled on export, so every ornament ships as a background-image data URI; and Chrome omits bottom padding from scrollHeight when content overflows, so the last row printed under the watermark until I reserved the space with a real element. The lesson I wrote into the repo: the on-screen preview is not evidence the PDF is right.
With every optional field filled, eight of the templates overflowed A4 and simply clipped whatever did not fit, quietly dropping the mother's name and the contact number from the printed sheet. I built a fitter that shrinks a CSS scale variable until the content fits. The catch was that it has to measure the inner boxes, not the outer layout, because several are fixed-height with overflow:hidden, so the outer element cheerfully reports no overflow while rows disappear.
I first shipped this on the browser's built-in Web Speech API. Speech cost nothing per user, the whole app was static files, and gross margin was about 99%. It was also Chrome-only and not good enough in practice. Moving to a hosted realtime voice model made the product genuinely work but put a real marginal cost on every session, roughly ₹3 to ₹4 for a three-minute conversation on paid tier. At a ₹99 price point that still works, but it is no longer free, so I documented the number rather than discovering it at scale. Voice quality and unit economics are the same decision.
The persona told the model to collect the details in order, and it obeyed so literally that asking "template dikhao" got a polite refusal until every field was filled. Correct instruction-following, terrible product. The fix was an explicit clause that the user is always in charge of where they are: any navigation request is honoured immediately, even mid-interview, and the model may offer to fill the rest later but never block. Writing a prompt is interface design.