Last active
July 28, 2017 16:27
-
-
Save jazzedge/45b61659d0442f1f6e67c40bdb0604d1 to your computer and use it in GitHub Desktop.
Bot Simple waterfall example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bot.dialog('greetings', [ | |
| // Step 1 | |
| function (session, args, next) { | |
| builder.Prompts.text(session, 'Hi! What is your name?'); | |
| }, | |
| // Step 2 | |
| function (session, args, next) { | |
| session.endDialog('Hello %s!', args.response); | |
| } | |
| ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment