LAUNCHMongoDB 8.3 is built for the sub-100ms retrieval & zero downtime AI demands. Read blog >
AI DATAStop fighting your data layer. Get the memory & retrieval agents need to scale. Read blog >

How Cognigy built a leading conversational AI solution with MongoDB

 Image of a man and woman working in the office.
industry_enterprise

Industry

Corporate Services

atlas_product_family

Product

MongoDB GridFS

atlas_for_edge

Use Case

AI

Machine Learning

general_events_default

Customer since

2016

INTRODUCTION

Cognigy delivers AI solutions that empower businesses to provide exceptional customer service that is instant, personalized, in any language, and on any channel. Its main product, Cognigy.AI, allows companies to create AI Agents, improving experiences through smart automation and natural language processing. This powerful solution is at the core of Cognigy's offerings, making it easy for businesses to develop and deploy intelligent voice and chatbots.

Cognigy also makes it simple to integrate with third-party platforms like Facebook Messenger, Line, and WhatsApp. This broadens the reach of customer service teams and helps businesses connect with their audience on various channels they use.

 

THEIR CHALLENGE

Making it simple

Developing a conversational AI system poses challenges for any company. These solutions must effectively interact with diverse systems like CRMs, ERPs, and ticketing systems. Furthermore, considering the array of communication channels a brand might target, this complexity rapidly intensifies.

Ensuring a tailored experience for each user across every channel and at the right moment might appear to be an overwhelming task. In addition to this, scaling the platform to accommodate a growing user base while maintaining minimal latency is a substantial undertaking.

This is where Cognigy introduces the concept of a centralized platform. This platform allows you to construct and deploy agents through an intuitive low-code user interface. This component empowers business users to design the logic of virtual agents using various key features, primarily Flows, Playbooks, Lexicons, and Intents.

 

OUR SOLUTION

The Execution

Cognigy took a deliberate approach when constructing the platform, employing a composable architecture model, as depicted in Figure 1 below. To achieve this, they designed over 30 specialized microservices, which they adeptly orchestrated through Kubernetes. These microservices were strategically fortified with MongoDB's replica-sets, spanning across three availability zones, a move aimed at bolstering reliability and fault tolerance. In addition, sophisticated indexing and caching strategies were integrated to enhance query performance and expedite response times.

 

Cognigy.AI architecture illustration.
Figure 1: Cognigy.AI v4.55.0 architecture

 

The choice of MongoDB as Cognigy's modern, multi-cloud data platform was a result of careful consideration, influenced by several key factors:

The selection of MongoDB was underscored by its user-friendly nature and rapid iteration capabilities, addressing significant concerns when compared to other storage backends.

 

THE OUTCOME

MongoDB empowered Cognigy.AI to effortlessly handle an expanding array of user interactions, spanning diverse data types such as text, all while maintaining peak performance levels. This synergy empowered businesses to seamlessly scale their conversational agents, swiftly adapting to shifting customer requirements. Moreover, MongoDB's adaptable data model facilitated a continuous evolution of the AI model, ensuring the platform remains agile and responsive.

 

Cognigy’s replica-sets in production illustration.
Figure 2: Cognigy’s replica-sets in production

 

Figure 2 above showcases the real-world impact of MongoDB's capabilities. With a MongoDB production replica-set, Cognigy is able to handle hundreds of queries per second, totaling around 1000 database operations per second during peak-load scenarios. This performance is achieved while managing over 1 TB of data stored on larger systems.

In conclusion, MongoDB has been a driving force behind Cognigy's unprecedented flexibility and scalability, and has been instrumental in bringing groundbreaking products like Cognigy.AI to life. Learn more about how MongoDB can help build AI-enriched applications.

Cognigy
“MongoDB has been instrumental in bringing Cognigy.AI - our contact center AI platform for customer service transformation - to life, enabling us to handle hundreds of queries per second. With MongoDB’s modern, multi-cloud data platform, we can effortlessly manage an expanding array of user interactions, spanning diverse data types such as text, all while maintaining peak performance levels.”
Benjamin Mayr
VP of Engineering, Co-Founder, Cognigy

Take the next step

Get access to all the tools and resources you need to start building something great when you register today.
Get StartedTalk to an expert
Illustration of a database.