Stage 2: Chatbot
After the integrations were ready, we built a custom Intercom-like chatbot application that allowed clients to run conversations automatically without anyone engaged. It operates independently from the website and loads asynchronously to not slow down the page.
As we knew that the app would be widely used (it needed to handle thousands of users at once), we decided to rely on AWS and JavaScript with unstructured (NoSQL) MongoDB and Redis databases. It was one of the reasons the application could smoothly integrate with 3rd party services, run background processes, and provide proper issues and communication management in a way that does not overload the API.
We had to ensure that the application was both lightweight and fast, while also enhancing the performance and animation of the chatbot. That’s why we decided to use many custom elements without using external libraries or any 3rd party solutions. For the same reasons, we chose React.js as a well-established and reliable framework.
We were responsible for building workflows from scratch that were called playbooks. Playbooks consist of predefined sets of rules or guidelines that dictate how the chatbot should handle conversations with users. They allowed us to manage the whole conversation logic, determining when to transition from automated responses to involving human operators to take the discussion over and manage agents’ availability. Playbooks were essential in managing the conversation flow and ensuring a seamless user experience.