web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to make Copilot St...
Copilot Studio
Suggested Answer

How to make Copilot Studio agent reference SharePoint anchor links instead of base page?

(1) ShareShare
ReportReport
Posted on by 6

I'm building a low-code agent using Microsoft Copilot Studio under a licensed setup. The agent uses a SharePoint page as its knowledge source. When users ask questions, the agent responds accurately and includes reference links. However, clicking these links currently redirects users to the top of the SharePoint page, rather than to the specific section containing the relevant information.

The expected behaviour is for the link to navigate directly to the corresponding section of the page, allowing users to view the answer without needing to scroll.


For example, for the question “What are compliance-with-standards?”, the agent replies with:
https://sharepoint.com/sites/Sample/SitePages/What-is-the-Acquisition-Manual-.aspx

 

From the agent configuration perspective in Microsoft Copilot Studio, how can we enable responses to include section-specific anchor links when referencing a SharePoint page?The goal is for users to be directed straight to the relevant section of the page, rather than landing at the top. Any guidance, configuration steps, or examples would be greatly appreciated!

SharePoint supports anchor links.

 


 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    Here are the steps to setup and test via CP which do work :-)
     
    How to enable section-specific links
    To achieve the behavior you want, you need two things:

    Anchor IDs in SharePoint
    SharePoint automatically creates anchor IDs for headings (H1, H2, etc.) in modern pages.
    The anchor format is usually:
    #<heading-text-lowercase-with-hyphens>
     
    Example:
    Heading: 10. Compliance with Standards
    Anchor: #10.-compliance-with-standards
     
    Configure Copilot Studio to include anchors in responses
     
    In Copilot Studio, when you define your knowledge source (SharePoint page), the AI uses the page content but does not inherently know which section the answer came from.
     
    To include anchors:
    Enable “Show citations” in the Copilot Studio settings for your knowledge source.
    Then, customize the citation template in your response using Adaptive Cards or Markdown to append the anchor ID.
     
     
    Please directly let me know if you have any issues as this works well but i haven't seen your documents and how your anchors are done
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • SE-02070821-0 Profile Picture
    6 on at
    Thanks, Michael Gernaey.  In SharePoint portal, Anchor IDs are available, I am trying to follow your instruction to enable the below settings in Microsoft Co-pilot studio licenced version but this option is not shown for me.
     
    To include anchors:
    Enable “Show citations” in the Copilot Studio settings for your knowledge source.
    Then, customize the citation template in your response using Adaptive Cards or Markdown to append the anchor ID.
     
    I have taken screen shot and attached for your reference.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 671

#2
Vish WR Profile Picture

Vish WR 266

#3
Haque Profile Picture

Haque 265

Last 30 days Overall leaderboard