[英]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 应用程序中登录。
I was able to find some resources and it worked on my end.我能够找到一些资源,并且对我有用。
- https://github.com/Microsoft/BotFramework-WebChat - https://github.com/Microsoft/BotFramework-WebChat
- (Another example) https://user-images.githubusercontent.com/42096464/82071374-a1fc8680-969b-11ea-8080-23c618163096.png - (另一个例子) https://user-images.githubusercontent.com/42096464/82071374-a1fc8680-969b-11ea-8080-23c618163096.png
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.