C# 如何使用BOTC框架在不同的变量中存储不同的响应消息#
我想将用户响应中的用户名和密码存储在聊天机器人中C# 如何使用BOTC框架在不同的变量中存储不同的响应消息#,c#,botframework,C#,Botframework,我想将用户响应中的用户名和密码存储在聊天机器人中 user: Reset my password BOt: Enter your username?? user: guest --> this response should be stored in username variable Bot: Enter your password?? user: 12345 --> this response should be stored in pass variable 如何在c#代码
user: Reset my password
BOt: Enter your username??
user: guest --> this response should be stored in username variable
Bot: Enter your password??
user: 12345 --> this response should be stored in pass variable
如何在c#代码框架中执行此操作有两种选择:
- context.UserData
- context.PrivateConversationData
- context.ConversationData
我为你写了一个图书馆。简言之,假设您使用的是个人(1-1)机器人,则在轮换过程中,收集的信息会保存到对话框选项和对话数据中 所有这些处理都是为您自动完成的,您需要做的只是声明您需要的属性
到目前为止,您尝试了什么?请展示您的工作,以便我们能够帮助您。对于(int i=0;i),请使用您的代码编辑您的问题并正确设置格式。