direct-line-botframework

How to store & retrieve Bot Data in Azure Table storage with directLine channel?

守給你的承諾、 提交于 2019-11-28 02:02:39
问题 I'm using Microsoft Bot Framework with directLine channel. My Bot is a part of company's customer portal from where I fetch some user information and store it in BotState using stateClient as shown below public ActionResult Index() { var userId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value; GetTokenViaBootStrap().Wait(); var botCred = new MicrosoftAppCredentials( ConfigurationManager.AppSettings["MicrosoftAppId"], ConfigurationManager.AppSettings["MicrosoftAppPassword"]

Bot framework get the ServiceUrl of embedded chat control page

寵の児 提交于 2019-11-27 09:20:56
I want to embed the chat control to many websites and I want to get the Url of the website that I've embedded in order to my bot can get the Data matching with the Website URL. However, when I embed the iframe generated from WebChat, I always get the same ServiceUrl and that's https://webchat.botframework.com/ , it isn't the Url of the website, so how can I embed the chat control to any website and my bot can get the website Url not the Url of the WebChat or DirectLine. Here's what I've tried: Direct-Line chat control Here's the result I've tested with my published bot: I've noticed that, when

Bot framework get the ServiceUrl of embedded chat control page

ぐ巨炮叔叔 提交于 2019-11-26 14:38:51
问题 I want to embed the chat control to many websites and I want to get the Url of the website that I've embedded in order to my bot can get the Data matching with the Website URL. However, when I embed the iframe generated from WebChat, I always get the same ServiceUrl and that's https://webchat.botframework.com/ , it isn't the Url of the website, so how can I embed the chat control to any website and my bot can get the website Url not the Url of the WebChat or DirectLine. Here's what I've tried