Smart Ticket Routing and Support Agent Copilot using LLMs

adyen · Finance · 2023 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise payment support operations

Adyen needed to scale support operations as merchant and transaction volume grew, especially by reducing ticket handoffs and helping agents answer customer inquiries faster.

Constraints:

Architecture

Adyen built two LLM applications with LangChain and LangSmith: a smart ticket router that analyzes ticket theme and sentiment, dynamically updates priority, and routes tickets to suited specialists; and a support-agent copilot that uses a vector database over public and private documents to retrieve up-to-date context and generate easily modifiable Question Answering Suggestions through an LLM integrated with Adyen's internal LLM API and Kubernetes microservice architecture.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Customer support tickets"] --> B["Smart ticket router"]
  B --> C["Specialist support teams"]
  A --> G["Support agent copilot"]
  D["Public and private documents"] --> E["Embedding model"]
  E --> F["Vector database"]
  F --> G
  G --> H["Internal LLM API endpoint"]
  H --> I["Kubernetes microservices"]
  G --> C
  J["LangSmith evaluation"] --> G
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Customer support tickets Merchant inquiries requiring routing or support responses. Smart ticket router, Support agent copilot
Smart ticket router LLM-driven routing system that analyzes theme, sentiment, and priority. Customer support tickets, Specialist support teams
Specialist support teams Technical experts best suited to respond to routed tickets. Smart ticket router, Support agent copilot
Public and private documents Relevant support documentation used for retrieval. Embedding model
Embedding model Embeds documentation for effective retrieval. Public and private documents, Vector database
Vector database Stores embedded support documents for retrieval. Embedding model, Support agent copilot
Support agent copilot RAG copilot that retrieves documents and produces suggested answers. Customer support tickets, Vector database, Internal LLM API endpoint, Specialist support teams
Internal LLM API endpoint Adyen-hosted LLM interface integrated through a custom LangChain class. Support agent copilot, Kubernetes microservices
Kubernetes microservices Event-driven production hosting architecture. Internal LLM API endpoint
LangSmith evaluation Evaluation and model comparison platform for response quality and cost. Support agent copilot

Data flow

Incoming tickets are analyzed for theme, sentiment, user-based priority, and routing destination. For answer suggestions, public and private documents are embedded into a vector database, retrieved for each ticket, passed to an LLM through Adyen's internal endpoint, and returned as modifiable response suggestions for support agents.

3 supporting quotes
“A smart ticket routing system designed to get a ticket to the right support person as quickly as possible based on content”article, stated
“A support agent copilot designed to help agents answer tickets faster and more accurately with an approach they call Question Answering Suggestions.”article, stated
“store them in a vector database with an embedding model that optimized for effective retrieval.”article, stated

Why this architecture

Adyen split routing from answer generation because handoffs and response drafting were separate support bottlenecks, and used LangChain/LangSmith to preserve model flexibility while evaluating response quality and costs.

3 supporting quotes
“passing tickets between teams was a major factor influencing response times.”article, stated
“avoid getting locked into a single model as they experimented.”article, stated
“evaluate performance of their applications and compare how different underlying models affected response quality and costs.”article, stated

Models used: LLMs · embedding model · LangChain · LangSmith

Scale

Alternatives considered (roads not taken)

Increase support headcount

Rejected because: Adyen wanted to scale support through technology without increasing team size.

“scale our business using technology without having to increase the team size”article, stated

Traditional keyword search over documents

Rejected because: The vector retrieval milestone far outperformed keyword search and built trust.

“This approach far outperformed traditional keyword-based search and, just as importantly, immediately established the team’s trust”article, stated

Single fixed model integration

Rejected because: Adyen wanted to experiment and switch among LLMs easily.

“LangChain’s flexibility allowed Adyen to switch the core part of the chain among various LLMs with ease.”article, stated

Patterns

rag-retrieval (retrieval)

The support copilot retrieves relevant public and private documents from a vector database before generating suggested answers.

“finding the most relevant and up-to-date document from a collection of public and private documents.”article, stated

model-routing (model-selection)

LangChain lets Adyen switch the core LLM in the chain during experimentation.

“switch the core part of the chain among various LLMs with ease.”article, stated

observability-tracing (observability)

LangSmith evaluates application performance and compares model quality and cost.

“They also relied on LangSmith, LangChain’s developer platform to evaluate performance of their applications and compare how different underlying models affected response quality and costs.”article, stated

tool-use-orchestration (agent-architecture)

Ticket routing and copilot workflows orchestrate LLMs, retrieval, internal endpoints, and Kubernetes microservices.

“introduced a custom class extending from LangChain’s base LLM class, and integrated it with an event-driven microservice architecture hosted in a Kubernetes cluster.”article, stated

Tradeoffs

Build with LangChain and LangSmith.

Chose customizable framework plus evaluation platform over single-model bespoke integration.

Rationale: The team wanted prototype-to-production speed, model flexibility, and cost/quality comparisons.

“Adyen decided to use LangChain to build it because they could rely on a single, easy-to-customize, framework to get from prototype to production, and avoid getting locked into a single model as they experimented.”article, stated

Keep suggested answers modifiable.

Chose agent copilot suggestions over fully automated support replies.

Rationale: Support agents remain in the loop and can edit proposed customer responses.

““With the right set of tickets in their queues and easily-modifiable potential answers to customer inquiries at their fingertips, support agents are more efficient and more satisfied.” said Andreu.”article, stated

Gotchas (what bit them)

Ticket handoffs slowed support response.

Root cause: Tickets passed between teams before reaching the right expert.

Resolution: Analyze content, theme, sentiment, and priority to route tickets to suited specialists.

“Focusing on support team efficiency and satisfaction led the team to an insight that passing tickets between teams was a major factor influencing response times. This challenge was particularly well-suited to be solved by two initial LLM applications:”article, stated

Support answer generation depends on fresh, trusted documents.

Root cause: Support responses require relevant and up-to-date public/private documentation.

Resolution: Build a document collection with vector retrieval before connecting the LLM answer generator.

“The team’s first milestone on its way to generating proposed ticket responses was finding the most relevant and up-to-date document from a collection of public and private documents.”article, stated

Model choice affects both quality and cost.

Root cause: Different LLMs produce different response quality/cost tradeoffs.

Resolution: Use LangSmith to evaluate model changes and LangChain to switch models.

“They also relied on LangSmith, LangChain’s developer platform to evaluate performance of their applications and compare how different underlying models affected response quality and costs.”article, stated

Evaluation

Adyen uses LangSmith to evaluate LLM application performance and compare model effects on response quality and costs; the source reports qualitative support-efficiency outcomes rather than detailed quantitative metrics.

Metrics: response quality · model cost · routing accuracy · response time · support agent satisfaction

“evaluate performance of their applications and compare how different underlying models affected response quality and costs.”article, stated

Outcomes

The public source describes growth pressure, major enterprise merchants, a four-month build, and qualitative efficiency/satisfaction gains but does not provide ticket-volume metrics.

“### More efficient and accurate ticket routing”article, stated
““With the right set of tickets in their queues and easily-modifiable potential answers to customer inquiries at their fingertips, support agents are more efficient and more satisfied.” said Andreu.”article, stated