Stack: Next.js 15 · TypeScript · Firebase Admin · Inngest · Vercel AI SDK · json-rules-engine · Gemini.
What we built:
- One panel, 7 systems: the cockpit orchestrates the Astro site, Luna WhatsApp, Luna Instagram, the admin Schedule, the Flutter app, and Meta Ads. Each system keeps its role and its own sovereign agent: the Cabin coordinates without replacing.
- 360° client profile: auth, conversations, and appointments combined into a single view, with search by phone number and lead temperature (warm, cold, VIP).
- Day-to-day operation: schedule by stylist, unified WhatsApp + Instagram inbox, web bookings, stylist panel, and post-service surveys.
- AI diagnosis and results & plan: a Gemini-assisted colorimetry flow, from consultation to service plan.
- Luna's automated messages: 24h reminder, same-day confirmation, post-service survey, birthday offer, reactivation of dormant leads, and D+30 color refresh.
- NO-TOUCH architecture: the cockpit was built in parallel without modifying the 3 systems already in production. Reads through a dedicated Firebase role, actions via the existing APIs, and a controlled handover with rollback in minutes.
