microsoft / microsoft/CopilotStudioSamples

Swap citations sample missing clickable PDF links and limited to one SharePoint site

Open
#364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
797
Forks
491
PR merge metrics
No merged PRs in 30d

Description

What sample tool are you using?
'OnGeneratedResponse' – AI response generated citation swap

Describe the bug
The sample does not generate clickable citations that link directly to specific page numbers in PDF documents. Additionally, the 'swap-citations.yml' configuration appears to be limited to a single SharePoint site, which restricts scalability across multiple sites.

To Reproduce
Steps to reproduce the behavior:

  1. Copy the 'swap-citations.yml' code
  2. Go to your custom Copilot Studio agent with Generative Orchestration enabled.
  3. Upload an internal pdf document from a SharePoint site of around 7 MB to the knowledge source.
  4. Create a new topic named 'AI Response Generated' and paste the code from Step 1 in code editor.
  5. Update the variable "externalWebsiteURL" to reflect your internal SharePoint URL, including the directory that contains this document.
  6. Save the topic and test the solution.
  7. The responses are generated with clickable citations that don't point to the specific page.

Expected behavior
Citations should be clickable and link directly to the referenced page numbers in PDF documents. The YAML configuration should support multiple SharePoint sites to enable broader document coverage.

Additional context
This enhancement would significantly improve traceability and usability of AI-generated responses in enterprise environments where documents are distributed across multiple SharePoint sites.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the swap-citations.yml sample used by the OnGeneratedResponse topic and reproduce the behavior with a SharePoint PDF as described. Check how the externalWebsiteURL is used and how citations are formed across sites. Done means PDF citations link to their referenced pages and the YAML configuration supports multiple SharePoint sites.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
ai, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.