The problem
Month end close is a list of dozens of recurring tasks with owners, due dates and dependencies, and the senior finance people spend those days executing routine steps instead of reviewing the numbers and advising management. With several legal entities, or an acquired business whose invoices arrive in another language, the list only gets longer.
Architecture
- Channel
- Hourly check of the close list
- Agent
- Close task runner
- Invoice coding
- Tools
- Copilot Studio
- Dynamics 365 Finance
- ERP MCP Server
- Human
- Owners keep judgment tasks
Where the data stays: Ledger entries, close tasks and invoices stay in Dynamics 365; the agent acts only inside the scope the ERP MCP Server defines and reports every result by email.
Design flow
- Hourly check finds due tasks with dependencies complete
- Agent runs the task through the ERP MCP Server
- Task marked complete, result emailed to the owner
- Judgment task: left open for the ownerOnly sometimes
- Owner reviews the results and the open tasksHuman checkpoint
- Close moves on, more tasks added as trust grows
Setup
Total time: 10 h 15 min our estimate
- 1 h
Done when: Every close task has an owner, a due day, its dependencies and a label: routine (an agent may do it) or judgment (a person does it), and the first three routine tasks are chosen.
- 1 h 30 min
Done when: A Copilot Studio agent reads the close workspace and the ledger data through the Dynamics 365 ERP MCP Server, and its permissions allow only the reads plus the write operations the three chosen tasks need.
- 2 h
Done when: Run against last month's data, the agent produces the same result the person produced, writes its two line summary and stops when a figure is outside the threshold you set.
- 1 h
Done when: Every hour the agent picks up only due tasks with dependencies complete, marks the finished task complete in the workspace and emails the owner the result.
- 4 h
Done when: For one full close the agent and the team both do the three tasks, every difference is explained, and only then does the agent's result become the one that counts.
- 45 min
Done when: After each close the finance lead reviews the summary emails, moves two or three more routine tasks to the agent and keeps the judgment list as it is.
Ticks are saved on this browser.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
You are the close agent for [legal entity]. Every hour, read the close task list in [workspace or sheet]. Act only on tasks that are due today or overdue, whose dependencies are all marked complete, and whose type is on this allowed list: [match bank statement lines to the ledger, post the recurring accrual journals, run the aged receivables report, reconcile intercompany balances]. For each one, do the work using only the systems you are connected to, write a two line result (what you did, what looks unusual), mark the task complete and email the result to the task owner. If a task is on the judgment list [list] or any figure differs from last month by more than [threshold], do not act: email the owner what you found and leave the task open.
Risks and data
Data
The agent touches ledger entries, supplier invoices and bank data. Give it the narrowest write scope the routine tasks need, keep posting rights off until a parallel close has proven a task, and send the result emails only to the task owner.
How it goes wrong
It goes wrong when the agent posts a journal with the right total to the wrong account, codes an invoice to the wrong tax line, or runs a task whose dependency was marked complete by mistake. You notice from the summary emails and from a variance at month end. Keep the judgment list strict, set a threshold that stops the agent, and have the finance lead read every summary for the first closes.
How the agent works
It starts
Close tasks live in the financial period close workspace in Dynamics 365 with an owner, a due date and dependencies.
The agent works
Every hour a check finds the tasks that are due and whose dependencies are complete. The matching agent, built in Copilot Studio and connected through the Dynamics 365 ERP MCP Server with a defined scope and permissions, performs the task, marks it complete and emails the result. Tasks that require judgment or review stay with their human owner, who also reads the emailed results.
The result
A related skill set codes incoming invoices: for an acquired German business the agent reads each invoice, connects it with Dynamics 365 data, applies the correct coding and sends the finance team a summary email explaining it; freight invoices with several tax codes are split into tax and coding lines the same way.
Worked example
Pamarco Technologies, a US and European maker of anilox rolls and blades for printing and packaging with about 225 employees, seven legal entities and 18 years on Microsoft ERP, automated roughly 40% of its financial close tasks with agents built in Copilot Studio against Dynamics 365 Finance, with the potential to reach 50 to 60% by year end. An hourly check finds the due tasks whose dependencies are complete; the agent runs them, marks them done and emails the results, and the owners keep the tasks that need judgment. A skill set for the German acquired business reads each invoice, connects it with Dynamics 365 data, applies the coding and emails a summary; during validation fewer than 5% of those invoices needed manual coding, and freight invoices are coded with about 95% success, enough that the company switched on automatic posting for all its non purchase order invoices. Crowe Advisory supported the proof of concept and Microsoft specialists helped with the MCP approach (Microsoft customer story, 18 September 2026).
Pamarco's agents are bounded through the Dynamics 365 ERP MCP Server, which defines the data and operations each agent may touch, and the close workspace already holds owners, dependencies and due dates. With n8n you keep the hourly schedule and the result email, but the task list is your own sheet or ERP checklist, each task is a workflow you build against your ERP's API or exports, and the scope control is yours to write.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
Published: 2026-11-12