[Bug] Activities don't end up in M365 Copilot (Custom Engine Agents)
Version
4.16.2
Describe the bug
When leveraging the botbuilder-python package and connected to Teams, no messages are shown in Teams. Messages from Teams get delivered in the botbuilder implementation, but no messages are broadcasted from the bot.
Related issue: https://github.com/microsoft/botbuilder-python/issues/2210. When I fix this issue by commenting out this code, I end up with the next issue.
To Reproduce
Steps to reproduce the behavior:
- Create a Bot Service bot with
botbuilder-python - Declare a Custom Engine agent (https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/overview-custom-engine-agent) in the manifest
- Test your bot in Teams
Expected behavior
Activities ending up in my M365 Custom Engine Agent.
Screenshots
Additional context
You can ping me internally (mivleesh) for more context.
@iMicknl Since you mention the other issue, I assume this is also in relation to Teams AI SDK and should be directed to the repo. If I could, I would transfer the issue. But that isn't possible since that is a different group.
@tracyboehrer the issue is actually in the botbuilder-python implementation. All my repro has been done without using teams-ai library.
Is the Python bot indicating it received a message? i.e., Is anything even making it to the bot?
Yes, no problem with incoming activities. It is mainly an issue with the activities that are being sent from the botbuilder-python sdk. They won't end-up in the Custom Engine agent. The same code does work for 'regular' Teams bots.
If it helps I can work on a simple repro script.
Regarding this specific issue of activities not being received in M365 Copilot, this could be an service issue (on the M365 Copilot) side as well. In my attempts to repro today, I can only repro this issue on an external test tenant (public ring). I cannot reproduce this on an internal tenant (early ring).
External tenant:
Internal tenant:
Hi @tracyboehrer . Any updates on this issue? And do you have a release plan for this bug fix: https://github.com/microsoft/botbuilder-python/issues/2210?
There is an ongoing discussion around all this. This arrangement is using Activity.ChannelId in an unexpected way, and there are numerous issues around this.