botbuilder-python icon indicating copy to clipboard operation
botbuilder-python copied to clipboard

[Bug] Activities don't end up in M365 Copilot (Custom Engine Agents)

Open iMicknl opened this issue 10 months ago • 7 comments

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:

  1. Create a Bot Service bot with botbuilder-python
  2. Declare a Custom Engine agent (https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/overview-custom-engine-agent) in the manifest
  3. Test your bot in Teams

Expected behavior

Activities ending up in my M365 Custom Engine Agent.

Screenshots

Image

Additional context

You can ping me internally (mivleesh) for more context.

iMicknl avatar Mar 10 '25 22:03 iMicknl

@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 avatar Mar 11 '25 13:03 tracyboehrer

@tracyboehrer the issue is actually in the botbuilder-python implementation. All my repro has been done without using teams-ai library.

iMicknl avatar Mar 11 '25 13:03 iMicknl

Is the Python bot indicating it received a message? i.e., Is anything even making it to the bot?

tracyboehrer avatar Mar 11 '25 14:03 tracyboehrer

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.

iMicknl avatar Mar 11 '25 14:03 iMicknl

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:

Image

Internal tenant: Image

iMicknl avatar Mar 11 '25 14:03 iMicknl

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?

frankqianms avatar Apr 08 '25 03:04 frankqianms

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.

tracyboehrer avatar Apr 09 '25 17:04 tracyboehrer