Templates / Rewrite legal time entry narratives with SharePoint, Microsoft Graph, and GPT-4o

Rewrite legal time entry narratives with SharePoint, Microsoft Graph, and GPT-4o

Ready for 3.0

by AI Solutions ✓ · 2 views · created 2026-08-01 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Config — Client Settings (Edit Fields (Set)): sets 22 fields: graphBase, siteId, timeEntryListId…
  2. Graph — Fetch Time Entries (HTTP Request): calls an HTTP API
  3. Graph — Fetch Projects (HTTP Request): calls an HTTP API
  4. Graph — Fetch Billing Guidelines (HTTP Request): calls an HTTP API
  5. Graph — Fetch Clients (HTTP Request): calls an HTTP API
  6. Filter — Select Entries To Process (Code): runs custom JavaScript code
  7. Loop — Each Time Entry (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Digest — Build Summary (Code): runs custom JavaScript code
  9. AI — Rewrite & Check Narrative (OpenAI): uses OpenAI
  10. Email — Send Run Digest (Microsoft Outlook): uses Microsoft Outlook

…plus 2 more steps. See the full node list below.

Services it uses

OpenAIMicrosoft Outlook

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

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,…

Excerpt from AI Solutions's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.