Tired of ads? Enjoy an ad-free experience by signing up.
Pradeep Menon · · 5 min read

A primer on logical architectures for chatbots

According to a McKinsey report (download here), artificial intelligence (AI) is poised for digital disruption, and companies need to start preparing for it now. In 2016, companies invested US$26 billion to US$36 billion in AI technologies.

Virtual agents (aka chatbots) are an important component of AI technologies. Among our customers, we are seeing more and more interest to integrate chatbots into their business processes. However, chatbots are not silver-bullet solutions, and Jarvis is still just a far-fetched mythical personification.

In this article, I will introduce one of the many architectural patterns for developing a chatbot based on my experience in the field. I will start by explaining the chatbot context and then put across a logical architecture pattern that can be used for developing them.

Let us first discuss the taxonomies of models that are prevalent in conversation as a platform (CAAP).

Taxonomy of models

Virtual agents generally have two taxonomy models:

  1. Retrieval-based models use a repository of predefined responses and some kind of heuristic to pick an appropriate response based on the input and context. The heuristic could be as simple as a rule-based expression match or as complex as an ensemble of machine learning classifiers. These systems don’t generate any new text; they just pick a response from a fixed set.
  2. Generative models don’t rely on predefined responses. They generate new responses from scratch. These models are typically based on machine translation techniques. But instead of translating from one language to another, we “translate” from an input to an output (response).

Chatbot conversational framework

CAAP relies on specific conversational contexts. These contexts can be classified as follows:

  • Open domain: Here, the context of the conversation is not defined. There is no well-defined goal or intention. An example of this can be a conversation with Google Home. You can ask it whatever you want and it will try to find the answer and provide you a response.
  • Closed domain: Most of the chatbot applications fall into this criteria. Each chatbot has a specific context and specializes in answering questions for that domain. Technical customer support or shopping assistants are examples of closed domain problems.

Logical architecture

Now that we have a context, let’s discuss the logical architecture. The following are the key components:

NLP-bot builder interaction

Conclusion

Stay ahead in Asia’s tech landscape

You've reached your 2 free content limit for the month. Sign up for free to read the full story.

🏄 For casual readers / 👶 Free

Basic

US$0

Free forever

Get instant access to this article and more every month

0 premium content

Unlimited news briefs

5

5 articles

Ad-free reading experience

Just US$0 per day

⌛Sign up in 20s. No payment details needed.

📖 For learners / 👍 Starter

Lite

US$4.92/month

Billed annually at US$59/year

Get instant access to this article and more every month

4

4 premium content

Unlimited news briefs & articles

Ad-free reading experience

Just US$0.17 per day

Cancel anytime

Our subscriber community includes professionals from these companies:

Stay updated on the go with our mobile app.

Get latest insights with smoother, more personalized experience through TIA mobile app.

Community Writer

Pradeep Menon

Pradeep is an experienced Big Data and Data Science professional with 15+ years of experience. Pradeep works as a Cloud Solution Architect (CSA)- Advanced Analytics and AI with Microsoft.