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 / SharePoint "Compare Fi...
Copilot Studio
Unanswered

SharePoint "Compare Files with AI" be invoked from Copilot Studio or Power Automate

(0) ShareShare
ReportReport
Posted on by 5

"Compare Files with AI" 

The feature works well interactively from the SharePoint document library and returns an AI-generated comparison.

What I am trying to determine is whether this capability is available programmatically.

My target architecture is:

User uploads two documents
→ Copilot Studio agent
→ SharePoint
→ Invoke SharePoint AI Compare Files
→ Receive comparison result
→ Agent formats and presents the result

Questions:

  1. Is the SharePoint "Compare Files with AI" capability exposed through:
    • Microsoft Graph API?
    • Power Automate action?
    • SharePoint REST API?
    • Copilot Studio tool/action?
    • Any other backend endpoint?
  2. Has anyone successfully invoked this comparison capability from:
    • Copilot Studio
    • Power Automate
    • Azure Function
    • Custom application
  3. If this is currently a UI-only Copilot feature, is there any published roadmap for backend/API access?
  4. If backend access is not available, what architecture are people using to replicate the same comparison capability for uploaded SharePoint documents?

I would appreciate any documentation, implementation examples, or confirmation from anyone who has successfully automated this feature.

Thanks.

I have the same question (0)
  • Nivedipa-MSFT Profile Picture
    Microsoft Employee on at
    Hello 

    "Compare Files with AI" is a UI-only Copilot feature in SharePoint. It is not exposed through any public Graph API, SharePoint REST endpoint, Power Automate action, or Copilot Studio tool, and it is not on the public roadmap.

    1. Available through Graph / SharePoint REST / Power Automate / Copilot Studio / any backend? No on all five.
    2. Has anyone successfully called it from Copilot Studio / Power Automate / Azure Function / custom app? No — there is no endpoint to call.
    3. Is there a published roadmap for API access? None. File on the M365 feedback portal if you want it tracked.

    Replica architecture (what teams actually ship):

    1. The agent receives the two file URLs/uploads.
    2. It fetches both through Graph: GET /sites/{siteId}/drive/items/{itemId}/content.
    3. Extract clean text — Azure AI Document Intelligence (read/layout model) for PDFs; native parsers for DOCX/XLSX/PPTX.
    4. Run a structural diff first (e.g., redlines lib or git-diff on extracted markdown) to produce deterministic add/delete/modify hunks.
    5. Send the hunks to an LLM (Azure OpenAI or AI Builder Prompt) and ask it only to explain the semantic significance — that cuts hallucination and token cost compared with asking the LLM to find diffs from scratch.
    6. Return structured JSON: { summary, additions[], deletions[], modifications[], semantic_differences[] }.
    7. Display it in the agent as an Adaptive Card / markdown table.
    If you found the information above helpful, I would appreciate it if you could share your feedback.|
    Your feedback is important to us. Please rate us:
    🤩 Excellent 🙂 Good 😐 Average 🙁 Needs Improvement 😠 Poor

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 261

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 214 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 196

Last 30 days Overall leaderboard