Part 1

Lesson Progress
0% Complete

Autogenerated YouTube transcript

[00:00] in this lesson we will look at how to build out our intents so in the last one we left off with this question when the user says what is the radius of Saturn it went to the default fallback intent that is the users phrase was mapped to the default fallback intent. And of course that’s because we don’t have we have not declared any intents which can handle this question that the user is [00:30] asking now let’s take a small detour here because this is very important the way that Dialogflow works.

And any other bot frameworks as of today is it’s going to look at this user space text message

And sometimes it can be like a voice input but ultimately that’s. Also converted to text before this happens and it’s going to take this text message and it’s going to try and analyze this ⌛ [01:00] the pattern that Dialogflow sees in this message and what it’s going to do after that is it’s going to take a look at all the intents that we have already declared and right now we have only two but you know you could have actually you can have a lot I think it’s about 2,000 intents or so per agent and it’s going to look at all these intents and it’s going to say what is the closest intent what which of these intents that the [01:30] user has already defined is the closest in terms of the pattern for what the user has said over here and that’s effectively all that Dialogflow does which is still it’s very powerful.

But the reason that I mentioned this is sometimes people seem to think that Dialogflow is capable of learning stuff by itself like

In other words just just by me saying what is the radius of ⌛ [02:00] Saturn and let’s say that I actually declare an intent to do that doesn’t mean that Dialogflow will be able to then. Also give an answer for what is the color of Saturn. And the reason for that is don’t have an intent which can handle the user asking the question about the color of Saturn another way to put it is Dialogflow can only work with what the user has already defined and the more you want your chat BOTS the smarter [02:30] you want your bot to be the more work you need to do and there isn’t really any option.

Or any way to avoid that and that’s that’s my quick detour just

To point out that all the stuff that you do here is it’s a result of your own input. And your own efforts it’s not quite like there isn’t anything like super intelligent about these chat bots at ⌛ [03:00] least in my view. So let’s get back to the topic at hand now what I’m going to do is I’m simply going to create an intent which can handle this very question.

So the question is user asks for the ideas of Saturn and you will add a training phrase let’s just add the same one for this a radius of Saturn and I’ll

Also have a few more like tell me [03:30] the radius of Saturn give me now the reason that I’m declaring multiple training phrases here is I am giving a lot of hints to Dialogflow. So that if the user comes up with some variant of these questions it is still able to understand that this is the intent that ⌛ [04:00] has to be fired that this is the intent that has to fire and as a response for now I’m just simply going to say I’m kind of going to echo back what the user said you asked for the radius of Saturn now when I first introduced this bot I said that we will be answering this question that is if you expected to come back with an out with a number right but for now I’m just going [04:30] to keep it very simple and you will see why because at the moment we don’t want to get too deep into the other concepts of Dialogflow because isolating these individual behaviors will give you a really good understanding of what is going on and then once you master that you can build on top of it and move on to the more advanced concepts so for now ⌛ [05:00] all that the bot does is it understands what the user asks and.

Instead of giving the actual answer to the question just acknowledges it’s sort of an acknowledgment that it understood what the user has asked here so with this let’s go ahead and save this intent here and you have to wait for a couple of seconds you can see that

As soon as you save it you see it starts training the agent. And then you will see in a minute that it will actually say that the [05:30] training has been completed and you have to wait for the agent training completed message to pop up over here because that’s the indication that it’s ready to accept that phrase. So that it will be able to actually do that mapping.

Transcript auto-formatted using ATF

ℹ️ All Courses | ✅ How to mark lessons as complete | ? How to unlock all lessons (free)

>