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

> 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) prepares a Gmail draft for your accountant with validation checks. How it works 1. Runs on the 1st of every month at 07:00 (or manually) and sets the month to process (previous month by default, or a manual override). 2. Pulls events for that month from Google Calendar and parses trips from titles like “Departure Arrival, km, purpose”, while marking multi-day “Trasferta” events as away days. 3. Sends remaining in-month free-text events to OpenAI to extract whether they are car trips plus ordered stops, optional km, purpose, and one-way/round-trip. 4. For trips missing km (or when verification is enabled), geocodes unique stop names via OpenStreetMap Nominatim and calculates driving distance via the OSRM routing service. 5. Builds 

- **Domain**: `n8n-workflow-21739.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21739
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21739.n8n.io
- Documentation: https://n8n.io/workflows/21739
