Nitheesram Rajes
Nitheesram Rajes

Reputation: 146

Confused with Dialogflow and Actions on Google

I've recently started learning and developing a chat bot with Dialog flow. The chat bot will be used as mobile app and web integration as well.

While using dialogflow fulfillment, I used to edit inline fulfillment editor which already had some samples. Card & Suggestion were imported from dialogflow-fulfillment library and used. Up to that point all is fine.

But, when i tried to use Carousel, List etc from actions by importing them from actions-on-google library, it is working with Android Google Assistant, but response for web is saying, "cannot display response in Dialogflow simulator. Please test on the Google Assistant simulator...."

What actually I expect to do is, using modules/components of actions on google along with components of dialogflow fulfillment, without any issues for mobile apps and web.

Or else, looking for best way to to this.

Upvotes: 0

Views: 699

Answers (1)

Nick Felker
Nick Felker

Reputation: 11978

Dialogflow and Actions on Google are two separate things, although they work together. Having a better understanding of each may help you understand when to use each.

Actions on Google is a way for developers to build voice experiences on top of the Google Assistant across surfaces. As a platform it takes in user queries through voice primarily, and returns sensible responses.

It's hard to do natural language processing. Getting a user's query may not be sufficient to understand what they mean. So Dialogflow serves as a platform that acts as an intermediary, taking in a raw query and making sense of it.

Dialogflow is a general NLP platform, and supports a variety of platforms including Actions on Google, Slack, Twitter, and more.

As each platform has different APIs, Dialogflow has tried to create a common set of features in their dialogflow-fulfillment library. Cards will work across platforms.

However, Actions on Google supports a wider range of response types such as carousels. When using a carousel, you should use the actions-on-google library for your fulfillment as it is designed to support this wider range of response types. Additionally, features like permissions and account linking are also exclusive to Actions on Google, and should be written in that way.

Upvotes: 4

Related Questions