botframework

Get ConversationId from Context

孤街醉人 提交于 2020-01-16 07:05:53
问题 How can I get the ConversationId from the IDialogContext context ? I know that there is a ConverationData property but that seems to just be a data bag that can hold anything. Is the id in this bag? If so, what is the key to retrieve it? public async Task General(IDialogContext context, LuisResult result) { //how can I access the conversationId here } 回答1: So I have found a way of doing it but I am not sure if it is the best way. The context object that is passed in has a data field on it

New Bot Framework 403 Forbidden (.NET Core 2.1)

核能气质少年 提交于 2020-01-15 10:36:09
问题 I have in an Azure a Bot Channels Registration with AppId and AppPass I have deploy a Bot from Visual Studio to App Service and add MicrosoftAppId and MicrosoftAppPassword I try test in "Test in Web Chat" And have a 403 Forbidden With telegram client i have same error POST to xxx failed: POST to the bot's endpoint failed with HTTP status 403 In "Log stream" i see Startup.cs public void ConfigureServices(IServiceCollection services) { services.AddBot<IAssistantBot>(options => { var secretKey =

OAuth Implementation in MS Teams and MSBotframeworkV4 Chatbot causing Adaptive Card Submit to Malfunction

余生长醉 提交于 2020-01-15 10:10:06
问题 Linked To This issue is linked to my previous post related to an issue with MS Bot framework oAuth Authentication in MS Teams Chanel. The OAuth Authentication has started working but, am facing this issue as a result of the suggested code changes to enable OAuth Authentication. Linked Post URL: Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user Used the following Git Hub Code Sample as a basis for the OAuth code and retrofitted to my existing

Microsoft Botframework: How to use Telegram Parameters or sending NewLine?

醉酒当歌 提交于 2020-01-14 14:46:09
问题 I'm trying the new Botframework from Microsoft. When sending a message with \n there is no linebreak in the message. How can I solve that? In the Telegram API there is an parameter called parse_mode (https://core.telegram.org/bots/api#formatting-options) to activate HTML. Than I could use "<br />" for that, but I don't know how to set this parameter. Can someone help me by sending linebreak or Telegram-parameters? Greeting Max 回答1: BotFramework uses Markdown. To represent a paragraph break

Remove image upload button in Microsoft BotFramework iFrame

岁酱吖の 提交于 2020-01-13 19:29:29
问题 Does the iframe embed has any configuration / support to disable the button ? 回答1: The embed web chat doesn't have direct configuration to disable the upload botton and functions. However, the embed web chat is built by the project BotFramework-WebChat, so you can modify the source code, and compile into your own version to achieve your requirement. Clone the repo https://github.com/Microsoft/BotFramework-WebChat to your local work space, run npm install to install all the node.js

How to use LUIS None Intent in c# without train utterance at LUIS

て烟熏妆下的殇ゞ 提交于 2020-01-11 12:17:26
问题 I have implemented the None Intent as follows.. [LuisIntent("None")] public async Task None(IDialogContext context, LuisResult result) { await context.PostAsync("I'm sorry. I didn't understand you."); context.Wait(MessageReceived); } But looks like i need to train some utterance at luis side, which i don't want. I am looking something whichever is not found or recognize at luis, should fire the None Intent handler. How do I achieve this ? 回答1: Add also the following line to your None method:

how to get Azure Active Directory B2C working with Bot Framework?

跟風遠走 提交于 2020-01-09 19:34:30
问题 so far I've not been able to get this working with the bot framework. I spent all day but only managed to get .net api example (https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) working with AD B2C. I'm not sure where it grabs the bearer token that I want to pass to BotUserData... I've tried following https://azure.microsoft.com/en-us/blog/bot-framework-made-better-with-azure/ but in reality the solution does not build successfully and I've resorted to just

how to turn off automatic replies?

≡放荡痞女 提交于 2020-01-07 08:35:15
问题 My bot has an option "notify". I would like to stop automatic replies for that user if "notify" has been hit. Is that possible ? Any example ? PS: I know this question is not asked properly, but i don't know where to start. 回答1: If you want to stop displaying in the conversation what the user selected from a set of options, you can set the CardAction type to PostBack . eg. CardAction CardButton = new CardAction() { Type = ActionTypes.PostBack, Title = item.ToString(), Value = item.ToString()

Get Skype ID from Activity object Bot Framework V3

心已入冬 提交于 2020-01-07 03:40:53
问题 In the previous version of the Microsoft Bot Framework (v1) we were able to get the Skype ID (username) from the Message object. I have now updated to V3 and can no longer get the Skype ID, it returns a random ID in the ID field and the Skype Users name. I have already built the back end to use the Skype ID and don't want to change that. Is there anyway to get to the Skype ID? I did see this in the documentation "In the V3 version of the API a user is represented by a unique user ID per bot

Getting the Luis “topIntent” from a child dialog inside another file (Node.js)

主宰稳场 提交于 2020-01-06 11:17:04
问题 I have Luis working in my main bot.js file for top level intents. But i'd like to access Luis from other dialogs that are in their own files, called by bot.js: bot.js: const { InitialDialog } = require('./dialogs/initial'); const INITIAL_DIALOG = 'initialDialog'; const START_INTENT = 'Start'; then in the bot's class: this.dialogs.add( new InitialDialog( INITIAL_DIALOG, this.userProfileAccessor, botConfig ) ); and finally, if the "Start intent" is detected we start the dialog: await dc