← All case studies
Retail & E-commerce/Custom AI chatbot

Resolving 72% of Support Tickets with a Custom AI Chatbot

Our team built a custom AI chatbot for a fast-growing sports equipment retailer, which now resolves 72% of the incoming support tickets on its own.

Tickets resolved72%
share72% of tickets
Cost per ticket60% lower
beforebaseline
after40% of baseline
Time to answer24 h → 2.5 s

Overview

For an online retailer, a quick answer to a customer’s question often decides whether the customer completes the purchase or leaves the website. However, as the business grows, the number of questions grows with it, and a small support team cannot keep up with them. Also, most of these questions are repetitive, like whether a product is in stock, which size to pick, or where an order is.

One of our clients, a fast-growing sports equipment retailer with a strong online presence, was facing this problem. Let’s see how our team helped the client automate a large part of its customer support with a custom AI chatbot.

Challenges

The client sells high-quality equipment for outdoor and fitness enthusiasts, and most of its sales come through its online store. Its support team was small, and it was answering every customer query by hand, from the pre-sales questions about products to the questions about the status of an order.

Here’s the list of problems the client was facing:

  • Overloaded support team: The team spent most of its time on the same pre-sales and order status questions, again and again, and had little time left for the complex cases.
  • Slow responses: Customers often had to wait more than 24 hours for an answer, which is too long for someone who is about to place an order.
  • Lost sales: The slow responses were adding to a cart abandonment rate of 15%, as customers left the website without buying when they did not get an answer in time.
  • Limits of scripted bots: A simple scripted chatbot could not help, because the customers’ questions needed an understanding of the context, the products and the stock levels. The client also needed accurate answers, without the chatbot making up details about the products or the orders.

So, the client reached out to the DivIniSoft team for a custom AI chatbot on its website, which could answer the customers’ questions on its own, bring down the response times and improve customer satisfaction.

Two support agents at a desk under a pile of chat bubbles asking about shoe sizes, stock and deliveries, beside a clock and an online shopping cart with items falling out of it.
Before the chatbot, a small support team answered every customer question by hand, and customers often waited more than 24 hours.

Our Strategy

After understanding the client’s support process and the questions that the customers asked most often, our team decided to build a custom chatbot instead of using an off-the-shelf one. A custom chatbot could be shaped around the client’s brand voice, product catalog and customer service rules, and it could work with the client’s existing systems.

The chatbot was built on Llama, a large language model (LLM) from Meta that is openly available. A large language model is an AI model that has been trained on a very large amount of text, so it can understand a question written in everyday language and write an answer in the same way. To keep the answers accurate, the chatbot was connected to the retailer’s own product, inventory and order data, so it answers from this data and not from the model’s general knowledge.

The project was delivered by a dedicated team that worked as a part of the client’s own team, and a senior Python developer from our team led the development.

Our Solution

Here’s how we built the chatbot and rolled it out for the client.

  1. 01

    Requirements Gathering

    We started with detailed discussions with the client’s team, to understand their needs, the way their customers interact with them, and what the chatbot should be able to do. We also went through the questions that customers asked most often, so the chatbot could be designed around them.

  2. 02

    Custom Chatbot Development

    Our team developed the chatbot in Python, using machine learning libraries, and its responses were shaped around the client’s brand voice, product catalog and customer service requirements. The chat window on the website was built in React, so that it fits into the client’s online store.

  3. 03

    Backend with Flask and Llama

    The backend of the chatbot was built with the Flask framework, which kept it scalable and compatible with the client’s existing systems. The Llama model was set up behind this backend to understand each customer’s question and write the answer, and PostgreSQL was used to store the data that the chatbot works with.

  4. 04

    Testing and Optimization

    The chatbot was tested thoroughly to check its functionality, accuracy and performance. Our QA team also set up an automated evaluation pipeline to measure how accurate its product recommendations were. Then, the chatbot went through beta testing, and the feedback from the beta testers was used to fine-tune its responses before the full launch.

  5. 05

    Deployment and Training

    Finally, the chatbot was deployed on the client’s website. Our team also trained the client’s customer service team on how to monitor the chatbot and work with it, so that the team could focus on the cases that need a person.

A chat window on an online store, connected to a backend server and an AI model that draws on product, inventory and order databases. A fast answer goes back to the chat, and a dashed line passes some cases to a support agent.
The chatbot now answers customers in seconds from the retailer’s product, inventory and order data, and the support team takes the cases that need a person.

Business Outcomes

  • The chatbot now resolves 72% of the incoming support tickets on its own, so the support team can focus on the complex cases and disputes.
  • The average time to answer a customer came down from 24 hours to 2.5 seconds, and this went along with a 12% increase in checkout conversions.
  • The cost per ticket was reduced by 60% within the first quarter after the launch.
  • The product recommendations reached a semantic accuracy score of 96%, as measured by our QA team’s automated evaluation pipeline.

Tech Stack

PythonFlaskLlamaReactPostgreSQL

Conclusion

With a custom AI chatbot built on Flask and the Llama model, our team helped the client answer its customers within seconds, at any time of the day, while the support team now spends its time on the cases that really need a person. The faster answers also helped the client’s sales, as more customers completed their orders.

If your support team spends most of its time on the same questions, our experts can help you find out which of them an AI chatbot can take over, and build one around your products and your data.

Want outcomes like this?