Big Data | Dialogflow | Google Cloud

The AI Behind Google Dialogflow – How It Differs From Other Conversational AI

Gopi Mishra
Gopi Mishra

Artificial intelligence is a broad term that encompasses numerous distinct technologies, albeit all having the same fundamental goal – to let machines do the work for humans. This is true for conversational AI as well, a sub-field of AI that teaches computers natural human speech but there’s more to conversational AI than just humans taking the most efficient route.

Conversational AI exists because of a major paradigm shift in consumer preferences and expectations. Recent studies show that there is a major shift towards online users valuing immediate responses more and more. This trend of instant gratification can be seen in almost every aspect of internet browsing, from media consumption and social media to online shopping and even online dating. This also means that many internet users would, in fact, talk to computer conversational agents rather than humans – because the former is faster.

It’s hard to say what this means for human evolution but the two main takeaways for businesses are:

  • Businesses can reduce their dependence on human customer agents for various communication functions
  • The lower cost and higher scalability of conversational AI make it more feasible for small-medium enterprises (SMEs) than ever.

This shift also means that an increasing number of businesses are looking into integrating conversational technology into their business and the good news is that there are quite a few platforms that can be used to build AI conversational agents. One of the most popular and feature-rich conversational AI platforms available today is Google Dialogflow. In this article, we’ll explore the things that make it so popular and objectively better than some of the other conversational AI platforms on the market.

Understanding Conversational AI

Before we dive into Dialogflow, it’s important to understand the technology behind it. In essence, conversational AI is a type of artificial intelligence that you can have a conversation with and like all other types of AI, conversational AI uses an original data set to find the right responses – the bigger the data set, the more diverse its answers are. The most common implementation of conversational AI, is, of course, conversational agents (also known as conversational agents).

Conversational agents’ adoption rates have gone through the roof recently as a lot of businesses are using them to:

  • provide immediate responses to customer queries
  • cut back on HR costs
  • provide 24/7 customer service on a budget

However, most of the conversational agents in the market today are very basic. They have a simple data set with some responses that can be triggered by certain keywords. Yes, they’re not exactly C-3PO or HAL 9000 but that’s mostly due to budget constraints that most businesses have to work with.

Conversational AI hasn’t been pushed anywhere near its limits and most businesses don’t even deploy modern technologies such as machine learning and natural language processing (NLP) that make conversational tech far more capable. Conventionally, such technologies have been limited to conversational agents like Microsoft Cortana, Apple Siri, IBM Watson, and Amazon Alexa.

However, that is changing. Technologies that once powered only the most expensive and complicated products can now be found in basic home appliances. This is known as the proliferation of technology and is what’s happening to conversational AI today. Platforms like Dialogflow, Wit.ai, Rasa, and IBM Watson are bringing state-of-the-art AI to consumer-level conversational agents for very affordable costs – ushering in a new era of artificial intelligence.

What is Dialogflow?

Google has been researching and undertaking natural language projects for quite some time now, with teams dedicated to Machine Intelligence, Natural Language Processing (NLP), and Machine Translation. In 2016, Google bought Dialogflow (originally known as API.AI), a company specializing in conversational user interface. Google already had all of the functions it needed to create powerful conversational agents but acquiring Dialogflow meant that they had the form now too.

So what is Dialogflow today?

Dialogflow is part of Google’s vart ecosystem of cloud services. It is a fully-hosted on Google’s secure cloud which means you don’t need to host it yourself. On the surface, Diagflow looks like any other Google service with its simplistic but functional UI. It has a console to manage your agents (a core component that we’ll talk about next), a visual builder, and monitoring and analytics tools found in every other GCP service.

However, underneath the bright colors and unassuming fonts is a natural language processing engine that is built on proven scientific benchmarks, supports over 20 languages, and leverages the bleeding edge of conversational AI to interpret data far beyond just rows and columns.

Building Blocks of Dialogflow

We want you to forget the limitations of conversational agents because only a small percentage of conversational agents today actually use real-time artificial intelligence; the vast majority are, in fact, very simple applications that don’t do a lot of thinking – this article isn’t about those.

No, we’re talking about a different breed of conversational agents that have natural language understanding (NLU) and thus can process unstructured data and natural human speech. In order to achieve these advanced capabilities, AI conversational agents built with Dialogflow have independent components, each of which can be separately customized. For starters, Dialogflow doesn’t have “conversational agents”, it has agents. Each agent represents a human agent and can be designed to handle a wide variety of tasks managing calls, answering customer queries, taking feedback, etc. Developers can create and customize multiple agents at the same time.

Let’s take a brief look at some other key components of Dialogflow that give these virtual agents their functionality:

Intent
Intent refers to the customer or end-user’s intention behind each message. Through a process called Intent Matching, Dialogflow tries to match the information gathered from the user message (also known as end-user expression) to one of the intents classified by the developer in order to find the most suitable response. Each intent is defined by a training phrase, an action, parameters, and responses.

Entity
The information (intent) gathered from a user, associated with a specific keyword is automatically mapped to an entity. Developers can also create entities themselves which the agent can use to better understand the context of the conversation.

Context
Similar messages can have completely different meanings under different contexts, so it’s important to establish contexts. Developers can specify numerous contexts that relate to different business scenarios and practices which the agent can use to drive the conversation forward.

There are a few other components involved as well but the inherent functionality granted by these components isn’t unique to Dialogflow. Different chatbot platforms have similar functionality, albeit with different names and different limits. But what makes Dialogflow different is how it implements all of these components together in a way that greatly enhances the user-experience and conversational possibilities.

In other words, despite having similar building blocks, Dialogflow is much more than the sum of its parts. Here’s how.

How is Dialogflow Different?

Google’s conversational AI efforts are driven by numerous factors such as constant scientific discoveries into ML and conversational AI, its own language model (BERT), Google Assistant serving 400 million users, and numerous investments into other AI endeavors (in 2019 alone it acquired 16 AI firms). This combined with Google’s core development philosophy of lightweight cloud applications, gives Dialogflow some very powerful as well as user-friendly features. With that in mind, here are the top 6 reasons why Dialogfow is better than other chatbot service platforms.

All-in-one Package and No-Code
Rasa is one of the most popular platforms to build conversational agents with machine learning and natural languaging understanding. It is thus a very powerful alternative to Dialogflow. However, when compared to Dialogflow, Rasa seems almost barebones.

Dialogflow offers everything required to build an advanced AI chatbot without any technical knowledge. Instead of downloading and installing libraries, developers can start and finish their conversational agents without writing a single line of code. Additionally, Dialogflow doesn’t require hosting and comes with monitoring and debugging tools.

Tensor Processing Units (TPUs)
Google researchers and engineers have developed their own specialized compute hardware called Tensor Processing Units (TPUs). TPUs are a type of application-specific integrated circuits (ASICs) that help significantly accelerate machine learning (ML) workloads such as conversational agents.

Using TPUs means that ML-enabled conversational agents have reduced time-to-accuracy as they are being trained for complex algorithms and network models. What used to take months on conventional hardware, now takes hours on TPUs.

Agent Partition with Flows
Collaboration and remote working is a core part of Google’s design philosophy and we can see that in Dialogflow too with the option of flows. As an agent grows and becomes more complex, developers can use flows to partition the agent and control a specific part of the conversation. You’re not destroying anything but creating easily replicable pieces of conversation that can be modified by separate teams at their own pace.

State-based data model
Dialogflow uses a state-based data model which allows developers to reuse different components including intents, entities, and webhooks. It also enables developers to define transitions, data conditions for different flows, and also handle deviations from the main topic or simultaneous questions effortlessly.

Native Interactive Voice Response (IVR)
Dialogflow has a built-in feature called Native Interactive Voice Response (IVR) which allows developers to convert a text-based agent into a voice agent. In other words, you can also create a phone bot with Dialogflow. It can easily connect existing telephony partners and can be used to redirect calls, schedule appointments, answer common questions, and more.

Console visualization
Dialogflow Console is a powerful web user interface that allows you to see your flows in the form of graphs that are updated in real-time. These visualizations are much more helpful at designing effective conversations than conventional diagrams and code. The Console also visualizes agent performance and has a dashboard dedicated to advanced analytics that helps you keep track of critical metrics.

Wrapping up…

We are in the midst of major market shifts in personal motivations and expectations. This combined with new technologies becoming increasingly accessible and affordable means that businesses must make changes to their customer experience to bring their offering closer to market expectations, that is, fast and scalable. It just happens that Conversational AI is an incredible way of doing that. It can be implemented in numerous ways, as shopping assistants, internal business intelligence (BI) bots, and more.

Whatever the implementation though, Dialogflow seems to be the obvious method of building these bots. It is the culmination of some of the most powerful features available in conversation tech and packages that performance is a user-friendly and efficient platform.

If you’d like to learn more about how Dialogflow works and where conversational agents fit into your specific business model, feel free to reach out to one of our certified cloud engineers for a free consultation today.