aiCase Study

Patofy

Global AI Growth Platform for WhatsApp-First Service Businesses

Patofy

Overview

Patofy is an autonomous AI-driven growth engine purpose-built for appointment-based service businesses—dental clinics, aesthetic centers, wellness spas, and consultancies—across WhatsApp-dominant markets in Europe, Latin America, the Middle East, and East Africa. Designed around the 'Four R's Framework' (Reception, Reputation, Retention, and Referrals), Patofy unifies front-desk scheduling, Google review collection, loyalty ledgers, and lapsed-customer re-engagement into a single, closed-loop automation platform.

The Challenge

Service businesses lose upwards of 30% of high-intent bookings because over 60% of customer inquiries arrive after hours (between 8 PM and 7 AM) when staff are unavailable. When replies are delayed until morning, prospective clients have already booked with competitors. Furthermore, existing CRM solutions are fragmented and require manual data entry. The core engineering hurdle was architecting a multi-tenant system that connects Meta's WhatsApp Cloud API with stateful AI runtimes, handles burst-message debouncing, guarantees sub-60-second human handoff recovery, and enforces strict tenant data isolation at scale.

The Solution

I architected and engineered the end-to-end platform from data model to production deployment. The backend utilizes Payload CMS with MongoDB, orchestrating 35+ collections spanning appointments, practitioner rosters, automated marketing broadcasts, and audit logs with strict row-level security. The conversational engine pairs WhatsApp Cloud API webhooks with Voiceflow runtimes, leveraging a distributed Redis debounce buffer to assemble burst messages into coherent turns, managing multi-turn memory within Meta's 24-hour service window, and activating an automated 60-second fail-safe handoff when clients request human staff. The entire production stack is self-hosted on a Hetzner Cloud VPS orchestrated via Dokploy behind Cloudflare edge security, eliminating serverless cold starts and slashing infrastructure costs by over 90%.

Key Results

Transformed WhatsApp from a chaotic chat inbox into a predictable 24/7 booking engine and retention machine. The platform autonomous front desk resolves inquiries instantly, automates appointment bookings, triggers post-service review workflows, and re-engages dormant clients with personalized offers. Currently in pilot deployment across selected service businesses, with a validated commercial roadmap targeting 20+ global accounts and $1,900+ MRR.

  • Multi-Tenant SaaS Architecture with Strict Row-Level Security (Payload CMS + MongoDB)
  • Conversational AI Receptionist with Distributed Debouncing (WhatsApp Cloud API + Voiceflow)
  • Fail-Safe 60-Second Human Handoff with Automatic Timeout Recovery
  • Automated Growth Engine (Post-Care Google Reviews, Loyalty Points, Reactivation Broadcasts)
  • High-Performance Self-Hosted Cloud Infrastructure (Hetzner VPS + Dokploy + Cloudflare Edge)

Tech Stack

Next.js 15Payload CMSMongoDBVoiceflowWhatsApp Cloud APIStripeHetzner VPSDokployCloudflare

Project Info

RoleLead Developer
TimelineProduction
Categoryai

Ready to build something amazing?

Start a Project