THRSP1112 · Theater
Build agentic workflows with Microsoft Agent 365 and n8n
Speakers: Ana Cidre, Liam Hampton
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Theater session by n8n's Ana Cidre and Liam Hampton on combining Microsoft Agent 365 (identity, access, governance with Entra) with n8n (orchestration) and a Microsoft Foundry model. After framing identity, access and orchestration as the blockers for enterprise agents, Liam walks through the prerequisites (Entra app registration, Agent 365 CLI scaffolding, admin approval, per-agent memory) and a live Fabrikam finance assistant. The agent in Teams uses Work IQ tools and a deterministic n8n sub-workflow that reads an Excel register in SharePoint, auto-posts invoices under 10,000 EUR and routes larger ones to the CFO for email approval. The session closes with setup lessons and the availability split: Agent 365 GA, agents with their own identity in Frontier preview.
Best for: Builders who want to see how a third-party orchestrator like n8n plugs into Agent 365, Entra, Work IQ tools and Foundry models as an alternative to Copilot Studio.
New material starts at 05:12. Before 05:12 come the intro and the conceptual identity/access/orchestration framing; at 05:12 the concrete prerequisites and architecture of the finance agent begin.
Where to skip: Skip to 05:12 for prerequisites; the n8n workflow walkthrough at 08:18 and the Teams approval demo at 13:16 are the core, and the setup lessons at 17:48 are worth a minute. The GA vs. Frontier note at 18:40 is brief; the rest is intro and closing.
Chapters (8)
- 00:02 Recap Depth 100 · Novelty 0/3
Session intro, audience poll and agenda for Agent 365 + n8n
Ana Cidre, who leads the n8n DevRel team, polls the audience on their familiarity with n8n and introduces Liam Hampton, who will run a live demo. The agenda covers why enterprise agents stall, a live build of a finance agent and key takeaways.
- 01:48 Recap Depth 200 · Novelty 1/3
Why enterprise agents stall: identity, access, orchestration and the three-layer stack
Using a vendor invoice approval example, Ana names three blockers: identity (who the agent is and who is accountable), access (what it can read and write, which tools and at what level) and orchestration (which systems it spans). The proposed stack maps Agent 365 with Entra to identity, access and governance, n8n to orchestration and Microsoft Foundry to the model, noting that the model is rarely the blocker. n8n is positioned against Copilot Studio for scenarios beyond the Microsoft ecosystem: any system (e.g. an accounting system, Slack, Telegram), any model including several in one workflow, and step-by-step visible execution for debugging.
- 05:12 Deep dive Depth 300 · Novelty 2/3
Finance agent prerequisites: Entra app, Agent 365 CLI, admin approval, model and memory
Liam explains mixing non-deterministic agents with deterministic workflow logic so that business rules do not have to be handled by an agent. Prepared in advance: an Entra app registration with credentials and permissions for the Microsoft nodes, scaffolding with the Agent 365 CLI, tenant admin approval, a trigger node, GPT-5.6 Sol deployed from Microsoft Foundry, and memory scoped per agent. The architecture is a trigger workflow (Foundry model, util functions) calling a business-logic sub-workflow; the planned Teams scenario routes invoices over 10,000 EUR to the CFO, updates a spreadsheet and replies in chat.
- 08:18 Demo Depth 300 · Novelty 2/3
Demo: n8n trigger workflow, Work IQ tools, Foundry model, memory and invoice sub-workflow
Liam opens the "Fabrikam Finance Assistant" workflow in n8n: the agent node with a Microsoft 365 Agent credential, a system prompt and enabled Work IQ tools (Mail, Excel, SharePoint, Word, etc.), described as equivalent to a Foundry deployment's instructions and tools. He shows the Azure AI Foundry chat model node with the OpenAI family and GPT-5.6 Sol, the conversation memory context window as a cost lever, util functions and the sub-workflow trigger referenced by workflow ID. The "Handle invoice action" sub-workflow loads the invoice from an Excel register in SharePoint via an Entra service principal, routes by action, checks approval rules (10,000 EUR limit, not found, not pending, blocked) and hands off to CFO sign-off, updating Excel and replying in Teams.
- 13:16 Demo Depth 200 · Novelty 2/3
Demo: approving invoices from Teams, under-limit auto-post and CFO sign-off by email
In Teams, the fabrikam-agent (created from the Agent 365 CLI blueprint and installed in Teams) answers "…" with the register loaded from Excel. "approve 101" runs the sub-workflow; the n8n executions view shows the green path through the approval rules within limits to "Post bill", the agent confirms in Teams and the Excel register shows the invoice approved. "approve 124" for EUR 18,450 takes the CFO branch: the execution waits, an approval email with Reject and Approve and post buttons arrives in Outlook, and Teams reports the invoice was over the limit and sent for CFO sign-off.
- 17:48 Deep dive Depth 300 · Novelty 2/3
Lessons from the first build: setup order, client IDs, memory scoping, Frontier delay
Without the Entra app registration the correct credentials were missing, so there was no Agent 365 CLI blueprint, no approval process and no agent. The client IDs of the Entra app had to match, otherwise posting to the Excel spreadsheet failed. Memory had to be scoped per agent instance, because agents sharing one memory crossed wires, and Frontier access took about an hour to update.
- 18:40 New Depth 100 · Novelty 1/3
What is GA today vs. Frontier preview: Agent 365 GA, agent identity in Frontier
Ana explains the availability split so that attendees understand why the experience may look different when they try it. Microsoft Agent 365 is stated as generally available (the slide mentions per-user licensing), while agents with their own identity are in Frontier preview.
- 19:37 Closing Depth 100 · Novelty 1/3
Next steps: try the n8n Agent 365 trigger node, booth, slides and resources
The speakers recommend trying the Agent 365 trigger node in n8n and sharing feedback, and invite attendees to the n8n booth in front of the Microsoft Marketplace. A QR code provides the slides with a hands-on video and links to n8n documentation and Microsoft Learn resources for Agent 365. The host closes the session.
Announcements (3)
-
Microsoft Agent 365
Identity, access and governance layer for agents, stated as already generally available.
per-user licensing (shown on slide)
Speaker’s quote (at 19:10)
„However, Microsoft Agent 365, as you probably heard all week, is already generally available.“
-
Agents with their own identity
Agents having their own identity in Microsoft 365, stated to be in Frontier preview.
Speaker’s quote (at 19:10)
„It's because the agents with their own identity is in Frontier Preview, so just be careful with that.“
-
Agent 365 trigger node in n8n
n8n trigger node that lets a Microsoft Agent 365 agent start n8n workflows.
Speaker’s quote (at 19:37)
„Next steps, go try the Agent 365 trigger node in any 10. Please give us feedback.“
Demos (2)
-
Configure an n8n-based finance assistant that is a Microsoft 365 agent, uses a Foundry model and Work IQ tools, and delegates invoice approval rules to a deterministic sub-workflow.
Steps (10)
- Open the "Fabrikam Finance Assistant" workflow in the n8n editor.
- Open the agent/trigger node and check the webhook URL, the Microsoft 365 Agent credential and the system prompt.
- Enable the Work IQ tools (Mail, Excel, SharePoint, Word, Calendar, Teams, OneDrive).
- Open the Azure AI Foundry Chat Model node and set credential, project, model family (OpenAI) and the GPT-5.6 Sol deployment.
- Open the Conversation memory node and set session ID, key and context window length.
- Add util function nodes for pricing, currency and company data.
- Configure the sub-workflow tool "Post approved bill" with a description and the sub-workflow ID.
- Review Invoice Register.xlsx in SharePoint (invoice number, supplier, amount, match status, status Pending).
- In the "Handle invoice action" sub-workflow, configure "Load invoice from register" with an Entra service principal credential, looking up table Invoices by column InvoiceNo.
- Add route-by-action and approval-rule branches: within 10,000 EUR post the bill; over the limit go to CFO sign-off; handle not found, not pending or blocked; update Excel and reply in Teams.
Prerequisites: Entra app registration with credentials, Agent 365 CLI scaffolding, tenant admin approval, a model deployed in Microsoft Foundry, an Excel invoice register in SharePoint.
-
An employee requests and approves invoices by chatting with an agent in Teams; invoices within the limit are posted automatically, larger ones go to the CFO for email approval.
Steps (9)
- In Teams, open the chat with fabrikam-agent (created via the Agent 365 CLI blueprint and installed in Teams).
- Type "…" and wait for the list loaded from the Excel register.
- Type "approve 101".
- In n8n, open the Executions tab of "Handle invoice action" and inspect the successful green path (within limits, Post bill).
- Check the agent's confirmation in Teams and reload Invoice Register.xlsx to see the invoice approved.
- Type "approve 124" (EUR 18,450, over the limit).
- In the n8n Executions tab, see the run waiting at CFO sign-off.
- In Outlook, open the email "Approve invoice INV-2026-124 from Kessler Maschinenbau AG" and click Approve and post.
- Return to Teams and read the agent's reply that the invoice is over the limit and sent to the CFO for sign-off.
Prerequisites: The agent scaffolded with the Agent 365 CLI and installed in Teams, the n8n workflows from the previous chapter, an Excel invoice register in SharePoint, an Outlook mailbox for the CFO approver.