The Challenge
Marktplaats Automotive wanted to radically improve the efficiency of buyer-seller interactions, without sacrificing the personal touch that drives sales. The challenge was to build an AI agent that could accurately classify buying intent, handle routine queries autonomously, and know exactly when to hand off to a human for the final deal—all within a high-volume, real-time environment.
Our Approach
We rejected the standard "chatbot" approach. Instead, we treated the conversation engine as a mission-critical software component, utilizing a cutting-edge Agentic AI stack:
- Structured Reasoning (PydanticAI): We moved away from unpredictable free-text generation. By using PydanticAI, we force the LLM to output structured data and strictly defined actions. This ensures the AI adheres to business logic and integrates seamlessly with lead management systems, rather than just "guessing" the right words.
- Self-Optimizing Prompts (DSPy): We implemented DSPy to shift from manual "prompt engineering" to programmatic optimization. This allows the system to learn from historical conversation data, automatically tuning its own instructions to improve intent recognition and conversion rates over time.
- Automated Evaluation Pipeline: To guarantee safety and quality, we built a rigorous testing suite using DeepEval. Every update is tested against a massive dataset of real-world scenarios to ensure no regressions in accuracy or tone before it ever reaches a customer.
The Results
The project successfully established a new standard for AI-assisted sales:
- Strategic Control: The system operates on a "Human-in-the-loop" model. Sellers are no longer bogged down by repetitive typing; instead, they act as strategic supervisors, approving or refining the AI's drafted responses for high-value leads.
- Actionable Intent: The AI doesn't just summarize; it actively classifies "Buying Intent" and urgency, prioritizing the hottest leads so sellers know exactly who to call first.
- Reliable Scale: By decoupling the AI engine as a modular service with full observability (tracing every decision step), Marktplaats can confidently scale this solution across their entire automotive segment.
