botframework

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

对着背影说爱祢 提交于 2021-01-07 02:40:00
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/

EchoBot: How does control flow from BotController to EchoBot

喜欢而已 提交于 2021-01-05 13:15:19
问题 I am looking at the EchoBot sample and trying to understand it. I see that BotController is mapped to api/messages and HttpPost which in turn invokes Adapter.ProcessAsync. But how does this translate into EchoBot.OnMessageActivityAsync call? I tried to set up a breakpoint and see the call stack but that doesn't help ( see attached screenshot). I understand BotFrameworkHttpAdapter is invoked via dependency injection. But I don't know how we end up in EchoBot eventually. 回答1: To find the answer

EchoBot: How does control flow from BotController to EchoBot

送分小仙女□ 提交于 2021-01-05 13:15:15
问题 I am looking at the EchoBot sample and trying to understand it. I see that BotController is mapped to api/messages and HttpPost which in turn invokes Adapter.ProcessAsync. But how does this translate into EchoBot.OnMessageActivityAsync call? I tried to set up a breakpoint and see the call stack but that doesn't help ( see attached screenshot). I understand BotFrameworkHttpAdapter is invoked via dependency injection. But I don't know how we end up in EchoBot eventually. 回答1: To find the answer

suggested actions disappear after click in directline

丶灬走出姿态 提交于 2021-01-05 13:00:14
问题 I have configured directline channel to Microsoft bot framework v4 with node js. I have suggested actions in welcome message. when I clicked any suggested action it disappear in UI but its response receiving to bot. var msg = MessageFactory.suggestedActions( CardFactory.actions([ { type: 'messageBack', title: 'xyz', value: 'xyzDialog' }]),'please select choice'); await context.sendActivity(msg); could you please guide me how can I make it appear clicked suggested action to end user? Thanks in

QnAmaker sample - The bot's Microsoft App Id or Microsoft App Password is incorrect

﹥>﹥吖頭↗ 提交于 2021-01-05 06:59:08
问题 I downloaded the QnAmaker sample from here and trying to make it working from bot emulator. I gave the correct Microsoft App Id and App Password. I even tried with a newly regenerated password. But getting the same error. Did anyone face this issue? any thoughts. What should I try next to get this resolved? My app settings My ngrok settings Update I removed ngrok settings from emulator settings.Removed MsApp Id and Ms App Password and then started emulator and the bot is responding. But I

Teams Task Module SSO issue

北慕城南 提交于 2021-01-01 08:14:38
问题 Teams SSO is working fine in Teams Tab and task module of Messaging extension but getting below error in Teams Bot task module while fetching client token ExtensionTabService: getAuthTokenForApp: Failed with error - Definition not found Using below code to open task module in teams bot with help of hero card - https://teams.microsoft.com/l/task/${appId}?url=${modalUrl}&height=${height}&width=${width}&title=${title}` The same code is also working in the Teams Bot task module in Android Mobile

refresh Directline token after it got expired

ぐ巨炮叔叔 提交于 2021-01-01 02:52:41
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to

refresh Directline token after it got expired

≡放荡痞女 提交于 2021-01-01 02:51:26
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to

refresh Directline token after it got expired

ⅰ亾dé卋堺 提交于 2021-01-01 02:50:51
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to

refresh Directline token after it got expired

风格不统一 提交于 2021-01-01 02:50:06
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to