Message Extension
10 TopicsAzure Bot Message Extension auth open url -> Something went wrong, please try again
I have a message extension bot setup where you have to authenticate before you can use it. This has always worked previously but since a few days ago, when I click the sign in button sent from the compose extension I just get Something went wrong, please try again. No pop up opens, no logs, no other error. This worked previously fine. I have the url that opens in the valid domains and this is what I return to the azure bot return { composeExtension: { type: 'auth', suggestedActions: { actions: [ { type: 'openUrl', value: ${signInUrl}, title: Sign In Required, }, ], }, }, };768Views0likes4Comments"Manifest parsing has failed" while running teams message extension locally.
Hi, I wanted to add "samplePrompts" property to my manifest json which requires manifest version v1.17. I've changed the schema and version from v1.16 to v1.17. Also removed "packageName" property from manifest json file as v1.17 is not supported the "packageName" property. After that, I tried to run the message extension locally however I am getting below error. When I clicked to "Copy error details to clipboard", it give me "packageName | Property "packageName" has not been defined and the schema does not allow additional properties." this error and unable to add message extension app. Please let me know how can I fix it.1.7KViews0likes6CommentsInserting the final response directly into the chat in a Teams Messaging extension
I am working on an action-based messaging extension app for teams. My action can be invoked from a message/compose/commandBox. After submitting the action, currently the adaptive card I am sending is getting inserted into the chat and the user must manually click on send. I want the message to be directly inserted into the chat. Microsoft documentation says, "If the message extension is invoked from the compose box or directly from a message, your web service can insert the final response directly into the channel or chat. In this case, the Adaptive Card comes from the bot, the bot updates it, and replies to the conversation thread if needed. You must add the bot object to the app manifest using the same ID and defining the appropriate scopes." But I have no idea how to do this. Yes, we will add the bot to manifest, what next? Currently, I am returning my adaptive card using the following code : async handleTeamsMessagingExtensionSubmitAction(context, action) { switch (action.commandId) { case "executeActions": return await executeActions(context, action); default: throw new Error("NotImplemented"); } } async function executeActions(context, action) { const data = action.data; const adaptiveCard = createAdaptiveCard(data); const attachment = { contentType: adaptiveCard.contentType, content: adaptiveCard.content, preview: adaptiveCard, }; return { composeExtension: { type: "result", attachmentLayout: "list", attachments: [attachment], } } }; Could someone please help how can I tweak the codes, to send messages into the chat directly? So that, the user should not have to click on send every time. I don't mind if the message comes from a bot, into the chat.318Views0likes0CommentsError with message extension on iOS only.
I used the message extension for Microsoft Teams to display a Hero Card in the input field. Only in the case of iOS, the error seems to be caused by a different definition of the JSON sent to the BOT. PC reaction Type = string Android reaction Type = string iOS reaction Type = array of string The following exception occurs. Newtonsoft.Json.JsonReaderException: 'Error reading string. Unexpected token: StartArray. Path 'messagePayload.reactions[0].reactionType'.' Is there any way to work around this bug?Solved1.7KViews0likes8CommentsMessage extension choiceset does not work on iOS App only
Hi, I'm an application developer for Teams Custom App. I have developed a Teams app with message extensions. Message extension "choiceset" does not work on iOS App. Please let me know how to resolve this. [Android App] drop-down list appears. [iOS App] drop-down list is gone...611Views0likes2CommentsMessage extension suggestion popup is missing action based extension
My app has a message extension with a popup to give a kudos. Until now it was always available in the suggestion list together with the normal commands of the bot. (see the screenshot with + Give a kudos). However a customer informed me, that she can't see this option any longer and I can confirm that it disappeared with the latest app release. What is the configuration to bring this back? I now tried every combination in message extension configuration but I am out of luck here.2.3KViews0likes10CommentslocalTimezone missing from Activity in iOS
The localTimezone field is missing from Activity in Bot when using our bot/app in iOS. Docs for reference: https://learn.microsoft.com/en-us/javascript/api/botframework-schema/activity?view=botbuilder-ts-latest#botframework-schema-activity-localtimezone Kindly advise if this is a bug or if not, where can we retrieve this information when missing? Thanks.1.8KViews0likes9CommentsHow do I get my teams bot to authenticate to a web service
I have a teams bot which I want to use as an interface for my service stack webservice however the token I have access to is not being accepted by the web service. I followed the "AAD SSO for tabs and message extension" tutorial to set up my Azure instance and get a basic bot up and running. When I modified the query handler to send a request to a web service with the token provided it is responding with a login page. This is the code that I added to the Simple Graph Client in a new method which passes in what the user types as query HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://<my website>/api/ws/v1/search?query=" + query); request.Headers.Add("Authorization", "Bearer " + _token); request.Method = "GET"; request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; using (System.Net.HttpWebResponse response = (HttpWebResponse)request.GetResponse()) using (Stream stream = response.GetResponseStream()) using (StreamReader reader = new StreamReader(stream)) { return reader.ReadToEnd(); } Do I need to make use of a shared certificate? or is there some additional configuration that I have missed which is necessary to make this situation work?3.2KViews0likes7CommentsTeams App - Get called when a user sends a message with a card created by search extension or unfurl
Hello! We have implemented a Teams App which has a search extension and an unfurl action. We do not have a conversational bot implemented. With both (search extension and unfurl action) we create a card which can be posted by the user in a message. What I want to know is that is there any possiblity to get called when the user posts that message containing our card? The purpose would be to track in which channels the content created by our Teams App would be posted to. And if that is possible, I want to know how to create a permanent/deep link to the channel the message was posted to. Tracking this when the content is created is not the correct place as the user may cancel posting the content, and in a search extension I could not find a way even to be called when the user picks one of the search results. Ideally whe would be called with the content of a message whenever a user who has installed our App posts a message to any channel, but this seems not to be possible for now, as I read there: https://github.com/microsoft/botframework-sdk/issues/5387 Regards, Dominik939Views0likes1Comment