microsoft / microsoft/CopilotStudioSamples
Swap citations sample missing clickable PDF links and limited to one SharePoint site
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:
- Copy the 'swap-citations.yml' code
- Go to your custom Copilot Studio agent with Generative Orchestration enabled.
- Upload an internal pdf document from a SharePoint site of around 7 MB to the knowledge source.
- Create a new topic named 'AI Response Generated' and paste the code from Step 1 in code editor.
- Update the variable "externalWebsiteURL" to reflect your internal SharePoint URL, including the directory that contains this document.
- Save the topic and test the solution.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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