Bot Framework Composer变量等效

发布于 2025-02-05 04:22:35 字数 261 浏览 4 评论 0 原文

当创建Azure Bot时,我在bot Framework作曲家中使用的变量turn.text。我想问一个问题:在Visual Studio中编码时,在Bot Framework作曲家中等同于user.name或user.age?

bot framwork composer image

When creating an Azure bot, the variable turn.activity.text I used in Bot Framework Composer is equivalent to turnContext.Activity.Text when coding in Visual Studio. I want to ask a question that what is equivalent to user.name or user.age in Bot Framework Composer when coding in Visual Studio?

Bot Framwork Composer image

Visual Studio Image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没︽人懂的悲伤 2025-02-12 04:22:35

该机器人需要维护用户状态以跟踪用户的答案。

您是否有机会查看样本?它演示了如何将用户和对话数据保存在机器人中。该机器人保持对话状态以跟踪和指导对话并询问用户问题。

上述示例提供其他编程语言,例如C#,JavaScript,Python,Java,来自以下链接:

https://github.com/microsoft/botbuilder-samples/tree/main/samples

The bot needs to maintain user state to track the user's answers.

Have you had a chance to check out sample /45.state-management/? It demonstrates how to save user and conversation data in a bot. The bot maintains conversation state to track and direct the conversation and ask the user questions.

The above sample is available in other programming languages such as C#, JavaScript, Python, Java from the following link:

https://github.com/microsoft/BotBuilder-Samples/tree/main/samples

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文