Crear un Agente Copilot de Microsoft para Automatizar la Extracción de Datos Financieros
've been building Copilot Studio workflows for enterprises for years. And the conversation I have most often is not about features or pricing. It's about awareness.
Finance teams are buying third-party AI tools while sitting on top of everything they need. It's already licensed. It's already in the tenant. Nobody opened the tab.
That's what I want to fix in this article. I'll show you exactly what's possible, how it's built, and what it costs. This will be helpful especially if you/your team/your company already have a paid enterprise subscription.
Date: Wednesday, 11 March 2026
Topic: (Advanced) Build a Microsoft Copilot Agent to Automate Financial Data Extraction
Speaker: @Zsolt Kovacs
Zsolt Kovacs is the Founder of oartconsult, a Microsoft Copilot Studio implementation consultancy based in Budapest. He helps IT leaders and finance teams build AI-powered business workflows on the Microsoft 365 stack. Connect with him on LinkedIn.
Here is what we covered in the masterclass:
Before You Start: Prerequisites Checklist
1: Know What License You're Working With
2: Power Automate vs. Copilot Studio
3: Building a Real Agent (Email-to-Excel Expense Extractor)
4: Four Advanced Use Cases I Build For Finance Teams
5: The Human-in-the-Loop Strategy
Before You Deploy: Governance & Security Essentials
Q&A
Official Documentation — Verify Before You Build
My Step-by-Step Video Tutorials
Slides and Materials from the Presentation
Copilot Masterclass Presentation.pdf⚠️ Important Disclaimer: Pricing, licensing, and product features in this article are verified against official Microsoft documentation as of March 2026. Microsoft updates its licensing structure frequently. Always verify current pricing in your Microsoft 365 Admin Center or with your Microsoft reseller before making purchasing decisions. Prices shown are USD and may vary by region, currency, and enterprise agreement.
Before You Start: Prerequisites Checklist
Before you build anything, check these with your IT admin. I see projects stall for weeks because someone skipped this step.
Eligible M365 Plan: You need Business Basic, Business Standard, Business Premium, E3, or E5. Copilot is an add-on, it doesn't come with a base M365 subscription.
Admin Access: Your admin needs to assign the Copilot Studio author license (it's free) and enable Copilot Studio in the Power Platform admin center.
SharePoint / OneDrive Active: Required for storing Excel files and triggering email-to-data workflows. Confirm your SharePoint environment is live and accessible.
Power Automate Access: Cloud flow creation must be enabled in your tenant. This is the trigger layer for everything we're building.
DLP Policy Review: Ask your admin whether Data Loss Prevention policies in your tenant block the Outlook or SharePoint connectors. I've seen this kill a proof-of-concept on day one.
Environment Strategy: Build in a development environment, not directly in production. Microsoft recommends this. I recommend it more strongly.
💡 Quick Check: Go to office.com and look for the Copilot icon. If it's there, your license is likely active. Then go to copilotstudio.microsoft.com, if you can create a new agent, you're ready to build.
1: Know What License You're Working With
This is where most of the confusion starts. Let me give you the clean picture as of March 2026.
Microsoft 365 Copilot Chat — FREE (included with M365 + Entra ID)
Web-grounded enterprise AI chat
In-app sidebars in Word, Excel, Outlook, PowerPoint, OneNote
Basic agent creation in office.com and SharePoint only
Microsoft 365 Copilot Business — From $18/user/month ✦
Everything in Copilot Chat, plus work-grounded chat
Full Copilot Studio access for internal agents
Available for organizations with ≤300 users only
Microsoft 365 Copilot (Enterprise) — $30/user/month (annual)
Everything in Copilot Business
Full Copilot Studio for both internal and external-facing agents
No user cap
✦ The $18/user/month rate is promotional, valid until June 30, 2026 for new customers with ≤300 users. Standard enterprise pricing is $30/user/month. Check your admin center for current pricing.
Standalone Copilot Studio (needed for external channels or non-licensed end users):
Prepaid Pack: 25,000 Copilot Credits for $200/month per tenant
Pay-as-you-go: $0.01 per Copilot Credit, billed via Azure at end of month
Author License: Free — assign in Microsoft Admin Center; an active tenant credit pack is required
⚠️ On Billing — I Need to Be Precise Here
I said "no token billing" in the session when referring to standard Copilot Studio flows. That needs clarification. Microsoft changed the billing currency from "messages" to Copilot Credits on September 1, 2025, and the picture is more nuanced than a blanket statement.
Here's what's actually true:
M365 Copilot licensed users interacting with agents inside M365 (Teams, SharePoint, Copilot Chat): Many interactions are included in the license. They don't consume additional credits.
Autonomous background agents — like the email-triggered flow I demoed: These DO consume Copilot Credits, even for M365 Copilot licensed users. Every action step and AI prompt call costs credits.
AI processing steps (OCR, prompt extraction): Each model call is billed. A 3-page document processed through OCR consumes approximately 24 Copilot Credits. At $0.01/credit pay-as-you-go, that's $0.24 per invoice. At 500 invoices per month, you're looking at roughly $120/month in credits — very manageable, but not zero.
Before you go to production, run your expected volume through Microsoft's Agent Usage Estimator. Don't skip this step.
2: Power Automate vs. Copilot Studio
I get this question constantly. Here's how I think about it:
Power Automate is for deterministic, rule-based automation. Trigger fires → steps execute → done. It doesn't reason. It doesn't ask questions. It just does exactly what you told it to do, every time, in the same order. That predictability is a feature, not a limitation.
Copilot Studio is for AI agents that need to reason, decide, and act. They can hold a conversation, query knowledge sources, handle ambiguous inputs, and call Power Automate flows as tools in the background.
The combination is where the real value is. Power Automate handles the trigger and the deterministic steps. Copilot Studio handles everything that requires intelligence.
I use Power Automate as the entry point for almost every finance automation I build and Copilot Studio as the brain behind it.
3: Building a Real Agent (Email-to-Excel Expense Extractor)
Let me walk you through the exact build I demoed. A colleague emails the finance inbox about a business dinner with date, location, attendees, itemized costs. The agent reads it and fills the Excel register. No human in the loop for data entry.
The flow at a glance: 01 Collect → Incoming Email Message ID 02 Get → Full Email Content via Graph API 03 Extract → Structured Data via AI Prompt 04 Fill → Excel Table in SharePoint
Step 1: Create a Power Automate Cloud Flow
Go to make.powerautomate.com. Create a new Automated cloud flow. Use the trigger "When a new email arrives in a shared mailbox (V3)" and point it at your finance inbox. The flow captures the Message ID of the incoming email as a variable. That's all Power Automate does at this stage, it detects the email and hands off the ID.
Step 2: Add the Agent Handoff Action
Add the action "Send a prompt to the specified Copilot for processing."
Map the Message ID as the input. Control now passes from Power Automate to your Copilot Studio agent.
Step 3: Create the Agent in Copilot Studio
Go to copilotstudio.microsoft.com and create a new Agent. In the Agent Instructions field, write:
By any input always start the topic email_data_registry.This forces every trigger to route directly to your automation topic. Without this, the agent might try to have a general conversation instead of running your process.
Step 4: Build the Email Data Registry Topic
Create a Topic named "email_data_registry." Add a "Set variable value" action to capture the Message ID.
Then add "Get email (V2)" using the Graph API connector, this pulls the full email: sender, subject, body, and timestamp.
Step 5: Add the AI Prompt Extraction Action
Add a Prompt action. This is where the AI does the work. Configure the prompt, see below:
🤖 My Extraction Prompt
You are a financial data extraction assistant. Extract all relevant expense data from the following email body. Return structured fields matching these exact columns: Event Date, Number of Attendees, Location, Food Cost, Service Cost, Total Amount, Attendee Names. For each field, return only the extracted value. If a field is not present in the email, return null. Do not add commentary or explanation, only return the structured data.Map the output to a DataSets variable, this becomes your list of structured records.
Step 6: Loop and Write to Excel
Add a "Loop through a list – DataSets" action. Inside the loop, add "Add a row into a table" targeting your online Excel file in SharePoint. Map each extracted field to its column. The loop handles multiple expense items in a single email automatically.
Step 7: Publish
Hit Publish.
The agent does nothing until you publish, this is a step people miss.
After publishing, deploy to your channel (Teams, SharePoint, or leave it running silently as a background automation). Monitor everything in the Copilot Studio Activity tab and Power Automate Run History.
💡 Reusable Tools: I build each tool: the Excel write action, the email fetch, the extraction prompt, with dynamic inputs so they can be reused across multiple agents. Build once, wire everywhere. I maintain a library of shared tools in a dedicated environment and pull from it for every new project.
💡 Sharing Agents: Export your agent as a Solution ZIP from the Copilot Studio Solutions panel. The recipient imports it, re-maps their own connections (their Outlook account, their SharePoint library) and it runs. Every connector must be re-authorised by the receiving account. Think of it as the Microsoft version of an N8N JSON export.
4: Four Advanced Use Cases I Build For Finance Teams
Once you understand the email-to-Excel pattern, the architecture is reusable. Here are the four agent types I build most often for finance teams.
Use Case 1: AI Email Invoice Processor with OCR
Invoice arrives as PDF attachment → agent moves it to a monitored folder → OCR extracts text and layout → AI validates and writes to the register.
Step 1 — Capture Invoice Email: Power Automate triggers on new emails in a dedicated "Invoices" Outlook folder. I also allow team members to manually drag emails into that folder — simple drop-and-forget routing that needs zero training.
Step 2 — OCR the Attachment: Use "Recognize text in document and images" in Power Automate. What makes this action powerful isn't just the text extraction, it also returns the bounding box coordinates of every element. The AI understands the spatial layout of the document. That's why it works on invoice templates it has never seen before.
Step 3 — AI Extract & Validate: A Prompt action extracts: invoice number, vendor name, client name, date, due date, gross amount, and currency. If a required field is missing, the invoice routes to an error folder and an automated reply goes back to the sender requesting the missing data. Nothing fails silently.
Step 4 — Register & Route: Clean invoices write to Excel and move to "Processed." Flagged invoices move to "Error." Every routing decision is logged and auditable.
💡 Multi-Language Invoices: Microsoft's document AI has been trained on millions of invoices across languages and layouts. For non-English invoices, I add a language-detection step followed by a translation prompt before extraction. No third-party translation service needed.
Use Case 2: Hybrid Knowledge Assistant
Finance teams query two fundamentally different types of data: descriptive sources like contracts and policy documents, and technical sources like ERP tables and Excel registers. A single Copilot Studio agent can hold both as knowledge sources and decide at runtime which to query.
Step 1 — Analyze the Question: The AI classifies whether the query needs descriptive knowledge, numeric data, or both.
Step 2 — Query the Right Source: Routes to the SharePoint document library or the connected ERP table / Excel register.
Step 3 — Merge the Results: Combines both sources into a single coherent answer.
Step 4 — Validate & Loop: Runs an internal consistency check. If data is incomplete or ambiguous, the agent asks a clarifying question rather than returning an uncertain answer.
Use Case 3: Purchase Agreement Management & Monitoring
Step 1 — Ingest Agreements: Purchase contracts land in or are uploaded to a monitored SharePoint library.
Step 2 — OCR + AI Extract: Key terms extracted: parties, financial values, start/end dates, renewal clauses, payment obligations, penalty terms.
Step 3 — Update the Register: Extracted data writes to a master agreement tracker in SharePoint/Excel. Contract status, upcoming renewals, and financial commitments are always current.
Step 4 — Monitor Emails & Alert: Ongoing email monitoring detects contract-related correspondence (renewal notices, vendor disputes) and alerts the designated contract owner automatically.
Use Case 4: Logistics Assistant Agent with External API
Step 1 — Capture Request: User submits a logistics query in natural language via Teams or SharePoint chat.
Step 2 — Decide Next Action: If data is missing, the agent asks. If it has enough context, it builds the API payload.
Step 3 — Build the Payload: The agent constructs a structured API request from the collected parameters.
Step 4 — Return the Answer: Calls the external logistics API, retrieves the result, and posts a clean formatted answer directly in the chat channel. No manual lookup, no tab-switching, no waiting.
💡 ERP Connectors: SAP is natively available in the Connectors panel: "Read SAP Table" and "Call SAP Function" are both there. Dynamics 365 and Salesforce too. MCP server support for Dynamics 365 and additional ERPs is now live for more advanced integration patterns. For any ERP with a REST API, you can build a custom connector without writing code. Just make sure your IT team confirms those connectors are permitted by your DLP policies before you start building.
5: The Human-in-the-Loop Strategy
I never recommend full autonomy on day one. Not because the technology isn't ready, often it is. But because your team isn't ready to trust it yet, and that trust has to be earned through evidence.
Here's the framework I use with every client:
Phase 1: Draft Only. The agent creates draft postings or pre-filled tables. A human reviews before anything is committed. This phase isn't about saving time. It's about building confidence in the output quality.
Phase 2: Measure & Iterate. Track accuracy on every output. When you're consistently hitting 90% clean results, go back into the prompt logic and fix the edge cases causing the remaining 10%. Don't rush past this phase.
Phase 3: Threshold-Based Autonomy. Low-value, low-risk transactions auto-approve. High-value or anomalous transactions still route to a human. You define the thresholds based on your risk appetite. Start conservative and expand.
Phase 4: Multi-Agent Validation. For complex, high-stakes processes I use two agents: one creates the output, a second validates it independently before anything touches the system of record. This is the pattern I recommend before anything writes directly to an ERP.
💡 If there's an agent that is only looking, only checking instead of you or only creating drafts instead of you, you have already won a huge amount of time.
That's genuinely how I think about it. The bar for value is much lower than most people assume.
Before You Deploy: Governance & Security Essentials
I want to be direct about this section: skipping governance in a finance environment is not an option. Everything I'm about to say comes from official Microsoft documentation, not from my preferences.
1. Data Loss Prevention (DLP) Policies
Since early 2025, DLP enforcement applies to all Copilot Studio tenants with no exemptions. The Power Platform admin center controls which connectors your agents can use. Key actions:
Check which connectors are in the "Non-business" group, these are blocked by default in many organizations.
Explicitly permit the Outlook, SharePoint, and ERP connectors you need.
Use endpoint filtering to restrict which SharePoint sites or external URLs agents can access as knowledge sources.
2. Authentication
New agents require Entra ID authentication by default. Keep it that way for anything touching financial data. The "No authentication" option exists, I use it only for isolated demos in development environments, never in production.
3. Environment Strategy
Build in development. Test with anonymized data in UAT. Deploy to production with the strictest DLP policies in place. Enable Managed Environments for production workloads. This structure protects you when something unexpected happens and at some point something unexpected will happen.
4. Sensitivity Labels & Data Residency
Agents inherit sensitivity labels from source documents. For any organization with GDPR, APRA, SOX, or similar obligations, verify your geographic data residency settings before you go live. Don't assume your data is processed where you think it is.
5. Monitoring & Audit
Conversation transcripts and run history are logged and accessible. Check them.
Enable Purview audit logs for eDiscovery and compliance reporting.
Monitor Copilot Credit consumption in Power Platform admin center → Licensing → Copilot Studio.
Use the Microsoft 365 admin center's agent inventory to maintain visibility over every deployed agent in your tenant.
⚠️ My Pre-Deployment Checklist for Finance Agents:
DLP policies reviewed; ERP, Outlook, and SharePoint connectors explicitly permitted
Entra ID authentication enforced on all agents
Separate dev, test, and production environments in use
Data residency confirmed for your jurisdiction
Sensitivity labels active on SharePoint libraries the agent accesses
Purview audit logs enabled with retention policy set
Copilot Credit consumption modelled using the Agent Usage Estimator
Human review process documented for the first 30 days post-deployment
IT and finance sign-off obtained before the agent touches live ERP data
Q&A
Q: I'm not comfortable letting an agent post directly to our ERP. How do I handle this?
Start with draft-only mode. Have the agent prepare the posting and put it in front of a human before anything is committed. Run it that way for a few weeks. When you consistently see 90–95% accuracy, start automating lower-value transactions, amounts below a defined threshold where the risk is acceptable. Grow the perimeter as your confidence grows. If you want an extra safety net, use two agents: one creates, one validates before any write to the ERP. I do this for every high-stakes finance process.
Q: How much does processing invoices at scale actually cost?
I need to be precise here because I wasn't fully precise in the session. Since September 2025, Microsoft bills in Copilot Credits. For M365 Copilot licensed users interacting conversationally inside M365, much of that usage is included. But the autonomous email-triggered agent I demoed does consume credits. Every action step and AI prompt call costs. A 3-page PDF through OCR and AI extraction is approximately 24 Copilot Credits, which is $0.24 at pay-as-you-go. At 500 invoices per month, that's roughly $120. Very manageable but not zero, and you should model it before committing to production. Use Microsoft's Agent Usage Estimator.
Q: Can I share an agent with a client or deploy it across environments?
Yes. Add the agent to a Copilot Studio Solution and export it as a ZIP. The recipient imports the package into their environment, re-maps their connections—their Outlook, their SharePoint and the agent runs. All connectors must be re-authorised by the receiving account. Same pattern as N8N's JSON export, Microsoft calls it a solution package.
Q: Our ERP is SAP. Does this actually connect natively?
Yes, without middleware. Open the Connectors panel in Copilot Studio and you'll find "Read SAP Table" and "Call SAP Function" already there. Dynamics 365 and Salesforce are also available natively. MCP server support for Dynamics 365 and additional ERPs is live now for more advanced patterns. For any REST API ERP, build a custom connector in Power Automate. Just confirm with IT that SAP connectors are permitted by your DLP policies first.
Q: Our invoices come in multiple languages. Will this work?
Yes. Microsoft's document AI has been trained across languages and invoice layouts, it handles templates it has never seen. To normalise output to your target language, add a language-detection step followed by a translation prompt before extraction. It runs entirely within Copilot Studio. No external translation API needed.
Q: What if we don't use SharePoint for storage?
Within M365, SharePoint and OneDrive are the native file storage options. But you can write directly to SAP, Dynamics, or Salesforce via their native connectors, or to any cloud system with a REST API via custom connector. You can also route output by email as a simpler fallback. Desktop local storage isn't accessible from cloud flows. If you have a cloud-based system with an API, you can write to it.
Official Documentation — Verify Before You Build
These are the sources I checked when writing this article. Use them to verify anything before you deploy.
Copilot Studio Licensing: learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing
Copilot Credits Billing Rates: learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management
M365 Copilot Pricing: microsoft.com/en-us/microsoft-365-copilot/pricing
Copilot Studio Pricing & Plans: microsoft.com/en-us/microsoft-365-copilot/pricing/copilot-studio
Security & Governance: learn.microsoft.com/en-us/microsoft-copilot-studio/security-and-governance
Agent Flows Overview: learn.microsoft.com/en-us/microsoft-copilot-studio/flows-overview
Copilot Credits & AI Builder: learn.microsoft.com/en-us/ai-builder/message-management
Copilot Control System: learn.microsoft.com/en-us/copilot/microsoft-365/copilot-control-system/security-governance