Dialogflow CX Beginner Tutorial – 14/14: Assignment Hints

Course outline


All right.

So in this video.

What I’m going to do is I’m going to give you a few hints to solve the assignments that I just provided and.

I think that this is also a good way to see some of the features that we haven’t yet seen.

And the first one would be this manage tab that you have over here and.

Let’s say let’s take a look I click on this.

And you can see that there are a lot of intents over here.

So we have already seen the welcome intent.

And I don’t know if we explicitly saw the negative intent but – you know – that is similar to the fallback.

And you can also see that these are the kind of intents that you should have in your in your agent as you are trying to build out the all the intents for the assignment.

Let’s just take a quick look at one of the things which is what can I get right that was one of the things that we were trying to implement the first assignment.

And you can see that [m1] the what can I get intent has only training phrases.

And remember that the CX has this notion of separating out the training phrases from the responses because it’s a state machine as – you know – right so you only have the training phrases in the intents in CX which means that what you see here is merely the words or the phrases that the user can say but we don’t really know what the response is going to be because that’s going to be based on the current state.

And what we want the bot to do and.

In fact, that’s the – you know – the big I guess the special feature of CX because it allows us to reuse these intents.

And now let’s say.

If I were to go.

And look at give me Snickers you just see that I have these three phrases give me Snickers give me a Snickers.

And give me a Snickers bar.

And you can have other training phrases too you don’t have to limit yourself to just three.

The idea is that you’re going to give all the variants that the user might use [m2] you you’re going to add that into the list of training phrases right.

So this is something like what you should have once you are once you have completed your assignment.

And the other thing that I want you to want to show you is just take a look at what the intents might be inside of these different states.

OK, so you have the start state.

And you can see that there are all these intents what is my balance add a quarter what can I get give me stickers give me twex give me Kitkat return my balance all of them should be a part of that state.

And you should.

In fact, have the same set of intents in the state 25 also add a quarter what’s my balance what can I get.

And so on and.

In fact, you should also have the same set of intents in state 50.

And 75.

So this is why the CX is such a I guess a big improvement [m3] over Dialogflow ES because you just defined these intents over here.

And you are able to reuse for example you could have used give me Kitkat in all the different states you have the give me Kitkat intent in state start you have it in this state 25.

And you have it in state 50 right.

And you also have it in the state 75.

And I didn’t have to re type out the training phrases again I just used the training phrase.

And I’ll just give you one more hint here if you are in state 75.

And you ask for Kitkat once the agent has completed the response which is okay here is a Kitkat your remaining balance is zero cents you have to remember to transition to the start state now in contrast.

Let’s say that you were in state 50.

And you asked for [m4] Kitkat you will see that here the agent is supposed to say your balance must be at least 75 cents to buy a Kitkat.

And we know that it’s not 75 cents because we are in state 50 right.

And your current balance is only 50 cents.

And also notice that it doesn’t do any state transition or page transition because it’s not done anything it’s it’s not going to change its state.

Because all it did is refuse to provide the product to the user which means that it’s as if it came back to the same state so it’s just something that you need to think about because not all the intents will have to trigger page transitions it will only trigger a page transition where it makes sense because something happened to the total balance which is available so that’s the set of hints.

And if you still find that you are not able to build out the assignment they bought as I specified in the assignments the other thing you can do is you can take a look at my Dialogflow CX [m5] beta course.

And I will tell you that it’s a paid course so you have to pay to get this course.

But the bots file that is the blob file that you can use for importing this agent will be available in this Dialogflow CX beta course so that you can just import it into your Dialogflow CX console.

And maybe you can see what you might have missed

<— End of article —>

This website contains affiliate links. See the disclosure page for more details. 
Check out the Learn Dialogflow ES and Learn Dialogflow CX courses if you would like to learn Dialogflow in depth.
"The magic key I needed as a non-programmer"

The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn.

- Kathleen R
Cofounder, gathrHealth