Skip to main content

Automate employee trip expense processing with Jotform, OpenAI and Google Sheets

Workflow preview

Workflow preview
100%
Automate employee trip expense processing with Jotform, OpenAI and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This workflow is designed for employees who need to submit expense claims for business trips. It automates the process of extracting data from receipts/invoices, logging it to a Goo...

Best for

  • Invoice Processing automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.googledrive, n8n-nodes-base.extractfromfile, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jitesh Dugar.

Original n8n.io source

1.1 Workflow description

Title
Automate employee trip expense processing with Jotform, OpenAI and Google Sheets
Workflow name
Automate employee trip expense processing with Jotform, OpenAI and Google Sheets

👤 Who’s it for

This workflow is designed for employees who need to submit expense claims for business trips. It automates the process of extracting data from receipts/invoices, logging it to a Google Sheet, and notifying the finance team via email.

Ideal users:

  • Employees submitting business trip expense claims
  • HR or Admins reviewing travel-related reimbursements
  • Finance teams responsible for processing claims

⚙️ How it works / What it does

  1. Employee submits a form with trip information (name, department, purpose, dates) and uploads one or more receipts/invoices (PDF).
  2. Uploaded files are saved to Google Drive for record-keeping.
  3. Each PDF is passed to a DocClaim Assistant agent, which uses GPT-4o and a structured parser to extract structured invoice data.
  4. The data is transformed and formatted into a standard JSON structure.
  5. Two parallel paths are followed:
    • Invoice records are appended to a Google Sheet for centralized tracking.
    • A detailed HTML email summarizing the trip and expenses is generated and sent to the finance department for claim processing.

🛠 How to set up

  1. Create a form to capture:

    • Employee Name
    • Department
    • Trip Purpose
    • From Date / To Date
    • Receipt/Invoice File Upload (multiple PDFs)
  2. Configure file upload node to store files in a specific Google Drive folder.

  3. Set up DocClaim Agent using:

    • GPT-4o or any LLM with document analysis capability
    • Output parser for standardizing extracted receipt data (e.g., vendor, total, tax, date)
  4. Transform extracted data into a structured claim record (Code Node).

  5. Path 1: Save records to a Google Sheet (one row per expense).

  6. Path 2:

    • Format the employee + claim data into a dynamic HTML email
    • Use Send Email node to notify the finance department (e.g., [email protected])

✅ Requirements

  • Jotform account with expense form setup Sign up for free here
  • n8n running with access to:
    • Google Drive API (for file uploads)
    • Google Sheets API (for logging expenses)
    • Email node (SMTP or Gmail for sending)
  • GPT-4o or equivalent LLM with document parsing ability
  • PDF invoices with clear formatting
  • Shared Google Sheet for claim tracking
  • Optional: Shared inbox for finance team

🧩 How to customize the workflow

  • Add approval steps: route the email to a manager before finance
  • Attach original PDFs: include uploaded files in the email as attachments
  • Localize for other languages: adapt form labels, email content, or parser prompts
  • Sync to ERP or accounting system: replace Google Sheet with QuickBooks, Xero, etc.
  • Set limits/validation: enforce max claim per trip or required fields before submission
  • Auto-tag expenses: add categories (e.g., travel, accommodation) for better reporting

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Transform Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Upload file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 5 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Extract from File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 8 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 9 - Transform invoice record

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - Create HTML Email Template

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Handle multiple files

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - GPT

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Document Extractor

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 17 - Jotform Trigger

Type / Role
n8n-nodes-base.jotFormTrigger - jotFormTrigger
Config choices
Version 1

3. Summary Table

Workflow Automate employee trip expense processing with Jotform, OpenAI and Google Sheets
Complexity advanced
Nodes 17
Categories Invoice Processing, AI RAG
Author Jitesh Dugar
Published 13 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9579/9579.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate employee trip expense processing with Jotform, OpenAI and Google Sheets do?

Who’s it for This workflow is designed for employees who need to submit expense claims for business trips. It automates the process of extracting data from receipts/invoices, logging it to a Goo...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI RAG use case.