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 / Power Automate / How to Trigger a Copil...
Power Automate
Suggested Answer

How to Trigger a Copilot Agent from Power Automate to Process PDFs and Generate CSV Output?

(0) ShareShare
ReportReport
Posted on by
 

Hello everyone,

 

I’m trying to build a workflow in Power Automate and I’d like to know the best way to integrate a Copilot agent into it.

 

My goal is the following:

 

  • when a file is dropped into a folder or a SharePoint library,

  • Power Automate automatically triggers,

  • then launches an AI / Copilot agent that reads and processes a PDF,

  • the agent returns structured text as output,

  • and finally I use Python to transform that text into a CSV file.



  •  
  •  
 

I would like to understand:

 

  1. what is the best way to trigger a Copilot agent from Power Automate after a file is added to SharePoint or a folder,

  2. whether the agent can directly read and extract information from a PDF inside the workflow,

  3. how to pass the agent’s output back into Power Automate in a clean text or JSON format,

  4. and what is the recommended way to connect that output to a Python step for CSV generation.



  5.  
  6.  
 

If anyone has already built something similar, I’d really appreciate:

 

  • an example architecture,

  • the right connectors/actions to use,

  • and any limitations or best practices to be aware of.



  •  
  •  
 

Thanks in advance for your help.

Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,507 on at
     
    You can achieve this with Power Automate using the SharePoint trigger along with  AI Builder (Document Processing), and built-in data operations, without requiring a separate Copilot agent.
     
    High-Level Flow Approach:
    1. Trigger: When a file is created (SharePoint / OneDrive)
    2. Get file content
    3. AI Builder: Extract information from documents (prebuilt or custom model for PDFs)
    4. Parse output (JSON) using the Parse JSON action
    5. Transform data using Select or Compose
    6. Create a CSV table (built-in action)
    7. Save the CSV back to SharePoint or OneDrive
     
    https://sharepointlessons.wordpress.com/2020/08/27/using-ai-builders-form-processing-model-and-flow-to-extract-data-from-pdf-files/
     
    Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
  • CU19050456-1 Profile Picture
    10 on at

    Hi @Vish WR,

    I am currently using a similar approach to address the invoice processing requirements. However, I am facing challenges with extraction accuracy, which is currently around 55% for the overall process in production.

    The primary challenge is that we receive multiple types of documents and a large variety of invoice formats (approximately 100+ different formats/vendors). Due to these layout variations, OCR extraction quality and field mapping consistency are significantly impacted.

    I would appreciate your suggestions or recommendations regarding:

    • Improving extraction accuracy in “Get text from document”
    • Best practices for handling multiple document formats
    • Any available documentation, benchmarks, or references related to AI Builder OCR accuracy
    • Recommended approaches for scalable invoice-to-JSON extraction

    Any guidance or production learnings would be very helpful.

    Thanks in advance.

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 > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard