Chat
580 TopicsNeed help intercepting outgoing messages and accessing chat history in Teams bot (python)
Hi everyone, I’m relatively new to programming and have been experimenting with the Teams AI Library in Python. I’ve created a basic bot application using the Teams Toolkit with the Custom Engine Agent template. So far, so good, but I’m stuck on two specific tasks and would appreciate some guidance. Here’s what I’m trying to achieve: Intercept outgoing messages before they are sent: I’d like to capture and potentially modify messages just before they are sent out by the bot. Access the conversation history: I want to retrieve the chat history for the current conversation. I’m wondering if there’s a simple way to do this without overhauling the existing logic. Specifically: Can I use a decorator in bot.py to intercept outgoing messages without disrupting the rest of the bot’s functionality? Is there an even simpler solution that I might be missing? TL;DR: New to programming, using Teams AI Library in Python with a basic bot. Need to: Intercept outgoing messages before they’re sent. Access conversation history. Is a decorator in bot.py the way to go, or is there a simpler solution? Thanks! Looking forward to your suggestions!44Views0likes3CommentsCSS Properties being stripped from Teams Chat messages from Bot
Hi Team, We've noticed that certain CSS properties are no longer appearing in HTML messages when sent to Teams Chat. Previously, our bot styled messages using display and border properties, but now these properties are missing from the HTML when we inspect the page. Steps to Reproduce: Start the Echo bot from the sample templates (I used Teams Toolkit to deploy it to Teams or run it in the Test tool). In the TeamsBot.ts file, modify the onMessage function by replacing await context.sendActivity(...) with the following code. This example adds styling to an echo message. const a: Partial<Activity> = { text: `<span style="display: block; color: red; border-radius: 4px; padding: 4px; border: 1px solid red; ">Echoo:</span> <span style="display: block;">${txt}</span>`, textFormat: TextFormatTypes.Xml }; await context.sendActivity(a); Note: I also tried sending the HTML directly with context.sendActivity(...) without setting the textFormat property in the Activity, and observed the same result. Run the bot in the Test tool and Teams to compare behavior. Observed behavior: In the Test tool: All styles are applied as expected. In Teams: Only the color property is applied, while display, padding, and border properties are ignored (stripped out of the HTML). Here’s an example of the HTML output in Teams: <div dir="auto" id="content-1730973548675" aria-label="Echoo: test styles properties" class="fui-Primitive ___16zla5h f1oy3dpc fqtknz5 fyvcxda"> <span style="color: red;">Echoo:</span> <span>test styles properties</span> </div> Could you provide insights on whether this change is intended, and if there are any workarounds for preserving these CSS properties in Teams messages? Thank you!481Views11likes3CommentsSeeking Best Practices for Performance Testing Bots in Microsoft Teams
Teams Meeting Bot This bot is automatically installed in all scheduled meetings across the organization. It interacts with the Microsoft Graph API via the 'api/messages' endpoint in the Bot Framework to retrieve meeting transcripts. These transcripts are then processed by an LLM model to generate a summarized version of the meeting. Chatbot This is a personal Teams chatbot built using the Bot Framework. It streams real-time responses from an LLM model based on user queries. We are planning a performance test for these bots. What would be the standard procedure to achieve this? Looking forward to your insights.48Views0likes2CommentsIssue with Bot builder Activity Handler class
Hi all, I have developed a Teams meeting app using the botbuilder library which gets automatically added/installed to a scheduled meeting. The automatic installation of the app to the meeting is handled by a setup policy in the Teams Admin Center. I use the on_installation_update_add() from the Activity handler class to track the installation of the app to meetings. I have recently encountered an issue where the app is getting added multiple times to the same meeting. When I check for the logs, it looks like on_installation_update_add is called multiple times which never happened before. Can anyone help with this issue I am facing?50Views0likes2CommentsHow to forward an adaptive card sent from teams bot
Is there a way to enable forwarding an adaptive card sent from MS teams bot, currently the card is being sent to user using bot framework api. But the user is unable to forward the same adaptive card to other users or channels.36Views0likes1CommentIssue with Bot builder ActivityHandler Class
Hi everyone, I built a Teams app using the botbuilder library. This app gets installed automatically to scheduled meetings using the setup Policy on the Teams admin center. I use "on_installation_update_add" function from the Activity Handler class which tracks the installation of an app to a meeting. I have recently encountered a weird issue which never happened before where the app is getting added to the same meeting multiple times. The "on_installation_update_add" function was called 5 times for the same meeting. Can anyone help with this issue please?23Views0likes1Commentcall details with devce info and participant join,leave time
i am working on teams integration project when i run grap api it does not show data for device and participant timing details graph api for extacting data for call including { "call_id": "004998be-da70-40f6-999a-3c84484c98b1", "start_date_time": "2024-12-17T11:53:14.9897859Z", "end_date_time": "2024-12-17T12:16:55.6045446Z", "participants": [ { "participant_name": "Surbhi Yadav", "join_time": "Unknown", "leave_time": "Unknown" },112Views0likes6CommentsCustom app deeplink to the meeting sidepanel is broken
Add any custom app to a meeting. You will see "I added a tab at the top of this chat. Check it out!" message in the meeting chat along with the clickable deep-link card. Upon clicking this card it should take you to the respective app. Instead, it won't do anything. Previously it was working fine with older versions of new teams. Similarly, The following deeplink was working fine to take the user to meeting sidepanel. It is not working now. I am suspecting that if the above issue is fixed, this will work fine. My deeplink is : https://teams.microsoft.com/l/entity/ENTITY_ID/sidepanel?weburl=&context={"chatId":"19:meeting_MWJmNmMzN2MtNjU2Yi00YWZmLTk5ZTUtZmFiNTYwMTRlY2Zh@thread.v2","contextType":"chat"}&openInMeeting=true; Can anyone suggest on this please?69Views0likes2CommentsEnabling a custom teams app to work in only in private chat
Hi, I have a use case where I created a custom teams application to give some feedback to the employees based on their performance. The user types in a command using @ and it opens up the bot. I want to enable this application to run only in private one on one chat with the employees. I tried to change the scope in manifest file to "personal" for achieving this, but I believe it makes the application for the personal use only. How can I make it available in private chats only?59Views0likes1Comment