Automate Timesheet to Invoice Conversion with OpenAI, Gmail & Google Workspace — n8n Workflow
Overview
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 from a Google Sheet
Organizes files in Client → Employee → Year folders
Reuses an existing invoice sheet or creates a new one and writes the invoice row
Quick Implementation Steps
Import the workflow JSON into your n8n instance.
Set
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 40 nodes, connecting code, gmailtrigger, googledrive.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (40)
Google Sheets
googleSheets
HTTP Request
httpRequest
Google Drive
googleDrive
Code
code
OpenAI
n8n-nodes-langchain.openAi
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
automate-timesheet-to-invoice-conversion-with-openai-gmail-google-workspacefile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
DIGITAL BIZ TECH
@dbt
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →