Building a booking agent for 500+ hotels: evaluation turned out to be the hardest part
Fabulous-Pea-5366 · reddit · 2026-11-25
An AI engineer at a German hospitality software company (platform handles 15,000 emails/day) shares lessons from building a production reservation agent serving 500+ hotels.
The agent extracts arrival/departure dates, room counts, and guest occupancy (including children's ages) from unstructured emails. The hard part wasn't extracting individual values but understanding relationships between them — e.g., two rooms for different periods with different occupancy each.
Key points:
- Stack: Python, LLM APIs, structured outputs, prompt engineering, deterministic processing
- Biggest challenge was evaluation: when the model returns multiple bookings in a different order than ground truth, position-based comparison mislabels correct extractions
- Implemented Hungarian matching for order-independent evaluation, with separate levels for individual fields, date pairs, and complete booking requests
Core realization: building the agent is half the job; knowing whether it actually works is an entirely separate engineering problem.
More from coding & agent
- Benchmark of 11 GitHub Actions runners puts Celesto as cheapest at $0.0011 per build — aniketmaurya · 2026-11-25
- CoT-Proxy: Distilling Frontier Models Without CoT Lifts 4B Student from 2.7% to 27.8% on SWE-bench — y_m_asano · 2026-11-25
- MCP solved tool calls, not authority: ADAP open protocol adds scoped delegation chains for agents — achardalias · 2026-11-25
- S2A MCP Builder launches: turn any OpenAPI spec into a self-healing MCP server — agentrsdg · 2026-11-25
- Agent said 'done', the write never landed: dev open-sources a read-after-write checker for Postgres — Ok-Machine7983 · 2026-11-25
- Markdown agent memory where the model classifies but never writes, on a local 4B model — yg_memlayer · 2026-11-25