Detect business insights from customer support conversations using AI
Last Updated on September 25, 2022 by Editorial Team
Author(s): Shubham Saboo
Originally published on Towards AI the World’s Leading AI and Technology News and Media Company. If you are building an AI-related product or service, we invite you to consider becoming an AI sponsor. At Towards AI, we help scale AI and technology startups. Let us help you unleash your technology to the masses.
Learn how to analyze customer conversations with just 15 lines of PythonΒ code!
Background
A positive customer experience can make the difference between losing and retaining customers. Businesses need to constantly improve their products and services and identify trends and issues at an early stage to keep their customers satisfied!
It has become more crucial than ever to analyze customer support data and derive valuable insights to ensure that necessary modifications and enhancements are undertaken early on the basis of the customer
preferences, and the business perform effectively to support theΒ same.
But thatβs the biggest challenge. Unfortunately, most businesses struggle to capture and make sense of the data derived here. While it would be cumbersome to listen to all the calls or skim through all the emails to figure out the insights, even sample picking wouldnβt ensure that the problem areas are correctly identified.
How to make sense of this huge volume ofΒ data?
Hereβs where One AI studio changes theΒ game!
One AI is a language AI service where various pre-trained NLP models are packaged and made available through API, enabling language comprehension in context and transforming texts from any source into structured data. One AI studio is capable of performing a wide array of tasks including but not limitedΒ to:
- Transcribing audioΒ files
- Generating Highlights of theΒ input
- Topic extraction
- Emotions as well as Sentiments detection
- Identification ofΒ Keywords
- Identifying ActionΒ Items
- Clustering the data basis skills as parameters like Keywords or Sentiments, etc.
Letβs look at how you can build a streamlit application to analyze customer support data using One AI and Python. All you need to have is the following:
- Basic knowledge ofΒ Python
- Streamlit
- One AIΒ API
Application Walkthrough
We will use the Streamlit framework to build a beautiful frontend in python itself. Here is a step-by-step walkthrough to building a Python application for call center analytics:
- Import the necessary libraries and get the API key from theΒ user.
2. Get the conversation or email trail as input from the user and create functionality to select between different intelligence features.
3. Format the input data to be processed by the language model by converting it intoΒ JSON.
4. Set the headers, API endpoint address, and the payload to be sent to the API. Use the request library to hit the API endpoint and get the output returned in JSONΒ format.
5. Process the JSON file and display the output to the endΒ users!
π Here is the GitHub repository to get the sourceΒ code:
This is what our final application looks likeΒ π
AI-powered Analytics in ActionΒ πΉ
Now letβs look at how we can use the above application in real-world scenarios:
Step 1: First things first, you have to put your API Key for authentication. Copy your One AI API Key and paste it onto theΒ sidebar.
Paste the API key in the application sidebar.
Step 2: Letβs get the ball rolling. Enter the transcript of an audio call in the input box and select an intelligence feature.
Sample conversation
Ensure that the input is given in the belowΒ format.
Customer:
Hi, I am Dragos from Leverkin Management. I am having a lot of trouble with using your product, it is very complicated. I require a training session.
Agent:
Hi, Iβm sorry to hear that. I will surely schedule a session for you. Is Tuesday 5 p.m. a good time?
Customer:
Yes, that will work thanks.
- βSummaryβ as an intelligence feature:
2. βNamed Entity Recognitionβ as an intelligence feature:
3. βEmotion Detectionβ as an intelligence feature:
4. βSentiments Analysisβ as an intelligence feature:
5. βTopics Detectionβ as an intelligence feature:
Try it out yourself π Streamlit Application
Conclusion
AI will revolutionize the way customer center data is analyzed. It would play a pivotal role in how useful insights can be derived from customer experience efficiently and with greater accuracy. By identifying customer needs and preferences, call center agents will be able to provide a more personalized and satisfying customer service experience.
If you would like to learn more or want me to write more on this subject, feel free to reachΒ out.
My social links: LinkedIn| Twitter |Β Github
If you liked this post or found it helpful, please take a minute to press the clap button, it increases the post's visibility for other mediumΒ users.
Detect business insights from customer support conversations using AI was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Join thousands of data leaders on the AI newsletter. Itβs free, we donβt spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI