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.
So the bot that we are going to build is going to be called Vendee it’s a [m1] 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.
And the user can say the following phrases.
OK, 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 [m2] 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