Templates / Automate tax deduction processing with GPT-4 receipt analysis and Gmail reporting

Automate tax deduction processing with GPT-4 receipt analysis and Gmail reporting

Ready for 3.0

by Cheng Siong Chin ✓ · 81 views · created 2025-12-22 · 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 14 nodes and runs on a schedule (every month at 09:00). Along the way it connects OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every month at 09:00).

  1. Workflow Configuration (Edit Fields (Set)): sets 4 fields: expenseReceiptsApiUrl, revenueDataApiUrl, taxAgentEmail…
  2. Fetch Expense Receipts (HTTP Request): calls an HTTP API
  3. Fetch Revenue Data (HTTP Request): calls an HTTP API
  4. Check Receipt File Type (If): checks a condition and branches into true / false
  5. Merge: merges the data from its input branches
  6. Extract Receipt Data (Extract from File): extracts data from a file (pdf)
  7. Match Expenses to Revenue Periods (Code): runs custom JavaScript code
  8. Extract Deductible Categories (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  9. Calculate Tax Deductions (Code): runs custom JavaScript code
  10. Format Tax Report (Edit Fields (Set)): sets 7 fields: reportTitle, generatedDate, totalRevenue…

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelGmail

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.

Nodes used (11)

From the author

How It Works This workflow automates monthly tax processing by ingesting expense receipts alongside revenue data, extracting structured deduction details using GPT-4, and accurately matching expenses to their corresponding revenue periods. It retrieves…

Excerpt from Cheng Siong Chin'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.