Copilot Studio agent not display hyperlinks with initial query

Katie Forsyth 40 Reputation points
2026-06-30T14:40:10.14+00:00

RESOLUTION: Switched from GPT AI model to Claude Sonnet to resolve the issue.

My studio agent doesn't display hyperlinks to documents when I ask an initial query but when I ask the same question repeated, hyperlinks show up.
How do I fix this so that hyperlinks display right away with when the initial query is made.
Follow up clarification: Initial response does not provide any links at all when responding to initial query but asking the same question in the same window without refreshing the page or closing and reopening the agent, links show up in the responses.
here's an example from initial response
User's image

example after asking the same question a second time where hyperlinks show up
User's image

Microsoft Copilot | Microsoft 365 Copilot | Development

1 answer

Sort by: Newest
  1. AI answer

    2026-06-30T14:40:23.5966667+00:00

    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:

    1. 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.
    2. 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.
    3. 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:

    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.