botframework-sdk
botframework-sdk copied to clipboard
Pop up a browser window upon selecting a choice
Bot Info
- SDK Platform: Node.js
- SDK Version: 3.11.0
- Active Channels: Facebook
- Deployment Environment: Azure Bot Service, local development with Emulator
Issue Description
After the user selecting a certain option from builder.Prompts.choice I need to open up a web page on the browser to show up some results. Only one of the options needs to directed to website.How would do this?
I do not think there is a way to accomplish this with prompt.choice. I would suggest using a Hero card or some other rich card to accomplish this. there is a cardAction type of openUrl. Here is a sample of some rich cards and here is the documentation
new builder.HeroCard(session)
.title("Google")
.subtitle("")
.text("Click button to go to google")
.buttons([
builder.CardAction.openUrl("http://google.com")
])
@JasonSowers I think there's typo when passing params to openUrl method.