Templates / Build monthly mileage reimbursement reports from Google Calendar with OpenAI and Dropbox

Build monthly mileage reimbursement reports from Google Calendar with OpenAI and Dropbox

Ready for 3.0

by Gaetano Castaldo ✓ · 1 views · created 2026-10-26 · Invoice Processing, 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 38 nodes and runs on a schedule (every month at 07:00) (plus 2 other triggers). Along the way it connects Gmail, Dropbox and OpenAI Chat Model. It also calls nominatim.openstreetmap.org over HTTP.

How it runs

Trigger: On a schedule (every month at 07:00) (plus 2 other triggers).

  1. Settings (Edit Fields (Set)): sets 18 fields: monthOverride, timezone, mode…
  2. Did the workflow stop? (If): checks a condition and branches into true / false
  3. Email me: workflow stopped (Gmail): send (message)
  4. Month to process (Edit Fields (Set)): sets 1 field: month
  5. Read the month from Google Calendar (HTTP Request): calls an HTTP API (GET)
  6. Parse the trips (Code): runs custom JavaScript code
  7. Any event to read with AI? (If): checks a condition and branches into true / false
  8. Events for the AI (Code): runs custom JavaScript code
  9. Trips of the month (Code): runs custom JavaScript code
  10. Read the trip with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Trip structure

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

Services it uses

GmailDropboxOpenAI Chat Model

HTTP calls to: nominatim.openstreetmap.org

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 (15)

From the author

Quick overview This workflow runs monthly to turn Google Calendar trip events into a mileage reimbursement Excel, using OpenAI to parse free-text events and OpenStreetMap/OSRM to calculate driving distances, then uploads the file to Dropbox and (in live mode)…

Excerpt from Gaetano Castaldo'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.