botframework

How to work properly with advanced Adaptive Cards?

余生颓废 提交于 2020-04-29 03:35:19
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to work properly with advanced Adaptive Cards?

我怕爱的太早我们不能终老 提交于 2020-04-29 03:34:46
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to work properly with advanced Adaptive Cards?

ぃ、小莉子 提交于 2020-04-29 03:33:15
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

[BotFramework]: How to fix:Welcome message is not getting displayed to the user in C# WebChatBot developed in V4 but displayed in Emulator?

江枫思渺然 提交于 2020-04-18 03:29:57
问题 <!DOCTYPE html> <html> <head> <title>Avanade D365 F&O Assets BOT</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For demonstration purposes, we are using development branch of Web Chat at "/master/webchat.js". When you are using Web Chat for production, you should use the latest stable at "/latest/webchat.js". Or locked down on a specific version "/4.1.0/webchat.js". --> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"><

[BotFramework]: How to fix:Welcome message is not getting displayed to the user in C# WebChatBot developed in V4 but displayed in Emulator?

戏子无情 提交于 2020-04-18 03:29:15
问题 <!DOCTYPE html> <html> <head> <title>Avanade D365 F&O Assets BOT</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For demonstration purposes, we are using development branch of Web Chat at "/master/webchat.js". When you are using Web Chat for production, you should use the latest stable at "/latest/webchat.js". Or locked down on a specific version "/4.1.0/webchat.js". --> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"><

Bot Framework REST API send proactive message to multiple users with one conversation ID

不羁岁月 提交于 2020-04-17 22:06:50
问题 I'm wondering if there is a way to send 1:1 message to users using only one conversation id? So instead of looping through each user and generating a conversation id, I'm trying to create a request to generate a conversation ID with multiple members. See payload below: POST /v3/conversations { "activity": { "type": "message", "channelId": "msteams", "text": "Testing" }, "bot": { "id": "215000000-00000-0000-00000", "name": "Test", "aadObjectId": null, "role": null }, "isGroup": false, "members

I get an error [OnTurnError]:Unknown Error on SendActivity of bot

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-17 20:42:09
问题 My bot integrated into microsoft teams ,gives out an error after SentActivity call in webapp based teams but works fine on Desktop Application of Teams. Code failing - await stepContext.context.sendActivity({ type: 'typing' }); The above logic only fails for web based teams and not on Desktop application. Any idea ,why that is? Also the code below works perfectly fine in both- await stepContext.context.sendActivity("Hello There"); 回答1: Is your Teams tenant within the Western European region?

Bot Framework API Create Conversation With Multiple Members

霸气de小男生 提交于 2020-04-17 20:37:30
问题 I'm trying to create a conversation with multiple members and generating a conversation id. My goal is to have the bot message each member listed in the "members" key one-by-one. It works exactly as it should when I only put one item in the "members" key and I am able to generate a conversation id. However, I'm getting an error when I put 2 or more items in the "members" key even though it's supposed to be an array of members. POST /v3/conversations { "activity": { "type": "message",

BotFramework v4: how to exchange informations with WebChat within ComponentDialog?

限于喜欢 提交于 2020-04-17 20:27:22
问题 I used BotFramework SDK v4 (.NET) and WebChat v4 (React minizable-web-chat) The context is in a ComponentDialog with WaterfallSteps: the bot is sending a ChoicePrompt "Would you like the bot to get your location ? YES/NO" If YES, the bot sends a "locationRequest" event WebChat receives the event and show a GetLocation button When user clicks on the button, it sends the geolocation to the bot and the dialog continue The ComponentDialog: public class FindNearestAgencyDialog : ComponentDialog {

Microsoft Teams botbuilder How to create conversation in another channel

被刻印的时光 ゝ 提交于 2020-04-11 12:19:07
问题 (For reference I have admin_consent for the organization with a auth scope of offline_access User.ReadWrite.All Group.ReadWrite.All AppCatalog.ReadWrite.All for my token that I use to interact with the Teams instance.) After installing the app via POST /teams/{id}/installedApps it sends an conversationUpdate event that I respond to and save the entire ConversationReference object. It has a lot of stuff I don't need but I'm not sure what is necessary. The immediate response goes to the General