← All write-ups

Building a Sub-Second Voice AI Booking Assistant with FastAPI and Groq

AI & Voice Application2 min read·Case study: AquaShine AI Voice Concierge

A voice assistant only feels natural if it answers quickly. This page covers how I built AquaShine, an AI receptionist that handles car wash bookings by voice, and the decisions that kept the delay between a customer finishing a sentence and hearing a reply short.

1The problem: bookings by phone-style conversation

Small service businesses lose bookings when nobody can answer. The goal was a receptionist that collects the vehicle details, the service type and the customer's preferred time through a normal spoken conversation, with no forms.

2Keeping latency low with Groq and async FastAPI

Response time decides whether a voice interface feels usable. I used Groq's Llama 3.3 70B model behind FastAPI async endpoints, so the server never blocks while waiting on the model and replies come back in under a second in normal use.

  • Async endpoints so one slow request does not hold up others
  • A fast inference provider instead of a self-hosted model
  • Short, focused prompts that collect one piece of information at a time

3Turning speech into structured booking data

The browser's Web Speech API converts speech to text, and the language model extracts the booking details such as vehicle information, service type and model from the conversation. The assistant keeps asking until the required fields are complete.

4Storing sessions and audio reliably

Every conversation is saved with its history, and the full session audio is recorded. Audio arrives as chunks, so I built a small storage service that saves each chunk and links it to the conversation ID. That lets the business replay a call later without slowing down the live session.

Past conversations are listed in a sidebar, and the model generates a short title for each so they are easy to find.

5Tech stack

FastAPI and Python on the back end, Groq with Llama 3.3 for language understanding, the Web Speech API for voice input and output, and plain JavaScript, HTML and CSS on the front end.

Need something similar built?

I build and ship platforms like this for startups and retailers. Tell me what you are trying to launch and I will reply with how I would approach it.