botframework

Adding Break Lines to Bot Framework while using JavaScript

ぃ、小莉子 提交于 2020-08-03 05:18:29
问题 I use Microsoft bot Framework and deployed it to Web Chat, my bot was printing the messages in a correct format as wanted with Break Lines "\n\n", then I use the following tutorial https://github.com/microsoft/BotFramework-WebChat/blob/master/README.md to integrate JavaScript with my bot to remove the attachment icon (as shown in the figure below) After using JavaScript and removing the attachment icon I found that Break Lines (\n) was stopped working, Does anyone know what did happen? The

How can I access an entities score information and or existence from the luis.ai RecognizerAsync method which returns the RecognizerResult

青春壹個敷衍的年華 提交于 2020-07-22 10:04:50
问题 The sample bot built through azure has a basis from this documentation https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-luis?view=azure-bot-service-4.0&tabs=csharp I am trying to refactor parts of the functionality of the dialog and I need access to parts of the json that I assume should come back from the luis call. However, when I try to access from $instance I get an error that I cannot access child elements of the response. Here is an exmaple of the json: + Entities

Does the Bot Framework support Facebook Messenger's Button Template?

别来无恙 提交于 2020-07-22 06:12:11
问题 Facebook messenger's APIs support a message type called the "Button Template". This card type allows sending a message with text, then a list of buttons with different actions, as in the image below (from Facebook's documentation): This template similar to the Generic template, which is what is produced by the Bot Framework's Hero cards, but is distinct in that it does not require a "Header" on the card, which is required by the Generic template. I'm trying to figure out how to render this

onTeamsMemberAddedEvent() not working for personal scope

孤街醉人 提交于 2020-07-22 05:21:32
问题 I was using Microsoft graph API for installing the bot for a user https://graph.microsoft.com/beta/users/{userID}/teamwork/installedApps On installing the bot, onTeamsMemberAddedEvent() was called for the personal scope as well as for teams scope and through that, I was sending the welcome message to the users. Apart from graph api, I was also installing the bot directly and the function was getting revoked. But now, this event is not getting called and I am unable to get conversationId from

Service URL for Notification-Only Teams Bot

我与影子孤独终老i 提交于 2020-07-22 05:19:59
问题 I am working on a notification only teams bot limited to members of a single azure ad tenant. Based on this documentation - https://docs.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bots-context - the serviceUrl could change. Since the bot would hardly ever receive a request, how do I manage the serviceUrl? What could cause the serviceUrl to change? 回答1: Service URL are unique to region, not tenant. You can cache the team and user details when bot is added to a team in

Service URL for Notification-Only Teams Bot

最后都变了- 提交于 2020-07-22 05:19:38
问题 I am working on a notification only teams bot limited to members of a single azure ad tenant. Based on this documentation - https://docs.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bots-context - the serviceUrl could change. Since the bot would hardly ever receive a request, how do I manage the serviceUrl? What could cause the serviceUrl to change? 回答1: Service URL are unique to region, not tenant. You can cache the team and user details when bot is added to a team in

How to convert from xml to json within Adaptive dialog HttpRequest?

懵懂的女人 提交于 2020-07-21 08:05:05
问题 I am new to Bot Framework and C#. I am building a chatbot using Adaptive Dialog with the Core Flight Booking Template (adaptive-dialog/03.core-bot). I want to make an API call to get the weather information. This OpenWeather API can return data in JSON, XML, or HTML format. When the response is in JSON format, it is easy to access the key-value pairs. But when the response is in XML format, everything will be converted into a string and saved as 'content' in the response, I have to convert it

Multiple waterfall conversation in Microsoft Bot framework

前提是你 提交于 2020-07-15 09:41:22
问题 Is it possible to have multiple waterfall conversation in Microsoft Bot framework? I am having a Rootdialog (derived from ComponentDialog (WaterfallDialog)), which accepts users's initial input. I want to use this dialogue to initiate a login process to an external service. Once this login is successful, I would like to initiate a specific waterfall dialogue based on users initial input. For example, User says Flow1 --> Start Root dialogue (For login process) --> Start Flow1 (Waterfall)

Multiple waterfall conversation in Microsoft Bot framework

六眼飞鱼酱① 提交于 2020-07-15 09:39:12
问题 Is it possible to have multiple waterfall conversation in Microsoft Bot framework? I am having a Rootdialog (derived from ComponentDialog (WaterfallDialog)), which accepts users's initial input. I want to use this dialogue to initiate a login process to an external service. Once this login is successful, I would like to initiate a specific waterfall dialogue based on users initial input. For example, User says Flow1 --> Start Root dialogue (For login process) --> Start Flow1 (Waterfall)

How to get the tenant name when integrating with Microsoft Teams

半腔热情 提交于 2020-07-10 10:27:10
问题 I have created a Microsoft Teams bot that can create/update conversations and receives all kinds of events to an endpoint (user joined team, ...). All I see in the events is a tenant id. For teams, i get an id and sometimes a name which is great. to create/update conversations I use this flow: Get a token from https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token POST to a channel: ${serviceUrl}v3/conversations/${conversationId}/activities My question is, how can I get the name