What Is DialogFlow and Why Do You Need It?

Photo of Marcin Grabowski

Marcin Grabowski

Updated Jan 9, 2023 • 6 min read
rawpixel-1082917-unsplash-085076-edited

Chatbots, from smart home assistants to automatic bank assistants, have become a very common way to quickly respond to users’ questions and needs. Their main benefit is that they help businesses scale effectively and support customer service with no harm to the user experience.

Implementing a chatbot into your customer communication strategy can save you time and money. They have some limitations too - most of which result from the fact that they simply are not human. Let’s look at DialogFlow - a great solution for all your chatbot needs.

Why do I need it?

A well-written chatbot not only can substitute for a living person and mimic a natural conversation, but it’s also available twenty-four hours, seven days a week. It makes your business more approachable and accessible. Consumers are more impatient these days and want to have immediate answers. Otherwise, they might turn to your competitors. Obviously, a chatbot will never be able to replace a human-to-human interaction, but it can definitely help prospects and clients in finding necessary information about your business. There are many services available on the market, but I would like to show you why you should be interested in DialogFlow.

DialogFlow and its benefits

DialogFlow (previously API.AI) is a service which provides a complete product to implement voice- and text-based conversational interfaces. It employs Machine Learning to conduct a conversation as naturally as possible. The whole process can be done using the simple UI in DialogFlow’s web console. Easy integrations with various services (Facebook Messenger, Slack, Skype, etc), easy implementation on every platform (web, mobile), the option of adding a backend with some logic, integrated Small Talk function - there are many advantages which make DialogFlow a compelling choice.

Simplicity

DialogFlow3
You don’t need to know a programming language to build your first chatbot. Add some phrases to which the chatbot should respond, add a few responses, some chips with suggestions, and that’s it.

Looks simple? Yeah, it is. Of course, there is much more:

  • Responses with website cards, images carousels, audio files, etc.

  • Create your own entities and use parameters in phrases or responses.

  • Follow up every response and create full conversations using a huge tree of followed-up requests and responses.

  • Support for over a dozen languages.

  • Use one conversation template and just translate the phrases/responses.

Services integration

DialogFlow4
DialogFlow can be easily integrated with many external services. Do you want to create a Facebook Messenger chatbot for your business’s Facebook page? A few clicks and it’s done. Maybe you need some Google Assistant actions which will be available for your friends or company? Or an autoresponder on Slack? Not a problem. One interesting feature is that every service can have different responses for every phrase.

The whole process is straightforward. From most of these services, DialogFlow requires only an access token, and the rest of the magic happens itself.

DialogFlow1

Easy implementation in a custom application

Those integrations look okay, but what if we want to implement a chatbot in our website or mobile application? That’s easy too.

The DialogFlow API is well-documented and uses Google Cloud (or access tokens in API v1) as the authentication method. Requests and responses are just JSON files with all the info and data which need to be implemented on the application side.

DialogFlow5

Backend logic on your side

DialogFlow is not limited to normal conversations. You can even create custom logic in JavaScript! DialogFlow is not only a simple request-response mechanism. Under the hood, you can find JavaScript code which can be integrated with your chatbot. Thanks to that, the possibilities are endless:

  • Chatbot as a unit converter,

  • Chatbot which shares random news from selected services,

  • Chatbot which returns info about the weather,

  • And more.

DialogFlow even provides a simple JavaScript editor (powered by Cloud Functions for Firebase).

DialogFlow2

Small Talk

Additional helpful feature that may convince your users to participate in a natural conversation is an integrated function which provides automatic responses to some common phrases like “How are you?”, “I just want to talk” or even “Give me a hug”.

Our experience - Temi

At Netguru, we had the chance to implement DialogFlow in practice. We were looking for a service which would allow us to prepare many conversation scenarios using NLP (natural language processing) for one of our commercial clients – Temi.

Temi is a personal robot built by an Israeli company, Roboteam. Netguru partnered with them on building the operation system for the robot and DialogFlow was a bull's-eye. Thanks to NLP, we can ask Temi things like “what is the weather in Warsaw?”. NLP will find two keywords here - weather and Warsaw. Basing on weather, Temi will launch the Weather view and based on Warsaw, he knows what place we want to check. Temi logic uses DialogFlow conversation JSONs and thanks to TTS (Text-to-speech) it leads a natural conversation with the user. You can read more about the project in our case study and the interview.

Dialogue with flow

DialogFlow is a great tool to build a natural conversation with the user without a lot of work. If you need something more than just a conversation, JavaScript is at your disposal to create something more sophisticated. You can choose the Standard or Enterprise (check the pricing) editions, depending on what interests you - a small project or maybe a worldwide agent used by many users.

Photo of Marcin Grabowski

More posts by this author

Marcin Grabowski

Marcin is an Android lover with above 1.5 years of experience in Java Android, Xamarin. Android and...
How to build products fast?  We've just answered the question in our Digital Acceleration Editorial  Sign up to get access

We're Netguru!

At Netguru we specialize in designing, building, shipping and scaling beautiful, usable products with blazing-fast efficiency
Let's talk business!

Trusted by: