Back to portfolio

Case study · Meow Meow AI Front Desk · AI agent · n8n · Hackathon

A front desk where the AI understands and code decides.

An AI receptionist for Meow Meow Veterinary Hospital, built in n8n. It took 1st Runner-Up at AI Agents Arena 2.0 (CUI Tech Fest), and I extended it for the PayPal AI Hackathon with refundable no-show deposits.

Result
1st Runner-Up, AI Agents Arena 2.0
Built with
n8n · Gemini · Braintree
Tested
100+ checks
Status
Hackathon build, code public

01The job

One message from a pet owner, the right action on the calendar.

A pet owner sends one message, through a form, the clinic website or a JSON API. The system books, cancels or reschedules on Google Calendar, records it in Google Sheets, emails a confirmation, and hands anything medical to staff.

The hard part isn’t the chat. It’s making sure a model that can misread a message never double-books a vet, invents a time slot or gives medical advice.

02AI vs code

The model reads the message. Plain code makes every decision.

Gemini works out what the customer wants, asks for anything missing and picks one of five tools: check availability, book, cancel, reschedule, or hand off to staff. That’s all it does.

A deterministic engine workflow then checks the clinic’s rules, reads the calendar, checks overlaps and suggests up to three alternatives before it creates, moves or deletes anything. The reply’s final status comes from the tool’s evidence, not from what the model claims happened.

  1. 01EntryForm, website chat or POST /webhook/mmvh-api
  2. 02ContextClinic rules from the Config sheet; a repeated request_id replays the saved answer
  3. 03AI agentGemini: intent, follow-up questions, one tool call
  4. 04EngineCode: rules, overlaps, alternatives, then the calendar and sheet writes
  5. 05ReplyStatus from tool evidence; everything logged to CallLog

Rules the engine enforces in code: a 30-minute grid, lead time, booking horizon, clinic hours, lunch, closed days and holidays, which vet works which day, and whether a service fits the species. All-day calendar events count as busy.

03Failing safely

Built on the assumption that something will break.

If the sheet write fails after the calendar write, the engine rolls the calendar back. A repeated request replays the saved answer instead of booking twice. If Gemini fails, it falls over to a backup Gemini key, then to Groq.

A debug.fault switch in the Config sheet injects any failure live, so the error paths can be demonstrated rather than promised. A separate error-handler workflow catches what slips through.

5 agent tools

100+ checks run

3 LLM failover tiers

The checks cover rule boundaries, calendar conflicts, booking and replay, reschedule and cancel, config changes, injected failures, model behaviour and failover.

04No-show deposits

Deposits and refunds the AI is never allowed to price.

For the PayPal AI Hackathon I added refundable PayPal Braintree deposits against no-shows. A booking gets a pending ledger row and an unguessable pay link; the checkout always reads the amount from the server-side ledger, never from the model.

Refunds follow a fixed rule: cancel 24 hours or more before the visit and the deposit is refunded automatically; later than that, it’s kept; never paid, the hold is voided. Bookings left unpaid for 120 minutes are released by a sweep that runs every 15 minutes, and the slot opens up again. The AI only explains the outcome.

Staff can also draft a visit bill from their notes. Gemini only maps the notes to price-list codes; code computes every amount, anything off the list is flagged, and staff approve before the itemised bill and pay link go out.

≥ 24h before
Automatic refund (reverseTransaction)
< 24h before
Deposit kept (KEPT_LATE_CANCEL)
Never paid
Hold voided, slot released
Payments down
Booking stands; staff follow up

05Known limits

What I’d fix before a real clinic used it.

Two customers booking the exact same slot at the same instant isn’t fully atomic yet. And it runs on free-tier model quotas, which the failover tiers soften but don’t remove.

Both are listed in the README. Knowing where a system is weak is part of building it.

Hiring a remote engineer? Let’s talk.

Available for remote full-stack and Python/AI roles, 30–40 hrs/week.

Demo video