Complete the bot

Autogenerated YouTube transcript

[00:00]. So just using what you have already

learned it should be possible for you to do a few more things and just based on the state machine idea and the concept of page transitions that we have already learned you should be able to first of all ask the Vendee bot what you can get with your current balance and based on the balance the bot should be able to give you different answers and you should be able to ask for specific

[00:30] candy or specific you know product

. And it should be able to provide it provided the balance is available. And finally you should be able to ask it to return the balance whatever you have added into the vending machine and you should be able to return the correct balance. So the first assignment is to find out what you can buy with the current balance that you have so what I’m going to do is I’m going to say add a quarter

[01:00] and you can see that it says you have

entered state 25 and I’m going to say what can I get with my balance you can see that it says your current balance is 25 cents you can get a Snickers spot which is the only thing you can get with 25 cents right now I’m going to say add quarter and it says you have entered state 50 and now I can ask what can I get with

[01:30] my current balance

. You can see that it says your current balance is 50 cents and you can get a Snickers bar which is 25 cents or a Twix which is 50 cents let’s go ahead and add one more quarter and now it’s in state 75 and now I can ask what can I get with my balance and you can see that it says your current balance is 75 cents and you can

[02:00] get a Snickers bar. ️

A Twix or a KitKat and this is your first assignment using just the concept of page transitions you should figure out how you can build the bot so that it comes back with the responses that you have seen in this in the simulator demo that I’ve just shown you.

Transcript auto-formatted using ATF

Free: Dialogflow ES Crash course for non-programmers

I recently changed the name of my website from Mining Business Data to BotFlo. To help spread the word, and to hopefully get people to bookmark my website, I am making a set of my training courses free for a few weeks. 

Learn more
"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