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

Microsoft Bot, How to ask user if wants to save the result and how to save it

Open msBot1111 opened this issue 9 years ago • 1 comments

Hi, i'm creating bot which will respond to questions and gets the answer from bing search API, and after the shown results i want to ask the user if the result is accurate, if it is to save the result, if not to show another result. I tried with prompt dialog but there i can't pass the result from search.

msBot1111 avatar Dec 28 '16 14:12 msBot1111

You can use the bot data bags (user, conversation, or per-user in conversation to store state), or better yet, store the search result in the dialog data (Node) or instance members of the dialog class (C#) for the dialog that calls the prompt dialog.

willportnoy avatar Dec 28 '16 18:12 willportnoy