App: https://customersupportintelligence.streamlit.app/
Customer support has always been a challenging yet crucial aspect of any business—it’s what makes or breaks customer trust. As companies scale, the volume of customer interactions increases exponentially, making efficient customer service a key differentiator.
The motivation behind this project is to explore how businesses can provide the best and most efficient customer service at scale. When the number of customers grows, so does the complexity of handling their inquiries and issues. Effective customer service can make or break a company’s reputation and long-term success.
In this project, we analyze customer support interactions by examining tweets from different customers, measuring response times, and evaluating how some of the top companies handle customer service. Our goal is to understand how customer support efficiency impacts business outcomes and identify ways AI can enhance the support experience.
DataSet
import kagglehub
# Download latest version
path = kagglehub.dataset_download("thoughtvector/customer-support-on-twitter")
print("Path to dataset files:", path)
This document presents two sets of data: one for companies with faster response times and one for companies with slower response times.
author_id | response_count | avg_response_time (mins) | median_response_time (mins) |
---|---|---|---|
VerizonSupport | 17805 | 7.74 | 3.30 |
LondonMidland | 6515 | 8.67 | 4.62 |
nationalrailenq | 4135 | 9.98 | 5.43 |
AlaskaAir | 7414 | 10.57 | 3.50 |
TMobileHelp | 34229 | 12.06 | 2.75 |
VirginAmerica | 2802 | 13.27 | 3.62 |
AmericanAir | 36531 | 20.27 | 10.73 |
SW_Help | 11775 | 20.88 | 6.57 |
PearsonSupport | 824 | 22.96 | 9.40 |
mediatemplehelp | 302 | 26.49 | 7.98 |
author_id | response_count | avg_response_time (mins) | median_response_time (mins) |
---|---|---|---|
AWSSupport | 1034 | 1514.41 | 151.28 |
AskRobinhood | 430 | 1867.25 | 785.77 |
DunkinDonuts | 1278 | 1946.27 | 1331.42 |
DropboxSupport | 5940 | 2036.13 | 1387.43 |
ArbysCares | 1904 | 2266.14 | 1057.63 |
ATVIAssist | 17518 | 2599.39 | 362.11 |
airtel_care | 9866 | 3390.29 | 693.34 |
askvisa | 709 | 3397.09 | 2983.85 |
TfL | 2218 | 3552.91 | 37.80 |
SCsupport | 1250 | 4465.22 | 3973.38 |
author_id | response_count | avg_response_time (mins) | median_response_time (mins) |
---|---|---|---|
AmazonHelp | 168823 | 40.90 | 11.47 |
AppleSupport | 106648 | 147.36 | 70.97 |
Uber_Support | 56193 | 95.57 | 8.87 |
SpotifyCares | 43206 | 186.85 | 43.95 |
Delta | 42149 | 182.52 | 10.18 |
Tesco | 38470 | 239.80 | 96.71 |
AmericanAir | 36531 | 20.27 | 10.73 |
TMobileHelp | 34229 | 12.06 | 2.75 |
comcastcares | 32975 | 192.75 | 29.28 |
British_Airways | 29291 | 253.15 | 180.50 |
author_id | tweet_count |
---|---|
AmazonHelp | 169,840 |
AppleSupport | 106,860 |
Uber_Support | 56,270 |
SpotifyCares | 43,265 |
Delta | 42,253 |
Tesco | 38,573 |
AmericanAir | 36,764 |
TMobileHelp | 34,317 |
comcastcares | 33,031 |
British_Airways | 29,361 |
author_id | tweet_count |
---|---|
115911 | 1,286 |
120576 | 1,010 |
115913 | 563 |
116230 | 454 |
169172 | 448 |
117627 | 406 |
115888 | 332 |
116136 | 295 |
116421 | 276 |
115722 | 252 |
Summary of Insights from Scatter Plots & Customer Support Analysis
Response Volume vs. Response Time • AmazonHelp and AppleSupport efficiently handle high response volumes while maintaining low response times. • ATVIAssist, MicrosoftHelps, AdobeCare, and AskCiti struggle with longer response times despite lower interaction volumes, suggesting inefficiencies.
Most Active Companies & Consumers • AmazonHelp, AppleSupport, and Uber_Support dominate in customer engagement, leveraging social media for proactive support. • A few individual consumers show extremely high activity, possibly representing frequent complainers, influencers, or high-profile customers.
Tweet Activity Distribution (Companies vs. Consumers) • Companies generate significantly higher tweet volumes than consumers, indicating proactive engagement in social media support. • Outliers like AmazonHelp and AppleSupport highlight an extensive, structured approach to customer support.
Inferences • High-volume companies (Amazon, Apple, Uber) effectively scale social media support with well-optimized strategies. • Companies with lower volumes but high response times need process improvements to enhance responsiveness. • A small group of highly active consumers may present targeted engagement opportunities.
Recommendations
✅ Optimize Customer Support Operations: Low-performing companies should analyze high-efficiency models (Amazon, Apple) to implement best practices. ✅ Engage Highly Active Customers: Convert frequent interactions into positive brand advocacy through proactive engagement. ✅ Leverage AI & Automation: Implement automated triaging, chatbots, and sentiment analysis to streamline responses and improve efficiency.
This project utilizes the Kaggle Customer Support Dataset, containing over 3 million customer support tweets from major brands.
git clone https://github.com/your-repo/customer-support-intelligence.git
cd customer-support-intelligence
pip install -r requirements.txt
.env
file with your Gemini API key:
echo "GEMINI_API_KEY=your_api_key_here" > .env
streamlit run app.py
The system uses a batch processing approach with rate limiting to generate embeddings from the Gemini API:
Customer issues are clustered using:
This project is licensed under the MIT License - see the LICENSE file for details.