LLMs for Support Automation

Irina5 Feb 2025

Problem

A bank's support chat classifies each client message into an intent and launches a scripted scenario. Short messages such as "cashback" or "currency" carry no context, so the bot misreads them, clients rephrase, or the dialogue goes to an operator. T-Bank's AI Center tested whether an LLM could replace intent classification, read the whole dialogue and ask for missing details.

Example from the article: a client writes "cashback". An internal model proposes candidate intents (cashback conditions, maximum bonuses, current balance, boosted-cashback categories) and the LLM asks a question built from them.

Solution in brief

A KNN index over labeled client utterances proposes a shortlist of candidate intents. The shortlist goes into the LLM prompt, and the LLM must pick one action: choose an intent, ask a clarifying question built only from the candidates, close the dialogue, or hand over to an operator. In an A/B test, replacing the whole pipeline did not beat the existing system.

Questions this case answers
  • How to add an LLM to an existing intent-classification pipeline so that it picks among a closed set of actions or asks a clarifying question, instead of generating free text
  • How to build and evaluate a candidate shortlist for a closed-set LLM decision when the candidate list must contain the right answer almost every time
  • How to make a support chatbot understand a short, context-free client message?
  • How to let an LLM choose a support scenario or ask a clarifying question without inventing its own?

Tools and methods

  • KNN intent index — labeled client utterances, nearest-neighbor search for candidate intents
  • RoBERTa (banking domain) — embedder trained so that same-intent vectors move closer and different-intent vectors move apart
  • Active learning — low-confidence utterances go back to relabeling to diversify the index
  • Threshold on candidate scores — trims the candidate list while keeping recall high
  • LLM prompt (RAG-style) — candidates, nearest examples per intent and intent descriptions
Continue reading — it's free

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