Botframework-sdk: Microsoft Bot, How to ask user if wants to save the result and how to save it

Created on 28 Dec 2016  路  1Comment  路  Source: microsoft/botframework-sdk

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.

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebsylvester picture sebsylvester  路  3Comments

mattlanham picture mattlanham  路  3Comments

stijnherreman picture stijnherreman  路  3Comments

maba4891 picture maba4891  路  3Comments

akakoychenko picture akakoychenko  路  3Comments