创建Azure bot时,我在bot Framework Composer中使用的变量turn.activity.text相当于在Visual Studio中编码时的turnContext.Activity.Text。我想问一个问题什么等于user。name或user。在Visual Studio中编码时,在Bot框架编写器中的年龄?
Bot framework Composer image
Visual Studio Image
机器人需要维护用户状态来跟踪用户的回答。
你有机会检查样本/45.state-management/吗?它演示了如何在机器人中保存用户和对话数据。机器人维护对话状态来跟踪和引导对话,并向用户提问。
上面的示例可以在其他编程语言中使用,如c#, JavaScript, Python, Java,以下链接:
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples