Building and customizing solutions using Microsoft 365 Copilot APIs and tools
URLs can be suppressed or altered in Copilot responses depending on how the agent and channel render the output.
From similar behavior with declarative agents and API plugins in Microsoft 365 Copilot, the main mitigation is to ensure that links are formatted explicitly as hyperlinks in the agent’s response content, rather than relying on implicit URL detection.
To improve initial responses so hyperlinks appear consistently:
- Format links explicitly as clickable hyperlinks
Ensure the agent (or plugin) returns URLs using a clear hyperlink format, such as Markdown-style links (for example,[Document title](https://contoso.com/doc)), instead of plain text URLs. This reduces the chance that the channel’s rendering or post-processing will hide or strip the URL in the first turn. - Verify the agent is correctly published and used in the intended channel
If the agent is being invoked via Microsoft 365 Copilot (for example, with @mention), confirm that the latest version of the agent is published and that the same configuration is used in both the “initial query” scenario and the “follow‑up query” scenario. Inconsistent publishing or channel assignment can lead to different formatting behavior between turns. - Use developer diagnostics to confirm URLs are present in the raw response
Enable the available developer or diagnostic view for the agent/channel and check whether the URLs are present in the raw agent output for the initial query. If the URLs are present in the raw output but missing in the rendered chat, the issue is with the channel’s rendering/formatting, and explicit hyperlink formatting (step 1) is the primary fix.
If, after ensuring explicit hyperlink formatting and correct publishing, URLs still appear only on repeated queries, review any custom logic or post-processing that might alter or filter the first response differently from subsequent turns.
References: