Azure foundry agent responds "Text not extracted" in Copilot 365

mazen-0952 5 Reputation points
2026-04-24T10:03:24.7366667+00:00

Hi!

I have created an agent in azure foundry with tools. The agent works fine in Foundry, and also in published channels. The only issue is the final response to the user. The current flow is:

  1. User sends a message in teams/copilot 365
  2. Agent uses tools to perform actions
  3. Agent responds to the user

The issue is that the response comes out as "Text not extracted" every time in the chat. I've verified in foundry logs that the agent responds properly and that the tool calls have been completed, but there seems to be some issue getting that response to the user(That probably happens either in the Azure bot or the 365 Copilot app).

The azure bot was configured using the menu in Foundry, and the agent is instructed to give a simple response(Which it does in plain text).

As stated, the most important thing is that the agent does it's job which it does, but it's annoying for users that they don't get a proper response.

Microsoft Copilot | Microsoft 365 Copilot | Development

1 answer

Sort by: Oldest
  1. AI answer

    2026-04-24T10:03:43.1966667+00:00

    “Text not extracted” in Microsoft 365 Copilot when using a Foundry/Agents-based bot is consistent with a rendering/feature limitation in the Microsoft 365 Copilot surface rather than a problem with the agent’s internal reasoning or tools.

    From the provided information:

    • The agent runs correctly in Foundry and in other published channels.
    • Tool calls complete successfully and logs show a proper response.
    • The problem appears only in the Microsoft 365 Copilot/Teams Copilot experience, which uses the Bot Service integration created from Foundry.

    Microsoft 365 Copilot has several limitations for custom/agent-based experiences that affect how responses are surfaced:

    • For agents published to Microsoft 365, streaming responses and citations are not supported, and file uploads/image generation do not work in that surface.
    • For custom engine agents in Microsoft 365 Copilot, HTML in response messages is not supported, messages are immutable, and rich cards and several Adaptive Card elements are not supported.

    When a bot/agent returns content that relies on unsupported message formats (for example, HTML formatting, unsupported rich cards, or unsupported Adaptive Card elements), the Copilot host can fail to render the content correctly. In such cases, the host may show a placeholder instead of the actual text, which matches the “Text not extracted” symptom.

    To mitigate in this scenario:

    1. Ensure the agent’s final response is plain text only when targeting Microsoft 365 Copilot. Avoid HTML, rich cards, or Adaptive Card elements that are listed as unsupported.
    2. If using tools that return structured or card-based payloads, have the agent transform those tool outputs into a simple textual summary before returning the final message.
    3. Avoid relying on streaming or citations in the published agent, since these are not supported for agents in Microsoft 365.
    4. If the agent is implemented as a custom engine agent, design responses to align with the Microsoft 365 Copilot limitations (no HTML, no unsupported rich card types, no dynamic Adaptive Card refresh, etc.).

    Because the agent already works correctly in Foundry and other channels, the core logic and tools do not need changes; the adjustment should focus on simplifying the response format so that it conforms to what Microsoft 365 Copilot supports.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.