Rewrite legal time entry narratives with SharePoint, Microsoft Graph, and GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on a schedule (every 2 hours). Along the way it connects OpenAI and Microsoft Outlook.
How it runs
Trigger: On a schedule (every 2 hours).
- Config — Client Settings (Edit Fields (Set)): sets 22 fields: graphBase, siteId, timeEntryListId…
- Graph — Fetch Time Entries (HTTP Request): calls an HTTP API
- Graph — Fetch Projects (HTTP Request): calls an HTTP API
- Graph — Fetch Billing Guidelines (HTTP Request): calls an HTTP API
- Graph — Fetch Clients (HTTP Request): calls an HTTP API
- Filter — Select Entries To Process (Code): runs custom JavaScript code
- Loop — Each Time Entry (Loop Over Items (Split in Batches)): loops over the items in batches
- Digest — Build Summary (Code): runs custom JavaScript code
- AI — Rewrite & Check Narrative (OpenAI): uses OpenAI
- Email — Send Run Digest (Microsoft Outlook): uses Microsoft Outlook
…plus 2 more steps. See the full node list below.
Services it uses
Other Microsoft Outlook + OpenAI templates (52)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - Microsoft Outlook
n8n-nodes-base.microsoftOutlook
From the author
Quick overview This scheduled workflow pulls attorney time entries and related client billing guidelines from SharePoint via Microsoft Graph, uses OpenAI (GPT-4o) to rewrite narratives and check compliance, writes the AI-reviewed narrative back to SharePoint,…