Bahiga — Multi-Tenant AI Automation SaaS for SMBs & Local Government

Antonio Pulido Fernández
Published

0
  • Project creator

Founder and developer of Bahiga, a multi-tenant SaaS platform solving two distinct problems with one shared infrastructure: Spanish SMEs losing customers to unanswered after-hours WhatsApp/Telegram messages, and local governments needing 24/7 tourist and citizen assistance without expanding call-center staff.

Modules in production:

  • AI assistant (WhatsApp, Telegram, Web) — automatic multi-language support, audio transcription, lead capture, human handoff
  • Booking agent — natural language scheduling synced with Google Calendar and Outlook, automated reminders, real-duration slot-blocking
  • AI-powered email — IMAP + Microsoft Graph OAuth, per-company few-shot classification, AI-assisted reply drafting
  • Expense tracking by photo — OCR with EXIF correction, approval via Telegram/WhatsApp, auto-filing
  • Intelligent document archive — AI indexing with conversational search (“send me May’s invoice”)
  • Business analytics — conversations, leads, bookings, peak hours, top questions, built without third-party libraries

For local governments (Plan Destino Inteligente), an 8-layer anti-hallucination architecture intercepts location, opening hours, on-call pharmacy and event queries before they reach the AI model, backed by a multi-source directory importer including Google Places.

Architecture:
Laravel 11, Vue 3, Filament 3.3 (superadmin panel), MySQL, Tailwind CSS 4. True multi-tenancy via company-level data isolation with a per-plan module system and server-side role validation. Self-hosted on a dedicated Hetzner server in Germany — no third-party PaaS.

GDPR compliance, built-in rather than cosmetic:

  • Full audit logging of data access
  • Support impersonation with automatic email/phone masking
  • Superadmin access gated behind a signed DPA
  • Per-company AI budget limits with automatic degraded mode
  • Scheduled data retention and deletion policy

AI model strategy:
Mistral AI (France) powers all conversational processing for data sovereignty reasons — for citizen data under the government plan, the system blocks any fallback to non-EU providers, returning a controlled error rather than routing data to the US.
For SMB clients, a Mistral → Groq → OpenAI cascade prioritizes European infrastructure first.

Status: Currently in pre-launch commercial phase, with an active pilot for the Priego de Córdoba town council (22,000 residents) — a live Telegram assistant handling real citizen queries, contract pending signature.

Stack: Laravel · Vue.js · MySQL · Mistral API · Tailwind CSS