Anatomy of this agent
- Scope
- A multi-tenant qualification agent on WhatsApp, for a Moroccan real-estate developer.
- Ownership
- Design and deployment, as my final-year internship: agent, RAG, guardrails, evaluation and observability.
- Constraints
- Prospects writing in French, Arabic, Darija and English, an inference cost to contain, and injection attempts.
- Decisions
- A state machine, so code stays in charge of the conversation.
- A hybrid classifier (regex, then cosine similarity, then the LLM as a last resort), instead of sending everything to the model.
- A self-evaluator and a circuit breaker, because an LLM eventually gets things wrong or goes down.
- Result
- 833 leads generated and 78.5% session-to-lead conversion.
source: CV. Company anonymized.