This sample shows how to concisely use the different built-in botbuilder-dialogs
within a WaterfallDialog, ie. walking the user through a multi-step data entry process and persisting their choices throughout the process.
To try this sample
- Clone this repository
- Install modules and start the bot
npm i & npm start
Testing the bot using Bot Framework Emulator
Microsoft Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.
- Install the Bot Framework emulator from here
Connect to bot using Bot Framework Emulator V4
- Launch Bot Framework Emulator
- File -> Open Bot Configuration and navigate to SimpleWaterfallDialogBot.bot
Running the bot - prompts
This sample uses the different prompt types that are provided within the botbuilder-dialogs library and supported by the SDK.
Bot: I am a bot that demonstrates a simple implmentation of the WaterfallDialog with multiple prompts using date type validation.
Bot: Who do you want to pay?
User: Jamie
Bot: How much do you want to pay Jamie?
User: 500
Bot: When do you want to pay Jamie 500?
User: Tomorrow
Bot: Which card would you like to pay with? [visa, amex, maestro]
User: amex
Bot: Are you sure you want to pay Jamie 500 on 2018-09-27 09:52:55 from your amex card?
User: Yes
Bot: Payment made