Abstract
Customer services are critical to all companies, as they may directly connect to the brand reputation. Due to a great number of customers, e-commerce companies often employ multiple communication channels to answer customers' questions, for example, chatbot and hotline. On one hand, each channel has limited capacity to respond to customers' requests, on the other hand, customers have different preferences over these channels. The current production systems are mainly built based on business rules, which merely considers tradeoffs between resources and customers' satisfaction. To achieve the optimal tradeoff between resources and customers' satisfaction, we propose a new framework based on deep reinforcement learning, which directly takes both resources and user model into account. In addition to the framework, we also propose a new deep-reinforcement-learning based routing method-double dueling deep Q-learning with prioritized experience replay (PER-DoDDQN). We evaluate our proposed framework and method using both synthetic and a real customer service log data from a large financial technology company. We show that our proposed deep-reinforcement-learning based framework is superior to the existing production system. Moreover, we also show our proposed PER-DoDDQN is better than all other deep Q-learning variants in practice, which provides a more optimal routing plan. These observations suggest that our proposed method can seek the trade-off where both channel resources and customers' satisfaction are optimal.
Introduction
In the digital economy, customer service is a vital touchpoint for brand reputation. E-commerce and fintech giants face a massive volume of inquiries, typically managed through a mix of automated channels (chatbots, self-service apps) and human-operated hotlines. While hotlines are often preferred by customers, they have strictly limited capacity, leading to long wait times and congestion during peak periods.
Traditional routing systems rely on static business rules—for instance, suggesting a chatbot only when the hotline queue exceeds a certain threshold. However, these rules often fail to account for individual user preferences or future traffic trends. A customer who refuses to use a chatbot will simply wait for the hotline, consuming resources without a successful "drainage" to automated channels.
The Proposed Framework
To address these inefficiencies, we propose a personalized routing framework powered by Deep Reinforcement Learning (DRL). The system aims to find the optimal balance between resource utilization and customer satisfaction by predicting both user behavior and system load. The framework consists of three core modules:
- User Profiling Module: This module utilizes a neural network to estimate the probability that a specific user—characterized by attributes such as age, gender, and account assets—will accept a recommendation to switch from the hotline to an automated channel.
- Flow Forecasting Module: Effective routing requires looking ahead. We employ a time-series forecasting model to predict incoming request volumes. In our experiments, XGBoost proved particularly effective for short-term traffic prediction, outperforming more complex LSTM architectures.
- RL Agent (PER-DoDDQN): The central decision-maker is a DRL agent that determines the best routing action for each incoming request.
Algorithmic Innovation: PER-DoDDQN
The core of our approach is a novel DRL variant: Double Dueling Deep Q-Learning with Prioritized Experience Replay (PER-DoDDQN). This method combines three state-of-the-art enhancements to standard Q-learning:
- Double DQN: Mitigates the overestimation bias common in standard Q-learning by decoupling action selection from evaluation.
- Dueling DQN: Separates the estimation of state value and action advantage, allowing the agent to learn which states (e.g., high-congestion periods) are inherently problematic regardless of the action taken.
- Prioritized Experience Replay (PER): Improves learning efficiency by sampling "surprising" or difficult transitions more frequently from the replay buffer.
Experimental Evaluation
We evaluated the framework using a real-world dataset comprising 4.8 million customer requests from a major financial technology company, as well as a synthetic dataset for robustness testing.
Key Results
- Routing Efficiency: The PER-DoDDQN model successfully routed 39% of customers to non-hotline channels, nearly doubling the performance of the existing rule-based production system (20%).
- Congestion Mitigation: Our method achieved significantly lower Congestion Rates (CCR) and Average Congestion Levels (AC) compared to traditional machine learning baselines like SVM or KNN.
- Predictive Advantage: Unlike supervised learning models that only consider the immediate state, the RL agent accounts for long-term consequences. By incorporating flow forecasting, the agent can proactively route users before a congestion spike occurs.
Conclusion
Our research demonstrates that personalized, predictive routing can significantly enhance the efficiency of multi-channel customer service systems. By modeling individual user preferences and forecasting system-wide traffic, the PER-DoDDQN framework achieves a superior tradeoff between resource management and customer satisfaction. Future work will explore incorporating real-time request intent to further refine the routing logic.
Summary updated