botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Can't use prompts in WEB CHAT channel

Open rociocastillo opened this issue 10 years ago • 6 comments

Hello, I'm trying this example using as web chat channel and is not running the second function that is where prompt response processes. the same example works well on facebook.

bot = new builder.UniversalBot(connector);

bot.dialog('/', [ function (session) { builder.Prompts.text(session, "Hello... What's your name?"); }, function (session, results) { session.userData.name = results.response; builder.Prompts.number(session, "Hi " + results.response + ", How many years have you been coding?"); }, function (session, results) { session.userData.coding = results.response; builder.Prompts.choice(session, "What language do you code Node using?", ["JavaScript", "CoffeeScript", "TypeScript"]); }, function (session, results) { session.userData.language = results.response.entity; session.send("Got it... " + session.userData.name + " you've been programming for " + session.userData.coding + " years and use " + session.userData.language + "."); } ]);

Thank you very much for your help.

rociocastillo avatar Oct 18 '16 02:10 rociocastillo

Can you open F12 developer tools in your browser to see if there are any errors in the console?

danmarshall avatar Oct 18 '16 03:10 danmarshall

yes, no error

rociocastillo avatar Oct 18 '16 04:10 rociocastillo

I am also facing the same issue, did you/anyone fix the issue?

somuit91 avatar Oct 26 '16 04:10 somuit91

@danmarshall is there anything else you need to diagnose the issue?

chrimc62 avatar Nov 27 '16 00:11 chrimc62

Hi @rociocastillo do you still see this issue? Also we have a preview version of our web chat control, you may want to try it out.

danmarshall avatar Dec 06 '16 22:12 danmarshall

Hi, already solved was a problem of sending messages to directiline.

Thank you. regards

rociocastillo avatar Dec 07 '16 12:12 rociocastillo