Inspiration

Every vet visit produces three chores nobody enjoys: booking, getting paid, and writing the record. FurVet ("every patient is someone's fur bestie") turns one chat conversation and one recorded consult into a booked, paid and documented visit.

What it does

  1. Booking + deposit. A pet owner chats with an AI agent (Claude), books a slot and pays a deposit through PayPal Orders v2. The agent's tools carry no money fields: the amount is read server-side from the clinic catalog, in integer cents, so the model can never set or change a price.
  2. Verified payments. PayPal's signed webhook is verified, size-capped and idempotent. Every charge lives in an append-only ledger (database triggers block updates and deletes) and the appointment is confirmed only after the captured amount and currency match our own charge row.
  3. Consult capture. With the owner's consent (chat button) and the vet's (console checkbox), the consult is recorded and transcribed with Workers AI Whisper. The audio is never stored.
  4. Grounded clinical draft. Claude fills a SOAP note, vitals, prescription and vaccines through a strict tool schema with no price field. Every AI-filled field links to the transcript sentence behind it, and a deterministic validator discards quotes that are not literally in the transcript. The vet reviews and approves.
  5. Delivery. Urgent instructions go out to the owner right away; the prescription is printed and signed by the vet. The itemized bill and the full plain-language report are released once the balance is paid through the same verified webhook and ledger.
  6. AG Grid dashboard (/cobros): a live, read-only view of the ledger with each charge's status history.
  7. Clinic subscription. The clinic subscribes to FurVet with PayPal Subscriptions ($999.00 MXN/month, sandbox). The AI draft is gated on an active subscription, and the subscription webhooks (activated, payment, cancelled, suspended) feed the same signed, idempotent, append-only pipeline.

How we built it

Cloudflare Workers (TypeScript, Hono), D1, R2, Workers AI, Anthropic Claude, PayPal REST API (sandbox only), AG Grid Community. A web chat simulator stands in for WhatsApp in the demo.

Challenges

Keeping the model away from money: prices, amounts and recipients are decided by server code, never by model output. Making webhooks safe to replay: one atomic batch per payment event. Reading PayPal's real payloads, not the documented ones: during testing, a subscription cancellation was silently dropped because PayPal sent an amount as "999.0" instead of "999.00". We fixed the parser so an unreadable amount can never activate anything, but a cancellation is always recorded.

What's next

WhatsApp as the production channel (the web chat simulator stands in for it today), and clinic onboarding with live PayPal.

Try it

Demo: https://furvet.mauricio-rodher.workers.dev/sim (PayPal sandbox only; use a sandbox buyer account). Video: https://youtu.be/QzQe276LBy8 Code: https://github.com/MRodHer/furvet

Built With

  • anthropic-claude
  • claude
  • cloudflare
  • cloudflare-d1
  • cloudflare-r2
  • cloudflare-workers
  • paypal
  • paypal-orders-api
  • paypal-webhooks
  • typescript
  • workers-ai
Share this project:

Updates

Submission history