4 Layers of a Dialogflow Bot

(Autogenerated transcript)

 Alright, so as we talk about Dialogflow CX integrations and Dialogflow integrations in general, the first thing that I would like to talk about is this concept of four layers of Dialogflow bots that is every Dialogflow bot in my view has four layers and these are the four, the first one which is closest to the end user is the user interface and then you have a middleware or an integration layer which connects the user interface layer with the conversation layer and in this case I refer to everything which you do inside of the Dialogflow web application as the conversation layer and then you also have the fulfillment layer which is your webhook code and fulfillment layer is a terminology that Dialogflow team itself uses. So you stack these four things together and you get the Dialogflow bot, there may be a bot which may not have this you know maybe sometimes you don't have the user interface

 layer or something but in general most bots follow this you know this four layer scheme right and why does it matter like the fact that you have these four layers why does it matter it's because the integration code that you write which is of course this middleware slash integration layer over here the code that you write it depends on the user interface layer that you are going to use. Now the conversation layer, fulfillment layer they are not really important as far as we are concerned when it comes to Dialogflow CX integrations but the user interface layer actually plays a big role and the reason for that is the UI layer is either predefined or it may have to be defined by you and in the case of let's take an example you have this thing on the on the right of the screen this is a chat widget which I created using Zoho Sales IQ now this bot actually is not integrated with Dialogflow it doesn't have

 any NLU but it's possible to create a bot which does have NLU and if you are going to do that you have two options you can either use the built-in Zoho Dialogflow integration which is just a single click or you can build your own custom integration by using a webhook approach which they allow and in fact since there is no Dialogflow CX plus Zoho Sales IQ integration as of now you will have to use the webhook approach to be able to integrate Zoho Sales IQ with Dialogflow CX you can do it without using your own webhook code in the case of ES because they provide this one click integration but you can't do that in the case of CX so the point I'm making is you have to based on what the user interface layer provides you in terms of the user controls and whether they can input information whether

 they can submit information and things like that your code that you write for the integration layer could be that much more you might say complicated in the case of the user interface layer which is defined by you let's say you build a completely custom website integration with Dialogflow you are also responsible for creating the UI layer controls like buttons and you know if you want to create a list view or something like that in that case you are going to be also responsible for rendering the response which comes back from Dialogflow into the appropriate user interface control right so that obviously it adds a lot more code to the integration that you are building so taking this approach of looking at it from this four layer view point will be very helpful for you as you are building out the Dialogflow CX integration so in the next few lessons what I'm going to do is I'm going to show you how you can integrate Zoho sales IQ with Dialogflow CX and you will be able to get

 a much better picture of what is in the integration layer and what is in the UI layer.