简体   繁体   English

Bot Framework.Net,如何从我的 Web 应用程序中获取用户名、ID、令牌到 Bot

[英]Bot Framework .Net, How I can get either the Username, Id, Token from my Web App to Bot

I created a Bot that will interact with the currently logged-in user from my Web(React-app).我创建了一个 Bot,它将与我的 Web(React-app)中当前登录的用户进行交互。 So in my Website if I am currently login and if I click the bot which I embedded using Web Chat.因此,在我的网站中,如果我当前正在登录并且单击使用 Web Chat 嵌入的机器人。 So I want to get that token/username/id which I saved in the cookies/state.所以我想得到我保存在cookies/state中的那个token/username/id。 How can I pass that data to the Bot?我怎样才能将这些数据传递给机器人? So that my Bot will know who he's talking to.这样我的机器人就会知道他在和谁说话。 Because I don't want my Bot to login again since he is already logged-in in my Web app.因为我不想让我的 Bot 再次登录,因为他已经在我的 Web 应用程序中登录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从LuisResult对象获取实体的值? (带有Bot Framework .NET的LUIS) - How can I get the value of an entity from LuisResult object? (LUIS with Bot Framework .NET) 从 Bot Framework 获取网页的 URL - Get URL of web page from Bot Framework 如何解决我的 azure web 应用程序机器人上的 401? - How do I resolve a 401 on my azure web app bot? 如何在bot框架中点击按钮的标题 - how can i get the title of button on click in bot framework Bot 框架 - 从我的应用服务 Directline api 生成 Directline 令牌不起作用 - Bot framework - generating directline token from my app service directline api not working 如何从Microsoft Bot Framework中的PromptValidator获取stepContext? - How do I get the stepContext from the PromptValidator in Microsoft Bot Framework? 如何再次从 Bot Framework v4 获取自适应卡片列表? - How can I get an adaptive card list from Bot Framework v4 again? 我如何从Facebook Messenger Bot Framework C#获取引荐参数 - How can I get Referral params from facebook messenger Bot Framework C# 使用 Bot Framework v4,我如何确定 OAuthPrompt 是刚刚登录还是令牌已经存在? - Using Bot Framework v4, how can I determine if an OAuthPrompt was just logged in or if the token already existed? 如何在我自己的Asp.Net Web应用程序中添加MS Bot应用程序 - How to add my MS Bot app in my own Asp.Net web application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM