Building Agoda’s Property Bot: How We Cut Response Time from 8 Hours to Seconds

Lee Purivekin12 Dec 2024

Problem

On Agoda, users ask properties questions such as "Does this hotel offer free breakfast?" because property pages are long. Properties are slow to answer. 80% allow inbox messaging, but only 55% of questions get a reply, and the average reply takes eight hours. The team also had to stop an LLM bot from answering unrelated questions or inventing facts.

Example from the article: to "Can I check in during the morning?" the example answer says check-in is from 15:00 onwards and suggests contacting the property about earlier check-in.

Solution in brief

The bot sends each question through two prompts. A topic guardrail first checks the question against an allowed topic list. Only allowed questions reach the answer prompt, which gets the property data as context. Four answer labels steer prompt changes, and A/B tests compare prompt variants on business metrics.

Questions this case answers
  • How to answer customer questions instantly from structured catalog data with an LLM while refusing questions outside the allowed scope
  • How to evaluate and iterate on an LLM question-answering feature when quality is judged by labeling each answer
  • How to answer users' questions about a product from catalog data when the seller replies slowly or not at all?
  • How to stop an LLM chatbot from answering off-topic or unsupported questions?

Tools and methods

  • ChatGPT (OpenAI API) — answers questions and runs the guardrail check
  • Property API (PAPI) — in-house service with property data for each question
  • Input topic guardrail — a separate prompt that allows or blocks a question by topic list
  • Response labeling — four labels for judging answers: answered, partial, not answered, hallucinated
  • In-house experimentation platform — assigns users to prompt A or B and measures business metrics
Continue reading — it's free

Google or a one-time email code. No password.