Add an AI step to a workflow with the Copilot Studio agent node
Tool · Copilot Studio
Task · Copilot Studio: agent flow tool
Time saved · 5-10 min per document (estimate, not measured)
⚠️ From Microsoft's Microsoft 365 Copilot release notes (November 17, 2026 batch). New features often reach commercial tenants first and GCC (government cloud) tenants later or not at all, so check that you see Workflows and the agent node in your tenant before you plan around it. Agent node runs use Copilot Credits. Check the extracted values against the attachment before anything is posted.
Steps
- In Copilot Studio, go to Workflows and create a new workflow with the trigger When a new email arrives (Office 365 Outlook), filtered to your invoices or notices mailbox
- From the Add panel, select Agent, then choose New agent for this workflow
- Paste the instructions below and add the trigger's attachment as dynamic content. Pick a structured output so each field shows up for later steps
- Add a step that writes those fields to a SharePoint list or Excel table for review, then test with a few real emails before you turn it on
Prompt / template
Read the attached document from this email: [Attachments from the trigger]. Decide whether it's a vendor invoice, a tax notice, or something else. Return only these fields: document_type, sender_name, document_date, due_date, amount, reference_number, one_line_summary. Copy amounts and dates exactly as written. If a field isn't in the document, return "not found". Don't guess.
Source · https://learn.microsoft.com/en-us/microsoft-copilot-studio/workflows-experience/agent-node-workflow
Also see · https://learn.microsoft.com/en-us/microsoft-365/copilot/release-notes
Last checked · 2026-11-23
More Build an agent workflows → · More Copilot Studio workflows →