Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Adyen routes support tickets and suggests answers with AI

    Adyen's Operations AI team in Madrid built a ticket router and a support agent copilot so that merchant enquiries reach the right specialist with a drafted answer from Adyen's own documents.

    AdyenNetherlands (Built by the Operations AI team at Adyen's Tech Hub in Madrid, Spain)PaymentsIn production
    Scenario
    Support ticket triage and reply drafting
    Business function
    Customer service
    Kind of solution
    Knowledge assistant
    Who built it
    Built in-house (LangChain)
    Where it runs
    On premises
    Human oversight
    Assists people
    Organization
    Enterprise
    AI types
    Generative AI, Conversational AI, Machine learning

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. LangChain

    2. Adyen

    3. ZenML

    tl;drAdyen's router puts close to 80% of tickets in the right queue, and agents get drafted answers.See the results

    View the solutionBuild this solution yourself

    Adyen’s Operations AI team routes merchant support tickets with a machine learning classifier and gives support agents answer suggestions drafted by large language models (LLMs)1, 2. The team built both for Adyen’s support teams from its Tech Hub in Madrid2.

    The router predicts the right support queue from each ticket’s text, and the copilot drafts an answer from Adyen’s public and private documents by using retrieval-augmented generation (RAG)1, 2. In November 2023, Adyen published that the router assigns close to 80% of tickets to the right queue, close to human-level performance2. By August 2024, Adyen had added ticket summarisation to the same support workflow3.

    Before the deployment

    Adyen’s support teams answer enquiries from merchants, and growth in merchants and transaction volume increased the pressure on them1. Adyen chose support as the first target for its GenAI work3.

    • Tickets bounced between teams: Passing tickets between teams was a major factor in response times1.
    • Misrouted cases cost hours: Staff spent hours reading and understanding cases only to find they belonged to someone else3.
    • Long, complex enquiries: As a B2B company, Adyen gets complex and long enquiries, mostly in text3.
    • Manual triage: People classified cases into queues by hand, and Adyen calls human-level triage costly2.

    “We are engineers so we are always looking at ways to scale our business using technology without having to increase the team size”

    Andreu Mora, SVP of Engineering - Data at Adyen1

    What was built

    The solution sends each new ticket to the queue of the specialists best placed to answer it, and gives the agent a drafted answer to edit1, 2. The aim of the answer suggestions is to cut the initial response time for new tickets2.

    • Routing classifier: Predicts the support queue for each ticket from its text. It is a TF-IDF and SGD classifier trained on historical, manually classified cases2.
    • Smart ticket router: Analyzes the theme and sentiment of each ticket and updates its priority based on the user1.
    • Answer suggestions: An LLM writes a suggested response from the documents that retrieval finds for the ticket, and the support agent copilot shows it1, 2.
    • Support agents: Receive the tickets in their queues, edit the suggested answer, and correct the model where it is wrong1, 3.

    Alternatives considered

    • An LLM for routing: Adyen’s engineers found that LLM-based routing wouldn’t outperform the simpler TF-IDF classifier, which is easier to interpret and maintain2, 3.
    • Commercial routing tools: Adyen worked with startups and vendors while it recruited the team, and benchmarked their quality against its own router3.
    • Proprietary models: GPT-4 led on performance, but Adyen prefers open-source models such as Falcon, Llama-2 and Mistral hosted in its own infrastructure, so that sensitive data stays within its network2.
    • Existing databases as the vector store: The team assessed Redis and Cassandra, which Adyen already ran, and found they aren’t as optimized for vector data as specialized stores2.

    Rollout

    • November 2023: Adyen and LangChain describe the router and the answer suggestions in use by the support teams1, 2.
    • August 2024: Adyen reports that it has added ticket summarisation and context augmentation through RAG, and opened the in-house GenAI backend to every employee3.

    Technology and architecture

    Figure 1How a ticket reaches a queue and gets a drafted answer
    How a ticket reaches a queue and gets a drafted answerAn incoming support ticket goes to two places. The TF-IDF and SGD classifier predicts its queue and hands it to the specialist queue. The ticket text also goes to the embedding model, which searches the vector database built from public and private documents. The relevant documents go to the open-source LLMs hosted in-house, which send a suggested answer to the support agent copilot. The support agent edits the draft. All parts are documented.ticket text (data) · Documented in source [2]predicted queue (handoff to people) · Documented in source [2]routed ticket (handoff to people) · Documented in source [1]chunks (data) · Documented in source [2]ticket query (data) · Documented in source [2]vectors (data) · Documented in sources [1] [2]relevant documents (data) · Documented in source [2]suggested answer (data) · Documented in source [1]editable draft (handoff to people) · Documented in source [1]OPERATIONS AI SERVICESSUPPORT TEAMIncoming support ticket · Data · Documented in sources [1] [2]DATAIncomingsupport ticketPublic and private documents · Data · Documented in sources [1] [2]DATAPublic andprivatedocumentsTF-IDF and SGD classifier · AI model · Documented in source [2]AI MODELTF-IDF andSGD classifierEmbedding model · AI model · Documented in sources [1] [2]AI MODELEmbeddingmodelVector database · Data · Documented in sources [1] [2]DATAVectordatabaseOpen-source LLMs hosted in-house · AI model · Documented in sources [2] [3]AI MODELOpen-sourceLLMs hostedin-houseSpecialist queue · Team · Documented in source [2]TEAMSpecialistqueueSupport agent copilot · Application · Documented in source [1]APPLICATIONSupportagent copilotSupport agent · Person · Documented in source [1]PERSONSupport agentticket textpredictedqueuerouted ticketchunksticket queryvectorsrelevantdocumentssuggestedanswereditable draftHow a ticket reaches a queue and gets a drafted answerAn incoming support ticket goes to two places. The TF-IDF and SGD classifier predicts its queue and hands it to the specialist queue. The ticket text also goes to the embedding model, which searches the vector database built from public and private documents. The relevant documents go to the open-source LLMs hosted in-house, which send a suggested answer to the support agent copilot. The support agent edits the draft. All parts are documented.ticket text (data) · Documented in source [2]predicted queue (handoff to people) · Documented in source [2]routed ticket (handoff to people) · Documented in source [1]chunks (data) · Documented in source [2]ticket query (data) · Documented in source [2]vectors (data) · Documented in sources [1] [2]relevant documents (data) · Documented in source [2]suggested answer (data) · Documented in source [1]editable draft (handoff to people) · Documented in source [1]OPERATIONS AI SERVICESSUPPORT TEAMIncoming support ticket · Data · Documented in sources [1] [2]DATAIncoming support ticketPublic and private documents · Data · Documented in sources [1] [2]DATAPublic and privatedocumentsTF-IDF and SGD classifier · AI model · Documented in source [2]AI MODELTF-IDF andSGD classifierEmbedding model · AI model · Documented in sources [1] [2]AI MODELEmbedding modelVector database · Data · Documented in sources [1] [2]DATAVector databaseOpen-source LLMs hosted in-house · AI model · Documented in sources [2] [3]AI MODELOpen-source LLMshosted in-houseSpecialist queue · Team · Documented in source [2]TEAMSpecialist queueSupport agent copilot · Application · Documented in source [1]APPLICATIONSupport agent copilotSupport agent · Person · Documented in source [1]PERSONSupport agentticket textpredicted queuerouted ticketchunksticket queryvectorsrelevant documentssuggested answereditable draft
    • AI component
    • Data
    • Handoff to people
    Sources [1][2][3]
    A classifier picks the queue, and a self-hosted LLM drafts an answer from retrieved documents for the agent to edit.

    LangChain is an open-source framework for LLM applications. In this deployment, it connects the document loaders, the embeddings, the vector store, the prompt and the LLM, and lets the team swap the LLM without changing the rest1, 2. A custom class extending LangChain’s base LLM class calls Adyen’s internal LLM API endpoint1. Adyen runs its GenAI capabilities on-premises, on its own data clusters equipped with GPUs3.

    Layer What they used Role Source
    Language model Open-source LLMs hosted in-house Generates a suggested answer to the ticket from the retrieved documents 2, 3
    Predictive model TF-IDF and SGD classifier Predicts the support queue for each incoming ticket 2, 3
    Workplace application Support agent copilot Shows support agents an editable suggested answer for each ticket 1
    Model gateway Internal LLM API endpoint Serves the language models to the copilot through a custom LangChain class 1
    Framework or library LangChain Connects the loaders, embeddings, vector store, prompt and LLM in one chain 1, 2
    Embedding and ranking model Embedding model Turns document chunks and the ticket query into vectors for similarity search 1, 2
    Search and vector index Vector database Stores the document vectors and returns the chunks closest to the ticket 1, 2
    Knowledge content Public and private company documents Supplies the context the copilot answers from 1, 2
    Offline evaluation LangSmith Debugs, tests and compares chains, prompts and models for quality and cost 1, 2
    Offline evaluation RAGAS Scores the RAG answers on faithfulness, context relevance and precision 2
    Monitoring Grafana and Prometheus Track key metrics and system performance 2
    Compute and servers Kubernetes cluster Hosts the event-driven microservices that run the applications 1

    Data inputs

    • Ticket text: The router classifies it, and the copilot embeds it as the query for similarity search1, 2.
    • Labeled ticket history: Historical records of manually classified cases train the routing classifier2.
    • Company documents: Loaders scrape Adyen’s websites and retrieve private documents, then attach metadata such as the source, for example help.adyen.com, to each chunk2.
    • Evaluation answers: Expert answers, or responses from models such as GPT-4, serve as the source of truth for scoring2.

    Integrations

    • Support queues: The classifier writes the predicted queue for each support case2.
    • Internal LLM API endpoint: Receives prompts from the copilot chain and returns the generated text1.
    • Event-driven microservices: The applications run as an event-driven microservice architecture in a Kubernetes cluster1.

    Testing and monitoring

    • Retrieval first: The first milestone was retrieving the most relevant and up-to-date document for a ticket, before any LLM generated an answer1.
    • LangSmith: The team debugs chains, compares prompts and LLMs for quality and cost, and tracks latency and token use per stage1, 2.
    • RAGAS: Scores the answers on faithfulness, context relevance and precision2.
    • Context compression: A compression step from LangChain’s contextual compressor improved performance in prototyping when tokens were limited2.

    Results

    The router and the copilot changed how tickets reach agents and how agents start an answer1.

    Metric Before After Scope and timeframe Reported by
    Tickets assigned to the right queue Not disclosed close to 80% TF-IDF and SGD classifier, close to human-level performance Adyen, measured2
    • Routing accuracy: The share of tickets that the TF-IDF classifier assigns to the right queue. It is close to the costly human level, and it beat the commercial solutions Adyen tested, at a fraction of their operational and energy cost2, 3.
    • Retrieval quality: Retrieval over the document collection far outperformed traditional keyword-based search. The team built the collection and its vector database in 4 months1.
    • Agent work: Andreu Mora says that, with the right tickets in their queues and editable answers at hand, support agents are more efficient and more satisfied1.

    Lessons learned

    The simplest model won the routing task. Adyen’s engineers found that an LLM wouldn’t outperform a TF-IDF classifier, which beat vendor tools at a fraction of the cost and stays fully under Adyen’s control3. Adyen draws the lesson that not every NLP problem needs the latest LLM2.

    Proving retrieval before generation built trust. Retrieval that beat keyword search immediately established the team’s trust in the system1. ZenML’s LLMOps Database calls this phased approach methodical4.

    The router still sends about one ticket in five to the wrong queue, because its accuracy is close to 80%2. Adyen names a confidence threshold that leaves the most complicated cases to manual triage as the way to raise performance2.

    Self-hosting has a cost in effort. Adyen writes that self-hosting open-source LLMs presents its own challenges even with GPU clusters, and that moving LLM applications into production demanded considerable fine-tuning of prompts and chains2.

    The accounts describe the router differently. LangChain calls it LLM-driven, analyzing the theme and sentiment of each ticket, and ZenML repeats that description1, 4. Adyen’s own posts describe a TF-IDF and SGD classifier for queue routing2, 3.

    The accuracy figure and the comparisons are Adyen’s own, and the LangChain account is the framework vendor’s customer story1, 2. ZenML notes that the LangChain story focuses on the positive side and calls its claim that retrieval far outperformed keyword search not substantiated with comparative data4.

    Case study scorecard

    Build this solution yourself

    Analysis

    What you need

    • Tickets labeled with their queue: The router learned from historical, manually classified cases, so check that your past tickets record the queue that resolved them2.
    • A curated document collection: Adyen spent 4 months collecting public and private documents into a vector database before generating any answer1.
    • GPU capacity you control: Adyen runs open-source models on its own GPU clusters to keep support data within its network2, 3.
    • Agents who edit the drafts: The copilot only suggests answers, and Adyen counts on its support staff to correct the model1, 3.

    Reference architecture

    Knowledge assistant

    A knowledge assistant answers a question that staff ask in their own words, by using the organization's own documents, and shows the sources of the answer. The search index returns the passages that best match a question, and a language model writes the answer from them. Content curators prepare the content beforehand, and the person who asked checks the answer and decides what to do with it.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    Cite this case study

    Enterprise AI Case Studies. "Adyen routes support tickets and suggests answers with AI." Updated Nov 26, 2026. https://case-studies.ai/case-studies/customer-engagement/CE-096-support-ticket-routing-copilot-adyen/

    @misc{csai-ce-096,
      author = {{Enterprise AI Case Studies}},
      title = {{Adyen routes support tickets and suggests answers with AI}},
      year = {2026},
      note = {Updated 2026-11-26},
      url = {https://case-studies.ai/case-studies/customer-engagement/CE-096-support-ticket-routing-copilot-adyen/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

      LLMs accelerate Adyen's support team through smart-ticket routing and support agent copilot

      Partner or vendorLangChain, Nov 28, 202328 Nov 2023By The LangChain TeamAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (17)
      • With more merchants signing on and with increased transaction volume comes increased pressure on support teams
      • We are engineers so we are always looking at ways to scale our business using technology without having to increase the team size
      • Adyen spun up a new and lean team of Data Scientists and Machine Learning Engineers based out of their new Tech Hub in Madrid, Spain
      • passing tickets between teams was a major factor influencing response times
      • A smart ticket routing system designed to get a ticket to the right support person as quickly as possible based on content
      • A support agent copilot designed to help agents answer tickets faster and more accurately with an approach they call Question Answering Suggestions.
      • 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.
      • 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.
      • LangChain’s flexibility allowed Adyen to switch the core part of the chain among various LLMs with ease.
      • they 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
      • The foundation of Adyen’s smart ticket router is an internal tool that analyzes the theme and sentiment of each ticket, and dynamically updates its priority based on the user.
      • this LLM-driven approach enables merchants to receive support from the technical experts most suited to respond quickly
      • In just 4 months the Adyen team was able to build a comprehensive collection of relevant documents (combining public and private company documents) and store them in a vector database with an embedding model that optimized for effective retrieval.
      • 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.
      • This approach far outperformed traditional keyword-based search and, just as importantly, immediately established the team’s trust in the new system.
      • The next step was to connect to an LLM to produce a suggested response for support agents through their proprietary copilot.
      • 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.
    2. Source 2:

      Driving Operational Efficiency at Adyen through Large Language Models (LLMs)

      OrganizationAdyen, Nov 27, 202327 Nov 2023By Rafael Hernández and Andreu MoraAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (37)
      • Immediate attention was given to understanding the licensing options and ensuring the control and safe usage of the technology.
      • we established a dedicated team of Data Scientists and ML engineers at Adyen’s Tech Hub in Madrid
      • We aim to use Natural Language Processing to quickly route support cases to the right specialist, accelerating resolution times.
      • support case routing can be easily framed as a multiclass classification problem using historical records of manually classified cases for training a machine learning model
      • a well-established and simpler pipeline that combines Term Frequency-Inverse Document Frequency (TF-IDF) with a Stochastic Gradient Descent (SGD) classifier on top can do the job effectively
      • Applying a classification algorithm on the TF-IDF vectors to predict queues for each support case.
      • Interpretability: Understanding why a particular classification decision was made is more transparent with this approach.
      • Maintainability: Implementing this pipeline might require fewer computational and operational resources compared to training a LLM for the task.
      • it scores close to 80% accuracy in assigning tickets to the right queue, which is close to the costly human level performance
      • It also outperforms other commercial solutions we explored.
      • If we decide to leave the most complicated cases to manual triage, using a threshold based on the confidence of the model, the performance can be even higher.
      • not every NLP problem may require the latest state-of-the-art LLM
      • The primary goal of this project is to decrease the initial response time for new tickets by providing automatic, accurate answer suggestions - reducing significant workforce hours.
      • RAG leverages an existing document database to generate contextual suggestions, streamlining the process and linking responses in the available knowledge base.
      • An embedding model to vectorize these chunks and the ticket query during inference for semantic similarity search.
      • A vector database to store and retrieve the document/chunk vector representations, allowing relevant document identification based on similarity metrics with the ticket query.
      • Langchain, regardless of the type of model employed or the database technology for the vector store, acts as the “glue” to connect all these components and to build end-to-end applications
      • It gives you the flexibility, for example, to decouple the chosen LLM from the rest of the application components, thus greatly simplifying the development process.
      • we have a strong preference for building in-house or using Open-source software before using a vendor
      • GPT-4 stands out for its exceptional performance. However, at Adyen, we are keen on exploring the potential of Open-source alternatives like Falcon, Llama-2 or Mistral
      • Data privacy and security: Hosting Open-source models in our infrastructure means sensitive data stays within our network.
      • Control and long-term viability: Open-source models reduce dependency on external vendors, ensuring project viability and avoiding lock-in effect.
      • self-hosting presents its own challenges, even with a robust infrastructure of GPU clusters
      • our experiments with Open-source LLMs such as Falcon 40b, Llama-2 40b and Mistral 7b have yielded promising results for the tasks we've targeted
      • Loading documents from Adyen's websites and private sources is a multi-step process, involving web scraping, document retrieval and secure access management.
      • Metadata Attachment: Linking metadata to each chunk, like its source (e.g., help.adyen.com) or category, helps with later retrieval prioritization or filtering.
      • Initially, we assessed Redis and Cassandra, technologies already available at Adyen
      • they don't offer the same level of optimization for vector data storage and querying as specific solutions like LanceDB or ChromaDB
      • when prototyping for RAG applications, we found that introducing a context compression step can significantly enhance the performance, particularly when managing limited tokens
      • This component, facilitated by LangChain's contextual compressor, refines the context before feeding it into the generative part of the LLM.
      • Transitioning LLM applications into production is a complex journey. This demands considerable fine-tuning and customizing of several elements, such as prompts and chains.
      • To navigate this phase, we have been using LangSmith.
      • Run a specific chain repeatedly to verify consistent quality
      • LangSmith offers quick debugging of nested prompts, monitors latencies, tracks token consumption at each stage, and evaluates responses against user-configurable metrics.
      • We employed Grafana and Prometheus for fundamental monitoring and logging. These tools help track key metrics and system performance.
      • For the assessment of RAG applications, we have explored different frameworks, eventually choosing RAGASt offers a comprehensive mix of metrics such as faithfulness, context relevance and precision.
      • It utilizes either expert answers as a source of truth, or responses from advanced models like GPT-4.
    3. Source 3:

      How Adyen does AI

      OrganizationAdyen, Aug 16, 202416 Aug 2024By Andreu MoraAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (14)
      • we use open-source foundational models that are hosted and fine-tuned in-house
      • all our GenAI-powered workflows are designed for Human in the Loop. Operational support is already reaping the benefits.
      • we chose to focus our GenAI efforts on our customer support service and operations
      • We also started by partnering with startups and vendors that would offer this service while we were recruiting, ramping up the team and pointing them to work on both benchmarking vendor quality and to build our internal service for the correct routing of tickets.
      • First, data consists primarily of text (i.e. no multimodal) which eases the learning curve.
      • routing accuracy would reduce the amount of hours designated to read and understand cases just to figure out it was from someone else
      • Given we are a B2B company, our enquiries tend to be complex and long.
      • Here we can leverage the human to either improve the labeling and annotation of datasets or to correct the model at inference time.
      • our engineers and scientists figured that LLM-based routing wouldn’t out-perform a more simple TF IDF (Term Frequency Inverse Document Frequency) classifier
      • Our system was just performing better than the choices provided by the vendors and it was completely within our control and a fraction of the operational and energy cost.
      • It is indeed important to be measured in times of hypes.
      • From there on we have added ticket summarisation and context augmentation through RAG to the support use case.
      • Since we also created the backend to leverage GenAI in-house for operational support, we decided to open it up to every Adyener.
      • We deployed our GenAI capabilities on-prem on our data clusters, that we also equipped with GPUs
    4. Source 4:

      Adyen: Smart Ticket Routing and Support Agent Copilot using LLMs

      IndependentZenML, Jan 1, 20261 Jan 2026Accessed Nov 26, 202626 Nov 2026

      Supporting excerpts (4)
      • Smart Ticket Routing System: This system analyzes incoming tickets to determine their theme and sentiment, then dynamically adjusts priority based on the user context.
      • It’s worth noting that this case study is published on LangChain’s blog and focuses primarily on the positive aspects of the implementation.
      • The claim that the RAG approach “far outperformed traditional keyword-based search” is not substantiated with comparative data.
      • The phased approach of validating retrieval before adding generation components shows methodical system development.

    More in Customer Engagement

    View all