Accounts teams often receive invoices in different layouts: a PDF attached to an email, a spreadsheet from a supplier, or a scanned document saved to a shared folder. Someone then has to read the file, copy the vendor name and totals, enter line items, and route the invoice to the right person. That repetitive handoff is a good candidate for document extraction automation.
The Extract node in Microsoft Copilot Studio workflows is designed for this kind of task. You define the values or tables you need, pass a document into the node, and make the returned fields available as dynamic content to later workflow steps. Microsoft’s documentation describes support for common business documents including invoices, contracts, receipts, reports, bank statements, and financial statements in formats such as PDF, Word, Excel, and PowerPoint.
What the Extract node does
The Extract node converts a document into a predictable structure. You can create that structure from a sample document, start with a template, or define the fields yourself. The output can then be used to create a record, evaluate a condition, send a notification, or start an approval process.
For an invoice, the output might contain an invoice number, supplier name, invoice date, due date, tax amount, total amount, and a repeating list of line items. Instead of passing the entire document to every later step, the workflow can work with those named values.
Who benefits from this feature?
- Finance and accounts teams: Reduce repetitive copying of invoice details into accounting or ERP records.
- Procurement teams: Capture supplier, purchase reference, and line-item information for review.
- Operations teams: Route contracts, receipts, or reports based on extracted dates, names, or amounts.
- IT and automation builders: Connect document intake to downstream workflow actions without writing a custom parser for every document layout.
Before you start
Microsoft’s current documentation labels this workflow experience for the GitHub Copilot harness. Availability depends on the Copilot Studio environment and harness your organization has enabled; do not assume the same node appears in every Copilot Studio workflow.
- Access to Microsoft Copilot Studio and a workflow environment that supports the documented GitHub Copilot harness experience.
- A workflow trigger or earlier action that provides the document or its file content, such as an incoming email attachment or uploaded file.
- A clear list of the fields and tables your business process needs.
- A test set of representative documents, including unusual layouts and documents with multiple pages or line items.
- Awareness of usage-based billing: Microsoft notes that using, building, testing, and evaluating agents in this harness can consume Copilot Credits.
Step 1: Create or open a workflow
- Open Copilot Studio and go to Flows.
- Create a new workflow or open an existing one.
- If you open an existing workflow, switch to its Build tab.
- Choose a trigger that matches your intake process. For example, the workflow might start when an email arrives with an invoice attachment or when a document is added through an upload step.
Step 2: Add the Extract node and connect the document
- In the workflow designer, open the Add panel and select the Extract node.
- In the node’s document field, open the dynamic content picker.
- Select the file or file content supplied by your trigger or an earlier workflow action.
- Confirm that the selected input is the actual document content, not just its filename or a text description of the attachment.
For an email-based process, Microsoft’s example is to use the attachment’s file content as the Extract node input. A manual workflow can use the file content provided by its trigger.
Step 3: Define the fields to extract
You have three ways to define the extraction schema:
- Suggest fields from a sample document: Upload a representative invoice and let the node propose field names, descriptions, types, and tables. Review and edit every suggestion before using it.
- Select a template: Start with a template for a common document type, then refine the proposed fields to match your process.
- Add manually: Create each field with a clear, unique name, a suitable type, and an optional description explaining what the value means.
Example invoice schema
A useful starting schema for a standard supplier invoice could include:
invoiceNumber— the supplier’s invoice reference.vendorName— the legal or trading name shown on the invoice.invoiceDateanddueDate— the dates printed on the document.currency— the currency code or symbol used for the amounts.subtotal,taxAmount, andtotalAmount— the monetary totals.lineItems— a repeating list or table containing description, quantity, unit price, and line total.
Use a list or table field for repeating values such as invoice line items. Keep field names consistent across workflows so that downstream actions are easier to maintain.
Step 4: Choose a model and test representative files
The Extract node provides a model selector. Microsoft recommends choosing a more capable model for long documents, complex tables, or ambiguous values, and a faster model when documents are consistent and the workflow runs at high volume.
- Choose the model that fits the complexity of your documents.
- Select the node and open its Test tab.
- Upload a sample document, enter inputs manually, or use a document from a previous workflow run.
- Select Run test and inspect the generated fields and tables.
- Repeat with different suppliers, page counts, currencies, tax formats, and scanned or low-quality files.
Do not treat a successful test run as proof that every future invoice will be extracted correctly. Compare important values against the original file and refine the schema when the model confuses similar fields.
Step 5: Use extracted values in later workflow actions
Once the Extract node runs, its configured fields become dynamic content. In a later action, open the dynamic content picker and select the field returned by the Extract step.
For example, a workflow could create a draft invoice record using invoiceNumber, vendorName, and totalAmount. A condition could then route the invoice to a manager when the extracted total exceeds an internal approval threshold. A notification step could send the reviewer a link to the original document and the captured values.
Step 6: Add validation and human approval
Document extraction is an AI-assisted interpretation step, not an accounting control. Before extracted data changes a financial record or triggers payment, add checks appropriate to your organization.
- Compare the extracted subtotal, tax, and total against the values visible in the source document.
- Check that the invoice number and supplier are not already present in your system.
- Validate currency, dates, required purchase-order references, and supplier status.
- Route missing, ambiguous, unusually high, or inconsistent values to a person for review.
- Keep the original file and a record of the extracted values so that a reviewer can trace the result.
For example, a workflow can create a draft record automatically but require an authorized employee to approve it before the invoice enters a payment process. The threshold and approval rules should come from your finance policy, not from the AI model.
Limitations and practical cautions
- Document variation: Supplier layouts, scan quality, handwritten notes, and unusual table structures can affect extraction quality.
- Field ambiguity: An invoice may show several dates or totals. Use precise field descriptions and test edge cases.
- Preview and harness differences: Confirm that the documented workflow experience is enabled in your tenant and check Microsoft’s latest product guidance before designing around it.
- Usage costs: Building and testing may consume Copilot Credits under the usage-based billing model described by Microsoft.
- Data governance: Review your organization’s data-handling, retention, access, and compliance requirements before sending financial or personal information through an AI workflow.
- Human accountability: Keep a person responsible for exceptions and consequential decisions such as supplier changes or payment approval.
Frequently asked questions
Can the Extract node read invoice line items?
Yes. Microsoft documents list and table fields for repeating information such as invoice line items, products, and attendees. You define the columns you need and test them against representative documents.
Can I use it with contracts and receipts?
Microsoft lists contracts, receipts, reports, bank statements, and financial statements among the supported document types, in addition to invoices. The fields you configure determine what the workflow returns.
Does the Extract node replace an AI agent?
No. It is a specialized document-extraction experience. Microsoft recommends an agent node when a workflow needs broader reasoning, tools, knowledge, or multi-step task execution.
Does it guarantee accurate totals?
No extraction system should be treated as a guarantee. Test with real examples, compare important values with the source document, and route exceptions for human review.
Official documentation and further reading
Key takeaway
The Copilot Studio Extract node can remove a repetitive document-to-data handoff by turning files into named fields and tables that a workflow can reuse. Start with one narrow invoice process, define only the fields you need, test across varied supplier documents, and keep validation and human approval in place before extracted information affects financial records or payments.