
Built by: Mark Geoffrey A. Batocabe, GHL Automation Specialist Stack: n8n · Google Gemini (chat + embeddings) · Supabase (pgvector + Postgres) · Google Calendar · Google Sheets · Gmail · Slack · JavaScript Demo video: https://www.loom.com/share/806ebae305c04751a75f0365f16278b8
<aside> ℹ️
Torque & Tire Auto Service is a fictional business created for this project. All bookings shown are test data.
</aside>
Tina is an AI receptionist for an auto repair shop. She answers customer questions using only the shop's own knowledge base, checks real availability in Google Calendar, books appointments after the customer confirms, and hands cancellations, complaints, and emergencies to a human on Slack.
The problem: Small shops can't staff the phone and chat all day. Unanswered customers go elsewhere, and manual booking leads to double bookings and wrong times.
The solution: A conversational agent that knows the shop's services and policies, books real appointments safely, and knows when to step aside for a human.
| Metric | Result |
|---|---|
| Test scenarios passed | 19 / 19 (after fixes) |
| Invented prices in testing | 0 (answers only from the knowledge base) |
| Double bookings | 0 (availability is re-checked before every booking) |
| Bookings without customer confirmation | 0 |
| Real agent failures caught and fixed | 5 |
| Customer experience when the AI itself fails | Polite fallback reply with the shop's phone number, plus a Slack alert |
The shop's Google Doc (services, prices, hours, policies, FAQ) is split into chunks, turned into embeddings with Gemini, and stored in a Supabase vector database. Re-running the ingestion workflow replaces old chunks instead of duplicating them.
Tina runs on Gemini Flash with a detailed system prompt and remembers the last 10 messages of each conversation in Postgres. She decides which of four tools to call:
| Tool | What it does |
|---|---|
search_knowledge_base |
Finds the 4 most relevant chunks of the shop's docs |
check_availability |
Returns open start times for a date and service length |
book_appointment |
Re-checks the slot, validates details, creates the calendar event, logs it, and emails a confirmation |
handoff_to_human |
Posts a Slack alert to the service desk, marked high priority for emergencies |
A JavaScript function applies every business rule: weekday and Saturday hours, a weekday lunch break, Sundays and holidays, a 2-hour same-day notice, a 30-day booking window, and overlap checks against existing calendar events, all in the shop's timezone (Central Time).


