Self-evolving Agentic Customer Support System at LinkedIn
Summary
LinkedIn presents a self-evolving agentic customer support system that integrates RAG with evolutionary auto-prompting and modular evaluation, achieving significant gains in production A/B tests including a 9.0-point increase in QA self-serve and 30.6-point improvement in routing accuracy.
View Cached Full Text
Cached at: 08/12/26, 08:21 AM
# Self-evolving Agentic Customer Support System at LinkedIn
Source: [https://arxiv.org/html/2608.10224](https://arxiv.org/html/2608.10224)
Chih Hui Wang, Mengdie Tu11footnotemark:1, Qianyun Zhang11footnotemark:1, Wei Wu11footnotemark:1, Lili Zhou, Mingqi Shen, Changshuai Wei LinkedIn \{ciwang, metu, qazhang, wwu1, lizhou, minshen, chawei\}@linkedin\.com
###### Abstract
Enterprise support agents operate in rapidly changing environments where policies, product capabilities, and knowledge bases evolve continuously, making static assistants brittle and costly to maintain\. We present LinkedIn’s self\-evolving agentic support system, which integrates retrieval\-augmented generation with evolutionary auto\-prompting and a modular, production\-aligned evaluation framework to enable safe, continuous improvement without retraining foundation models\. The system treats prompts, retrieval, and evaluation as a closed\-loop, versioned workflow with operational guardrails\. Offline simulations and ablations show clear quality gains over vanilla RAG and baseline agents, including reduced hallucinations and improved response completeness\. In a two\-week user\-randomized A/B test on LinkedIn’s production support traffic, the integrated self\-evolved workflow increased QA self\-serve by 9\.0 percentage points, cancellation self\-serve by 4\.8 points, and routing accuracy by 30\.6 points\. These results demonstrate a practical path to scalable, self\-evolving AI agents in real\-world enterprise settings\.
Self\-evolving Agentic Customer Support System at LinkedIn
Chih Hui Wang††thanks:Equal contribution, Mengdie Tu11footnotemark:1, Qianyun Zhang11footnotemark:1, Wei Wu11footnotemark:1,Lili Zhou, Mingqi Shen, Changshuai Wei††thanks:Corresponding authorLinkedIn\{ciwang, metu, qazhang, wwu1, lizhou, minshen, chawei\}@linkedin\.com
## 1Introduction
Enterprise customer support is increasingly mediated by AI agents, yet real\-world deployments face a reliability problem qualitatively different from standard chatbot benchmarks\. At LinkedIn, support spans many product surfaces, multiple lines of business, and dozens of languages, while the underlying ecosystem changes continuously: product launches reshape the knowledge base, content is published or deprecated, retrieval indices are refreshed, prompts evolve, and underlying LLMs and tool APIs change over time\. Even small upstream changes can induce regressions—hallucinations, stale guidance, broken tool flows, or inconsistent multilingual tone—making a “set\-and\-forget” assistant brittle and expensive to maintain\. Traditional production support agents—built on a handcrafted prompt, a fixed retrieval pipeline, and periodic human QA—do not scale with this velocity, and lack a principled feedback loop that can detect regressions, localize failures to specific components, and adapt without heavy human intervention\.
Three lines of recent work motivate the design we present\.*Prompt optimization*treats prompts as programs, with score\-based search \(APEZhou and others \([2023](https://arxiv.org/html/2608.10224#bib.bib1)\)\), LLM\-as\-optimizer \(OPROYang and others \([2024](https://arxiv.org/html/2608.10224#bib.bib2)\)\), evolutionary search \(PromptBreeder, EvoPromptFernando and others \([2023](https://arxiv.org/html/2608.10224#bib.bib4)\); Guo and others \([2024](https://arxiv.org/html/2608.10224#bib.bib3)\)\), and declarative compilation \(DSPyKhattab and others \([2023](https://arxiv.org/html/2608.10224#bib.bib5)\)\) all showing that prompts can be evolved offline against task metrics and shipped as versioned artifacts\.*LLM\-as\-a\-judge*evaluation enables scalable assessment of multi\-dimensional qualityZheng and others \([2023](https://arxiv.org/html/2608.10224#bib.bib6)\); Liu and others \([2023](https://arxiv.org/html/2608.10224#bib.bib7)\), with documented biases that can be mitigated through structured rubrics, length controlDubois and others \([2024](https://arxiv.org/html/2608.10224#bib.bib8)\), and open evaluator modelsKim and others \([2024](https://arxiv.org/html/2608.10224#bib.bib9)\)\.*Retrieval\-augmented generation*grounds responses in proprietary knowledgeLewis and others \([2020b](https://arxiv.org/html/2608.10224#bib.bib10)\); Karpukhin and others \([2020](https://arxiv.org/html/2608.10224#bib.bib11)\); Gao and others \([2023a](https://arxiv.org/html/2608.10224#bib.bib12)\), and recent self\-reflective variants \(Self\-RAG, CRAGAsai and others \([2024](https://arxiv.org/html/2608.10224#bib.bib13)\); Yan and others \([2024](https://arxiv.org/html/2608.10224#bib.bib14)\)\) treat retrieval as an explicit agent action rather than a preprocessing step, aligning with reasoning\-and\-acting paradigmsYao and others \([2023](https://arxiv.org/html/2608.10224#bib.bib15)\)\.
For enterprise support, the operational implication of these advances is that prompts, retrievers, and evaluators all become*versioned artifacts*that can change frequently—and often function like policy changes affecting routing, escalation thresholds, safety posture, and brand tone across multiple products and languages\. A self\-evolving system therefore requires not just optimization, but the engineering discipline to deploy these changes safely: regression testing, staged rollout, gated promotion, and rollback\. Our evaluation layer must in turn be reliable enough to drive these decisions at scale, robust to knowledge drift, and decomposed into interpretable signals so failures can be attributed and acted on\.
We co\-evolve the three layers under strict version control, deliberately avoiding fine\-tuning because support knowledge changes too quickly for retraining cycles and because retrieval\-based knowledge injection often outperforms unsupervised fine\-tuning for factual updatesOvadia and others \([2024](https://arxiv.org/html/2608.10224#bib.bib16)\); Soudani and others \([2024](https://arxiv.org/html/2608.10224#bib.bib17)\)\. Our evaluation layer is structured as specialized evaluator agentsWu and others \([2023](https://arxiv.org/html/2608.10224#bib.bib18)\), and our operational “memory” is implemented as bounded, auditable, versioned artifacts rather than unconstrained long\-horizon memoryPacker and others \([2023](https://arxiv.org/html/2608.10224#bib.bib19)\); Shinn and others \([2023](https://arxiv.org/html/2608.10224#bib.bib20)\)\.
Contributions\.We \(1\) describe an end\-to\-end self\-evolving support agent that remains reliable under continual upstream change via closed\-loop evaluation and optimization; \(2\) present an automatic prompt evolution engine suitable for enterprise constraints \(tone, policy, multilingual\); \(3\) propose a modular, multi\-signal evaluation framework actionable for debugging at scale; and \(4\) detail a version\-controlled RAG\-and\-tools layer supporting reproducibility, safe rollout, and rollback\.
## 2Methodology
### 2\.1Overall system
Figure[1](https://arxiv.org/html/2608.10224#S2.F1)shows the Support AI Agent as a closed\-loop, self\-evolving system in which prompting, retrieval, and evaluation form an explicit feedback cycle\. At inference time the agent is conditioned by a system prompt from the Automatic Prompt Engine that encodes task instructions, tone, and implicit policies for reasoning depth and tool use\. RAG is exposed as an explicit action rather than a preprocessing step, letting the agent decide when to retrieve and how to integrate evidence, consistent with reasoning\-and\-acting paradigmsYao and others \([2023](https://arxiv.org/html/2608.10224#bib.bib15)\); Schick and others \([2023](https://arxiv.org/html/2608.10224#bib.bib32)\)\. Outputs are scored by a modular evaluation framework that decomposes quality into grounding, intent alignment, multilingual fidelity, and stylistic compliance using rule\-based diagnostics and LLM\-based judgesZheng and others \([2023](https://arxiv.org/html/2608.10224#bib.bib6)\); aggregate fitness signals feed back into the prompt engine, which refines the system prompt via evolutionary search\. The architecture exposes two coupled loops—an inner inference loop \(agent↔\\leftrightarrowRAG↔\\leftrightarrowcontent lake\) and an outer optimization loop \(auto\-prompt→\\rightarrowagent→\\rightarrowevaluator→\\rightarrowauto\-prompt\)—enabling scalable self\-improvement and rapid adaptation across products and languages without modifying the base model or retrieval corpus\.
Support AI Agent\(reason \+ act\)Auto\-PromptEngine\(evolutionary search\)Modular EvaluationFramework\(scores & diagnostics\)RAG Tool\(retrieve evidence\)Versioned Content Lake\(help/learn/docs\)User Query\+ Chat ContextAgent Response\(\+ citations\)optimizedsystem promptresponses \+ tracesfitness signals \(multi\-metric\)tool invocation\(as action\)grounding docs\+ provenanceretrieve top\-kkevidencerequestquality report& failure typesClosed\-loop self\-evolutionWhat evolves:prompt policies \(tool use, tone, structure\)What stays fixed per iteration:base LLM1\+ content snapshot
Figure 1:Self\-evolving Support AI Agent architecture\.
### 2\.2Auto\-Prompt
Manual prompt development is a major bottleneck in production: in our deployment, a single line\-of\-business iteration can take weeks\. We replace this with an Automatic Prompt Engineering Engine \(“Auto\-Prompt”\) that formulates prompt optimization as evolutionary search inspired by genetic algorithmsHolland \([1992](https://arxiv.org/html/2608.10224#bib.bib29)\); Whitley \([1994](https://arxiv.org/html/2608.10224#bib.bib30)\)\. Domain\-specific business rules guide an LLM\-driven initialization stage, after which a population of candidate prompts evolves through selection, crossover, and mutation, evaluated each generation against task\-specific metrics; only the strongest survive into the next iteration\. The full pseudocode is given in Algorithm[1](https://arxiv.org/html/2608.10224#alg1)\.
Evolutionary search fits this setting because prompt optimization is black\-box, non\-differentiable search over discrete text, with fitness supplied by LLM and rule\-based evaluators\. Unlike single\-candidate hill climbing, a population preserves diverse combinations of tone, tool\-use policy, reasoning depth, and response structure; crossover recombines complementary instructions discovered in different lineages, while mutation provides local exploration\. APE and OPRO optimize prompts through score\-guided generationZhou and others \([2023](https://arxiv.org/html/2608.10224#bib.bib1)\); Yang and others \([2024](https://arxiv.org/html/2608.10224#bib.bib2)\), and DSPy compiles declarative programs against metricsKhattab and others \([2023](https://arxiv.org/html/2608.10224#bib.bib5)\); our use of constrained evolution emphasizes population diversity, recombination, and immutable enterprise\-policy filters\. The ablation in Table[2](https://arxiv.org/html/2608.10224#S4.T2)tests whether both evolutionary operators are necessary\.
To prevent evolutionary drift from violating safety or policy requirements, business rules are treated as immutable hard constraints rather than optimization objectives: violating prompts are filtered or assigned zero fitness prior to selection\. Crossover and mutation therefore operate within a constrained prompt space that preserves required behaviors by construction, ensuring evolutionary gains target accuracy without eroding compliance or product invariants\.
Algorithm 1Genetic Prompt Optimization1:Business rules
ℛ\\mathcal\{R\}, evaluation dataset
𝒟\\mathcal\{D\}, population size
NN, elite size
KK, maximum generations
GG, scoring function
𝒮\(⋅\)\\mathcal\{S\}\(\\cdot\)
2:Optimized prompt
p∗p^\{\*\}
3:Initializeprompt population
P0←LLMGenerate\(ℛ,N\)P\_\{0\}\\leftarrow\\textsc\{LLMGenerate\}\(\\mathcal\{R\},N\)
4:Initialize evaluation cache
𝒞←∅\\mathcal\{C\}\\leftarrow\\emptyset
5:for
g=1g=1to
GGdo
6:foreachprompt
p∈Pg−1p\\in P\_\{g\-1\}do
7:if
p∉𝒞p\\notin\\mathcal\{C\}then
8:Run LLM inference on
𝒟\\mathcal\{D\}using
pp
9:Compute fitness
f\(p\)←𝒮\(p,𝒟\)f\(p\)\\leftarrow\\mathcal\{S\}\(p,\\mathcal\{D\}\)
10:Store
\(p,f\(p\)\)\(p,f\(p\)\)in cache
𝒞\\mathcal\{C\}
11:else
12:Retrieve
f\(p\)f\(p\)from
𝒞\\mathcal\{C\}
13:endif
14:endfor
15:Select top\-
KKelite prompts
Eg⊂Pg−1E\_\{g\}\\subset P\_\{g\-1\}by fitness
16:Initialize new population
Pg←EgP\_\{g\}\\leftarrow E\_\{g\}
17:while
\|Pg\|<N\|P\_\{g\}\|<Ndo
18:Sample parents
\(pi,pj\)\(p\_\{i\},p\_\{j\}\)from
EgE\_\{g\}
19:
p′←SemanticBlend\(pi,pj\)p^\{\\prime\}\\leftarrow\\textsc\{SemanticBlend\}\(p\_\{i\},p\_\{j\}\)111SemanticBlend: LLM\-based crossover that merges two prompts while preserving meaning and tone\.
20:
p′′←Mutate\(p′\)p^\{\\prime\\prime\}\\leftarrow\\textsc\{Mutate\}\(p^\{\\prime\}\)222Mutate: small random edits to increase diversity and exploration\.
21:Add
p′′p^\{\\prime\\prime\}to
PgP\_\{g\}
22:endwhile
23:endfor
24:return
p∗←argmaxp∈PGf\(p\)p^\{\*\}\\leftarrow\\arg\\max\_\{p\\in P\_\{G\}\}f\(p\)
### 2\.3Retrieval Augmented Generation \(RAG\)
Support knowledge is proprietary and changes constantly, so we ground responses in retrieved content rather than parametric model knowledgeLewis and others \([2020b](https://arxiv.org/html/2608.10224#bib.bib10)\); Guu and others \([2020](https://arxiv.org/html/2608.10224#bib.bib31)\)\. We depart from fixed retrieval pipelines and expose RAG as a*tool*the agent invokes within its reasoning loopYao and others \([2023](https://arxiv.org/html/2608.10224#bib.bib15)\); Schick and others \([2023](https://arxiv.org/html/2608.10224#bib.bib32)\), letting the model decide when to retrieve and how to query, mirroring recent agentic RAG systemsPress and others \([2023](https://arxiv.org/html/2608.10224#bib.bib36)\); Shinn and others \([2023](https://arxiv.org/html/2608.10224#bib.bib20)\)\.
Our unified knowledge base consolidates three content sources: help articles, learning content, and product documentation microsites\. They are refreshed by an ETL \(Extract–Transform–Load\) pipeline that chunks, embeds, facets, and retires content before loading it into the versioned content lake\. Retirement is enforced through a snapshot pointer, so each refresh scopes retrieval to the latest snapshot and supersedes prior content without deleting it\. Each document is tagged with three facets—*product*\(line of business\),*locale*\(7\+ languages\), and*snapshot date*—enabling scoped, reproducible retrievalLin and others \([2021](https://arxiv.org/html/2608.10224#bib.bib33)\); Gao and others \([2023b](https://arxiv.org/html/2608.10224#bib.bib34)\)\. At query time, hybrid dense–sparse retrieval is followed by semantic re\-rankingBerntson \([2023](https://arxiv.org/html/2608.10224#bib.bib37)\); Nogueira and Cho \([2019](https://arxiv.org/html/2608.10224#bib.bib35)\), returning ranked grounding documents with provenance \(URL, locale, source\) for citation and audit\.333GPT\-4o\-mini \(via Azure OpenAI service\) was used as the base LLM in production at the time of writing\.
### 2\.4Evaluation Framework
Operating across 36\+ languages and many product lines with a constantly drifting knowledge base, we cannot rely on fixed gold sets or static benchmarksLewis and others \([2020a](https://arxiv.org/html/2608.10224#bib.bib21)\); Longpre and others \([2021](https://arxiv.org/html/2608.10224#bib.bib22)\)\. We instead use a modular, agent\-aware framework that decomposes quality into interpretable dimensions—grounding, intent understanding, tool\-execution correctness, and multilingual fidelity—each scored by specialized evaluators combining rule\-based checks with LLM judgments\. Multilingual quality is assessed by dedicated modules that detect untranslated spans, verify terminology, and measure fluency via XGLM perplexityLin and others \([2022](https://arxiv.org/html/2608.10224#bib.bib28)\), while an LLM evaluator scores semantic fidelity under realistic dialog conditions\. Production monitoring spans all supported locales, while the controlled benchmark in Section[4\.4](https://arxiv.org/html/2608.10224#S4.SS4)focuses on English↔\\leftrightarrowChinese as a challenging distant\-language pair\.
Unlike static benchmarks, evaluation is conditioned on the context retrieved at inference time, addressing knowledge drift directlyZheng and others \([2023](https://arxiv.org/html/2608.10224#bib.bib6)\)\. Signals are aggregated through a consensus layer calibrated against periodic human annotations, stored in a versioned replayable format, and consumed by upstream optimization \(auto\-prompt and RAG iteration\), closing the loop between agent behavior, measurement, and controlled self\-evolution\.
## 3Engineering Architecture and Deployment
Continuous evolution of prompts, retrieval, and evaluation expands the failure surface relative to static deployments\. The production architecture \(Figure[2](https://arxiv.org/html/2608.10224#S3.F2)\) is structured around four principles\.
User Chat InterfacesOrchestration &FallbackAgent RuntimePrompt assemblyContext / RAGTool invocationVersioned External CapabilitiesLLM gatewayTool APIsKnowledge storeModerationTelemetry & Event StreamTracesEventsETLModular Evaluation AgentsGroundednessRelevanceCompletenessTranslationVersioned Artifacts RegistryScoresDatasetsRegressionsOptimization & Safe RolloutPrompt evolutionRetrieval tuningGated deploy / rollbackevaluation driven evolutionscores \+ regressionscandidate artifactsgated deploy / rollbackExecution PlaneControl Plane \(Self\-Evolution\)
Figure 2:Production architecture for a self\-evolving support agent\. Optimization and Safe Rollout consumes evaluator scores and regression signals together with candidate versioned artifacts, then emits gated deployment or rollback decisions to the execution plane\.#### Reliability as a prerequisite for self\-evolution\.
A lightweight orchestration and fallback layer mediates user traffic with deterministic routing, error handling, and graceful degradation\. This isolates end users from rapid iteration in the agent layer and enables fallback to human\-assisted support when downstream AI components degrade or fail\.
#### Runtime as a controlled mutation boundary\.
Rather than embedding behavior in code, prompts are assembled dynamically, context\-construction policies are swappable, and tool usage is declaratively configured\. Prompt evolution, retrieval tuning, and workflow updates therefore ship through configuration and artifact updates rather than code deploys, allowing behavioral improvements to propagate without redeploying the runtime itself\.
#### Memory as versioned artifacts, not latent state\.
The runtime carries no cross\-session latent state beyond short\-horizon, task\-scoped context required for conversational continuity\. Longer\-lived knowledge is promoted only through explicitly versioned and evaluated artifacts, enabling auditability, reproducibility, controlled rollback, and principled promotion of improvements while preventing uncontrolled memory drift\.
#### Telemetry as an evaluation substrate\.
Execution telemetry serves both monitoring and automated evaluation\. Structured event streams feed nearline quality checks and offline evaluators measuring groundedness, relevance, completeness, and policy compliance, forming the control plane that drives prompt evolution, retrieval tuning, and gated deployment without direct model retraining\.
#### Optimization cadence\.
The outer optimization loop typically runs weekly and can also be triggered by content refreshes or detected regressions\. One end\-to\-end evolution cycle takes hours to days depending on dataset size and fitness\-evaluation budget\. Candidate prompts and retrieval configurations are promoted only after offline regression checks and staged rollout; the execution plane can roll back to the prior versioned artifact if guardrails fail\.
#### Deployment learnings\.
In production, three patterns proved load\-bearing\.*Centralized execution*through configuration, modular prompts, and declarative tool selection—rather than per\-LoB code forks, or separately maintained code paths for individual lines of business—was critical to avoiding behavioral divergence and ensuring improvements generalized across workflows\.*Layered fail\-safes*such as targeted query redirection allowed traffic to route to a known\-safe content pool when a polluted vector index required hours\-long reindexing, cutting recovery from hours to minutes and limiting manual intervention\. Finally,*staged rollout*of new execution patterns in greenfield workflows—new, low\-traffic workflows used as controlled proving grounds—before extension to mature traffic let evolution mechanisms and evaluation signals mature before broader deployment\. Together these practices sustain continuous improvement under rapidly changing models, policies, and knowledge\.
## 4Simulation and Ablation Studies
We evaluate the agent through controlled simulations that replay anonymized historical support interactions and synthetic edge cases across multilingual, product\-diverse, and evolving knowledge settings\. Each simulation acts as a system\-level ablation, comparing configurations with different agent capabilities enabled under identical evaluation criteria\.
### 4\.1RAG Simulation
We compare four response\-generation configurations using an LLM\-based evaluator \(GPT\-4\.1 via Azure OpenAI service\): Vanilla RAG, RAG\-only agents \(ReAct\-style and OpenAI tool invocation444OpenAI tool agent is accessed via Azure OpenAI service\), and the full Support AI Agent\. The production generator is GPT\-4o\-mini while the offline judge is GPT\-4\.1, so they are different models\. We measure overall quality, hallucination rate, and completeness with respect to retrieved support articles; a response is hallucinated if it contains any factual claim not attributable to the retrieved content\. Table[3](https://arxiv.org/html/2608.10224#S4.T3)calibrates the judge against human labels\.
As shown in Table[1](https://arxiv.org/html/2608.10224#S4.T1), vanilla and agentic RAG configurations hallucinate at 4\.8–6\.2%, while the full Support AI Agent reaches<<0\.1% with the highest overall score \(2\.78\) and completeness \(87\.8%\)\. The gain comes from explicit agentic constraints that prioritize synthesis from retrieved authoritative content and suppress reliance on parametric knowledge when grounded sources exist\.
Table 1:RAG Simulation ResultsSetting1Overall Score2Hallucination3Completeness4Vanilla RAG2\.595\.3%78\.7%RAG Only \(ReAct Agent\)2\.564\.8%79\.0%RAG Only \(OpenAI Tool Agent\)2\.486\.2%75\.0%Support AI Agent2\.78<0\.1%87\.8%
- 1The simulation uses an anonymized, human\-validated set of 100 support interactions with multiple inference runs per interaction\.
- 2Overall score is on a 0–3 scale to measure the overall quality of the response\.
- 3A response is labeled as hallucinated if it contains any factual claim that cannot be attributed to the retrieved support articles provided to the model at inference time\.
- 4A response is labeled as complete if it fully addresses all aspects of the user inquiry\.
### 4\.2Auto\-Prompt Simulation
On the routing intent detection dataset, we iteratively optimize LLM\-generated initial prompts across generations using the genetic algorithm pipeline \(Algorithm[1](https://arxiv.org/html/2608.10224#alg1)\)\. Table[2](https://arxiv.org/html/2608.10224#S4.T2)shows that prompt accuracy improves consistently only when both crossover and mutation are enabled—increasing average accuracy from 62\.6% to 68\.0% after two generations, with the best prompt reaching 73\.3%\. Removing either operator slows improvement and saturates early, indicating that prompt*evolution*, not random sampling, is what drives sustained gains\.
Table 2:Automatic Prompt Optimization SimulationGenerationCrossover \+ MutationNo MutationNo Crossover0 \(Baseline\)62\.6 / 66\.762\.6 / 66\.762\.6 / 66\.7166\.7 / 73\.363\.3 / 66\.762\.6 / 66\.7268\.0 / 73\.364\.0 / 66\.763\.3 / 66\.7
- •The simulation uses a curated, human\-validated intent\-detection dataset \(Search Knowledge Base vs Direct to Consultant;N=30N=30\)\. Metrics are average prompt accuracy / best prompt accuracy per generation\.
### 4\.3Evaluator\-Signal Ablation
Beyond the system\-level simulations above, we ablate individual evaluator signals to isolate their contribution, replaying each configuration on an anonymized validation set and comparing against a human\-labeled reference\. As shown in Table[3](https://arxiv.org/html/2608.10224#S4.T3), response groundedness is the dominant driver of evaluator reliability—removing it causes the largest drop in alignment with human labels, while removing completeness barely changes it—and collapsing all signals into a single overall score performs worst, obscuring critical failure modes\. These findings justify retaining groundedness, relevance, and completeness as first\-class, independently reported dimensionsQiao and others \([2025](https://arxiv.org/html/2608.10224#bib.bib23)\); Park and others \([2025](https://arxiv.org/html/2608.10224#bib.bib24)\); Es and others \([2023](https://arxiv.org/html/2608.10224#bib.bib25)\)\.
Table 3:Ablation Study of RAG Auto\-Evaluation DimensionsEvaluation SettingAlignment1w/ Human Labels2Full RAG Evaluation \(Baseline\)87%A1: No Groundedness76% \(\-11\)A2: No Content Relevance82% \(\-5\)A3: No Completeness86% \(\-1\)A4: Overall Score Only67% \(\-20\)
- 1Alignment is measured against human\-labeled ground truth on a randomly sampled set of 100 premium\-tier subscription support chats, with multiple runs per interaction\.
- 2Three trained reviewers, blind to system condition, followed standardized guidelines\. Raw agreement was 92%; disagreements were resolved by majority vote\.
### 4\.4Multilingual Translation Evaluation
This evaluator\-design ablation tests the modular multi\-agent evaluator that produces the fitness signals driving Auto\-Prompt and RAG iteration\. We compare it on the En–Zh slice with COMETRei and others \([2020](https://arxiv.org/html/2608.10224#bib.bib27)\)and a single\-agent LLM judge\. As summarized in Table[4](https://arxiv.org/html/2608.10224#S4.T4), accuracy rises from 49\.7% \(COMET\) to 76\.5% \(single\-agent LLM judge\) to 84\.8% \(modular multi\-agent evaluator\): decomposing translation quality into specialized dimensions captures the domain\-specific, context\-sensitive demands of support interactions that metric\-based scoring misses\.
Table 4:Translation Quality Evaluation Result1Evaluation ParadigmAccuracy \(%\)Model\-based eval \(COMET\)49\.7Pure LLM single\-agent eval76\.5Modular multi\-agent eval84\.8
- 1Evaluation is performed on an anonymized support chat dataset \(N=300\)\.
## 5Online Experiment
We ran a two\-week A/B test on continuous live member and customer support traffic\. Users were randomized once with fixed 50/50 assignment and remained in one arm for the experiment, preventing repeated\-user contamination across conditions\. The control was the original production agent—a handcrafted prompt, fixed retrieval pipeline, and periodic human QA\. The treatment was the integrated self\-evolved workflow, which bundles \(i\) evolved Auto\-Prompt, \(ii\) agent\-invoked RAG, and \(iii\) closed\-loop evaluator\-driven iteration with gated rollout\. The three metrics use separate randomized subpopulations\.
The experiment was planned for four weeks with sequential monitoring and concluded after two weeks, when the effects were stable, power exceeded 99\.9%, and significance remained under alpha\-spending corrections\. We compare each proportion with a two\-sided two\-proportionzz\-test \(equivalently, aχ2\\chi^\{2\}test of independence\) and apply Holm correction across the three primary outcomes\. The user is the inference unit; average conversations per user are approximately 1\.26 for QA and 1\.53 for cancellation\. The corresponding cluster adjustment is modest \(design effect≤1\.5\\leq 1\.5\), and user\-clustered GEE/CR2 standard errors preserve significance for all outcomes; for example, the cancellation statistic changes fromz=10\.0z=10\.0toz=8\.1z=8\.1\. Table[5](https://arxiv.org/html/2608.10224#S5.T5)reports the unclustered point estimates and confidence intervals\.
#### QA self\-serve\.
This is the share of product\-question or technical conversations resolved without human escalation\. It increased from 33\.7% to 42\.7%, an absolute lift of 9\.0 percentage points \(95% CI \[8\.4, 9\.6\];z=27\.6z=27\.6\)\.
#### Cancellation self\-serve\.
This is the share of cancellation\-intent conversations completed end\-to\-end without handoff\. It increased from 61\.9% to 66\.6%, an absolute lift of 4\.8 percentage points \(95% CI \[3\.8, 5\.7\];z=10\.0z=10\.0\)\.
#### Routing accuracy\.
This is the share routed to the correct human queue against the labeled target\. It increased from 38\.2% to 68\.8%, an absolute lift of 30\.6 percentage points \(95% CI \[23\.6, 37\.6\];z=8\.2z=8\.2\)\.
All three outcomes havep≪10−4p\\ll 10^\{\-4\}and remain significant after Holm correction\. We also monitored escalation rate, thumbs\-up/down feedback, latency, customer\-satisfaction score, and moderation incidents; none regressed under treatment\. The online study reports the end\-to\-end system effect of the integrated self\-evolved workflow, while Tables[1](https://arxiv.org/html/2608.10224#S4.T1)–[3](https://arxiv.org/html/2608.10224#S4.T3)isolate the components offline\.
Table 5:Online Experiment ResultsMetricControloriginal productionagentTreatmentintegrated self\-evolvedworkflowAbsolute Lift\(95% CI\)zzQA self\-serve133\.7%42\.7%\+9\.0 pp \[8\.4, 9\.6\]27\.6Cancellation self\-serve261\.9%66\.6%\+4\.8 pp \[3\.8, 5\.7\]10\.0Routing accuracy338\.2%68\.8%\+30\.6 pp \[23\.6, 37\.6\]8\.2
- 1QA: 42,982 / 45,669 conversations and 35,867 / 34,334 users \(control / treatment\)\.
- 2Cancellation: 20,468 / 20,456 conversations and 13,442 / 13,308 users \(control / treatment\)\.
- 3Routing: 356 / 356 decisions \(control / treatment\) on a fixed labeled evaluation set\.
- Two\-sided two\-proportionzz\-tests; allp≪10−4p\\ll 10^\{\-4\}and significant after Holm correction\.
Beyond aggregate gains, these results show that the integrated self\-evolved workflow improved the measured outcomes over the two\-week deployment window, consistent with calls for holistic, production\-oriented evaluationLiang and others \([2023](https://arxiv.org/html/2608.10224#bib.bib26)\); Es and others \([2023](https://arxiv.org/html/2608.10224#bib.bib25)\); Qiao and others \([2025](https://arxiv.org/html/2608.10224#bib.bib23)\)\.
## Limitations
#### Evaluator dependence\.
The closed loop relies on LLM\-as\-judge evaluators \(GPT\-4\.1\) for fitness signals\. Our ablations measure alignment with human labels \(Table[3](https://arxiv.org/html/2608.10224#S4.T3)\); larger samples and cross\-checks with open evaluators would further characterize variance and model\-specific judge sensitivityZheng and others \([2023](https://arxiv.org/html/2608.10224#bib.bib6)\); Dubois and others \([2024](https://arxiv.org/html/2608.10224#bib.bib8)\)\.
#### Cost and latency of evolution\.
Genetic prompt search incurs additional inference cost per generation, and end\-to\-end evolution cycles take hours to days depending on dataset size and fitness budget\. Future work could study tighter adaptation windows for rapidly changing knowledge\.
#### Single\-tenant evaluation\.
The online study covers two weeks on one deployment surface at a single enterprise\. Longer observation windows and deployments in other domains would test durability and transfer to different tool inventories and operating environments\.
#### Online component attribution\.
The online treatment bundles Auto\-Prompt, agent\-invoked RAG, and evaluator\-driven iteration as the integrated self\-evolved workflow\. Factorial deployments could quantify the marginal contribution and interaction of each component\.
#### Retrieval ceiling\.
Response quality is bounded by retrieval coverage\. When the underlying content lake lacks an authoritative document, the agent’s grounding constraints correctly suppress hallucination but cannot synthesize a correct answer; further gains require improvements to retrieval recall and authoritative\-content coverage that are orthogonal to the self\-evolution loop\.
#### Limited multilingual stress test\.
The controlled translation study focuses on English↔\\leftrightarrowChinese \(Section[4\.4](https://arxiv.org/html/2608.10224#S4.SS4)\)\. Systematic evaluation of low\-resource languages and code\-mixed input remains an important extension\.
#### Closed\-source dependencies\.
The production system depends on closed\-source foundation models \(GPT\-4o\-mini, GPT\-4\.1\) and a proprietary search backend\. Reproduction with open\-source equivalents \(e\.g\., Llama 3, BGE retrievers\) is feasible in principle but has not been verified end\-to\-end\.
## Acknowledgments
We thank Artem Grigoryan, Tony Huynh, Zhentao Lin, Chris Korbel, Umang Lahoti and Ajay Vishwanathan for their support and collaboration on the agent application and A/B test\.
#### Use of AI assistance\.
In preparing this manuscript, the authors used Anthropic’s Claude \(via Claude Code\) for prose polishing, LaTeX formatting and table layout, restructuring of section ordering, and drafting assistance on the Limitations section\. All technical claims, experimental design, results, figures, and citations were authored, reviewed, and verified by the human authors, who take full responsibility for the content of the paper\.
## References
- A\. Asaiet al\.\(2024\)Self\-rag: learning to retrieve, generate, and critique through self\-reflection\.InICLR,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- A\. Berntson \(2023\)Microsoft Research\.External Links:[Link](https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/azure-ai-search-outperforming-vector-search-with-hybrid-retrieval-and-reranking/3929167)Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p2.1)\.
- Y\. Duboiset al\.\(2024\)Length\-controlled alpacaeval: a simple way to debias automatic evaluators\.arXiv:2404\.04475\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[Evaluator dependence\.](https://arxiv.org/html/2608.10224#Sx1.SS0.SSS0.Px1.p1.1)\.
- S\. Eset al\.\(2023\)Ragas: automated evaluation of retrieval augmented generation\.arXiv:2309\.15217\.Cited by:[§4\.3](https://arxiv.org/html/2608.10224#S4.SS3.p1.1),[§5](https://arxiv.org/html/2608.10224#S5.SS0.SSS0.Px3.p3.1)\.
- C\. Fernandoet al\.\(2023\)Promptbreeder: self\-referential self\-improvement via prompt evolution\.Note:arXiv:2309\.16797Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- L\. Gaoet al\.\(2023a\)Precise zero\-shot dense retrieval without relevance labels\.InACL,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- Y\. Gaoet al\.\(2023b\)Retrieval\-augmented generation for large language models: a survey\.arXiv:2312\.10997\.Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p2.1)\.
- Q\. Guoet al\.\(2024\)Connecting large language models with evolutionary algorithms yields powerful prompt optimizers\.InICLR,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- K\. Guuet al\.\(2020\)REALM: retrieval\-augmented language model pre\-training\.ICML\.Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- J\. H\. Holland \(1992\)Adaptation in natural and artificial systems\.MIT Press\.Cited by:[§2\.2](https://arxiv.org/html/2608.10224#S2.SS2.p1.1)\.
- V\. Karpukhinet al\.\(2020\)Dense passage retrieval for open\-domain question answering\.InEMNLP,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- O\. Khattabet al\.\(2023\)DSPy: compiling declarative language model calls into self\-improving pipelines\.Note:arXiv:2310\.03714Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.2](https://arxiv.org/html/2608.10224#S2.SS2.p2.1)\.
- S\. Kimet al\.\(2024\)Prometheus 2: an open source language model specialized in evaluating other language models\.InEMNLP,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- P\. Lewiset al\.\(2020a\)MLQA: evaluating cross\-lingual extractive question answering\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,Cited by:[§2\.4](https://arxiv.org/html/2608.10224#S2.SS4.p1.1)\.
- P\. Lewiset al\.\(2020b\)Retrieval\-augmented generation for knowledge\-intensive nlp tasks\.InNeurIPS,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- P\. Lianget al\.\(2023\)Holistic evaluation of language models\.Transactions on Machine Learning Research \(TMLR\)\.Note:arXiv:2211\.09110Cited by:[§5](https://arxiv.org/html/2608.10224#S5.SS0.SSS0.Px3.p3.1)\.
- J\. Linet al\.\(2021\)Pretrained transformers for text ranking: bert and beyond\.Synthesis Lectures on Human Language Technologies\.Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p2.1)\.
- X\. V\. Linet al\.\(2022\)Few\-shot learning with multilingual generative language models\.InProceedings of the 2022 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 9019–9052\.Cited by:[§2\.4](https://arxiv.org/html/2608.10224#S2.SS4.p1.1)\.
- Y\. Liuet al\.\(2023\)G\-eval: nlg evaluation using gpt\-4 with better human alignment\.InEMNLP,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- S\. Longpreet al\.\(2021\)MKQA: a linguistically diverse benchmark for multilingual open domain question answering\.Transactions of the Association for Computational Linguistics9,pp\. 1389–1406\.External Links:[Link](https://aclanthology.org/2021.tacl-1.82)Cited by:[§2\.4](https://arxiv.org/html/2608.10224#S2.SS4.p1.1)\.
- R\. Nogueira and K\. Cho \(2019\)Passage re\-ranking with bert\.arXiv:1901\.04085\.Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p2.1)\.
- O\. Ovadiaet al\.\(2024\)Fine\-tuning or retrieval? comparing knowledge injection in llms\.arXiv:2312\.05934\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p4.1)\.
- C\. Packeret al\.\(2023\)MemGPT: towards llms as operating systems\.arXiv:2310\.08560\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p4.1)\.
- C\. Parket al\.\(2025\)MIRAGE: a metric\-intensive benchmark for retrieval\-augmented generation evaluation\.Findings of NAACL\.Note:arXiv:2504\.17137Cited by:[§4\.3](https://arxiv.org/html/2608.10224#S4.SS3.p1.1)\.
- O\. Presset al\.\(2023\)Measuring and narrowing the compositionality gap in language models\.InFindings of EMNLP,Note:arXiv:2210\.03350Cited by:[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- S\. Qiaoet al\.\(2025\)Benchmarking agentic workflow generation\.InICLR,Note:arXiv:2410\.07869Cited by:[§4\.3](https://arxiv.org/html/2608.10224#S4.SS3.p1.1),[§5](https://arxiv.org/html/2608.10224#S5.SS0.SSS0.Px3.p3.1)\.
- R\. Reiet al\.\(2020\)COMET: a neural framework for mt evaluation\.arXiv preprint arXiv:2009\.09025\.Cited by:[§4\.4](https://arxiv.org/html/2608.10224#S4.SS4.p1.1)\.
- T\. Schicket al\.\(2023\)Toolformer: language models can teach themselves to use tools\.NeurIPS\.Cited by:[§2\.1](https://arxiv.org/html/2608.10224#S2.SS1.p1.5),[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- N\. Shinnet al\.\(2023\)Reflexion: language agents with verbal reinforcement learning\.arXiv:2303\.11366\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p4.1),[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- H\. Soudaniet al\.\(2024\)Fine tuning vs\. retrieval augmented generation for less popular knowledge\.arXiv:2403\.01432\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p4.1)\.
- D\. Whitley \(1994\)A genetic algorithm tutorial\.Statistics and Computing\.Cited by:[§2\.2](https://arxiv.org/html/2608.10224#S2.SS2.p1.1)\.
- Q\. Wuet al\.\(2023\)AutoGen: enabling next\-gen llm applications via multi\-agent conversation\.arXiv:2308\.08155\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p4.1)\.
- S\. Yanet al\.\(2024\)Corrective retrieval augmented generation\.arXiv:2401\.15884\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1)\.
- C\. Yanget al\.\(2024\)Large language models as optimizers\.InICLR,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.2](https://arxiv.org/html/2608.10224#S2.SS2.p2.1)\.
- S\. Yaoet al\.\(2023\)ReAct: synergizing reasoning and acting in language models\.InICLR,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.1](https://arxiv.org/html/2608.10224#S2.SS1.p1.5),[§2\.3](https://arxiv.org/html/2608.10224#S2.SS3.p1.1)\.
- L\. Zhenget al\.\(2023\)Judging llm\-as\-a\-judge with mt\-bench and chatbot arena\.arXiv:2306\.05685\.Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.1](https://arxiv.org/html/2608.10224#S2.SS1.p1.5),[§2\.4](https://arxiv.org/html/2608.10224#S2.SS4.p2.1),[Evaluator dependence\.](https://arxiv.org/html/2608.10224#Sx1.SS0.SSS0.Px1.p1.1)\.
- Y\. Zhouet al\.\(2023\)Large language models are human\-level prompt engineers\.InICLR,Cited by:[§1](https://arxiv.org/html/2608.10224#S1.p2.1),[§2\.2](https://arxiv.org/html/2608.10224#S2.SS2.p2.1)\.Similar Articles
Automating customer support agents
MavenAGI launches an automated customer support platform powered by GPT-4 that processes customer data, integrates with enterprise systems, and uses self-evaluation to provide human-quality support responses. The system has been validated on over 1M customer interactions across Salesforce, Zendesk, and other platforms.
LinkedIn's behavioral scoring system and what it means for anyone building AI automations on the platform
LinkedIn has implemented a dynamic behavioral scoring system that replaces the fixed connection request cap, using factors like acceptance rate and SSI to determine account trust and volume limits, impacting AI automation tools like Expandi.
Turning local agents into self-optimizing agents
A self-optimizing agentic pipeline that improves benchmark performance from ~30% to ~90% on TerminalBench, and can be extended to everyday chats by logging interactions, reflecting with a local model, and injecting lessons into future system prompts.
Evaluated a RAG chatbot and the most expensive model was the worst performer. Notes on what actually moved the needle.
A detailed evaluation of a RAG customer support chatbot reveals that retrieval issues often masquerade as LLM problems, heuristic evaluators are misleading, deduplication improves quality, stricter grounding trades helpfulness for accuracy, and model sweeping can dramatically reduce cost while improving performance.
Improving support with every interaction at OpenAI
OpenAI shares how it reimagined its support operations using AI to handle millions of requests annually by creating an operating model where every interaction improves the next. The approach combines chat/email/phone surfaces, continuously improving knowledge bases, and human-AI evaluation loops that empower support reps to act as builders and inform product improvements.