Challenge
A real estate marketing agency sells new-build residential projects for developers. Leads arrive at all hours from ads and expect fast answers on WhatsApp: prices, floor plans, availability, viewings. Answering by hand was slow, and a generic chatbot was a risk: a wrong answer about a price or floor area can create liability.
Solution
I built a production AI agent on the Meta WhatsApp Cloud API that qualifies leads in conversation, looks up verified property data, sends exposés and books appointments. A RAG pipeline reads graphics-heavy brochures with OCR and retrieves the right passages from PostgreSQL with pgvector. Grounding rules stop unsupported answers, and the agent hands over to a human when it cannot back an answer up.
How it was tested
Before any release, the agent runs against a 51-case golden dataset: deterministic checks for facts and fallbacks, plus LLM-as-judge scoring for correctness, groundedness, retrieval quality and intent recognition. A release that scores below the baseline does not ship.
My Role
Senior AI Engineer: architecture, backend, evaluation framework, deployment and compliance controls.
Key Deliverables
- 01WhatsApp agent with lead qualification, exposé delivery and appointment booking
- 02OCR-to-pgvector RAG pipeline for property documents
- 03Evaluation framework with release gates
- 04Container deployment on Hetzner with GitHub Actions and rollback
Stack
- Python
- FastAPI
- OpenAI API
- PostgreSQL
- pgvector
- Meta WhatsApp Cloud API
- Tesseract OCR
- Docker
- GitHub Actions
- Hetzner
Related service
Production AI & ML →