DialogFlow | Mobile App

How to integrate Dialogflow into your Flutter app

This is not a tutorial. But I want to provide some pointers because it seems people are not clear on an important aspect of Dialogflow integrations. I got this question on YouTube: The 4 Layers of a Dialogflow bot I have explained the concept of the 4 layers in a Dialogflow bot before. In the case of a Dialogflow + Flutter (mobile app) integration, you are responsible for both the middleware layer AND the UI layer. This is what makes it so complex (or at least so much more work). How to create the integration So here is what you need to do to integrate Dialogflow into your Flutter app: 1 Create the middleware code The middleware code is responsible…

DialogFlow | Mobile App

Dialogflow Android integration for API v2

I have been getting a few requests of late for explaining how to do Dialogflow + Android integration for API v2. Disclaimer: I haven’t worked on the Android integration till now. But this article tells you what not to do, and why. Since I have noticed some online tutorials which are actually more confusing than helpful on this topic, I wanted to clarify something. Here is an important thing you need to know: if you want to do the integration safely (i.e. without exposing your secret credentials), you cannot put the service account JSON file anywhere on the Android device. Here is an explanation: And the linked repo says this: At this point, you have to choose. If you don’t…