Templates / Automate timesheet to invoice conversion with OpenAI, Gmail & Google Workspace

Automate timesheet to invoice conversion with OpenAI, Gmail & Google Workspace

Ready for 3.0

by DIGITAL BIZ TECH ✓ · 109 views · created 2025-11-28 · 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 40 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI, Google Sheets and Google Drive. It also calls universal-file-to-text-extractor.vercel.app over HTTP.

How it runs

Trigger: On Gmail events.

  1. Split Binary Attachments (Code): runs custom JavaScript code
  2. Loop: Process Each Attachment (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Extract Text from Attachment (HTTP Request): calls universal-file-to-text-extractor.vercel.app (POST)
  4. Extract Timesheet Data (OpenAI) (OpenAI): uses OpenAI
  5. Set Timesheet JSON Fields (Edit Fields (Set)): sets 4 fields: Week Start Date, Week End Date, Client Name…
  6. Get Customer Info From PO Sheet (Google Sheets): uses Google Sheets
  7. Search: Client Invoices Folder (Google Drive): work with file folder
  8. Search: Client Folder by Name (Google Drive): work with file folder
  9. Check Client Name Folder (If): checks a condition and branches into true / false
  10. Search: Employee Name Folder (Google Drive): work with file folder

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

Services it uses

GmailOpenAIGoogle SheetsGoogle Drive

HTTP calls to: universal-file-to-text-extractor.vercel.app

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
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 (10)

From the author

This workflow converts emailed timesheets into structured invoice rows in Google Sheets and stores them in the correct Google Drive folder structure. It: - Listens to Gmail for timesheet attachments - Runs OCR and AI parsing - Looks up Customer and PO data…

Excerpt from DIGITAL BIZ TECH'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.