0:00
So now that you understand the concept of the state machine, we will build a bot which is going to use the concept of the vending machine and we are just going to call it Vendee. And I think that it's probably the simplest way to get started with Dialogflow CX. And when I say the simplest way, I mean that it's the simplest way where you have a Dialogflow CX bot which is actually built using all the Dialogflow CX features. You can build much simpler like FAQ bots and things like that which don't even have like state changes, but that's not really a use case for Dialogflow CX. In that case, you could as well just stick to the old version of Dialogflow ES which has a very generous free tier and is much less expensive.
0:55
So, the bot that we are going to build is going to be called Vendee. It's a vending machine bot and the only unit of currency that it accepts is the quarter. That is the vending machine which is a quarter is 25 cents as you know and there are three products like we saw before. You can get a Snickers for 25 cents, you can get a Twix for 50 cents or you can get a KitKat for 75 cents.
1:25
And the user can say the following phrases, "Okay, this is the list of phrases that the user can say and what we support. They can either say add a quarter, which is their intent is to add a 25 cents coin into the vending machine. Then they can ask what is my balance and it's going to tell them how much money they have inserted into the machine. What can I get with my balance? In this case, it is going to tell them the different products which they can buy using the balance they have. And they can select one of the three products by saying give me a Snickers, give me a Twix, or give me a KitKat. And finally, they can also say return or refund my balance. So these are the different phrases, or you can say these are the different things that the user can say to the Vendee bot and it has to perform actions according to whatever the user has said."