Templates / Automate GST/VAT tax returns with OpenAI, Gmail and government portal integration

Automate GST/VAT tax returns with OpenAI, Gmail and government portal integration

Ready for 3.0

by Cheng Siong Chin ✓ · 248 views · created 2025-12-17 · Document Extraction, 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-10-19.

What this workflow does

This AI workflow has 19 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 8 fields: revenueApiUrl, expensesApiUrl, invoicesApiUrl…
  2. Fetch Expenses Data (HTTP Request): calls an HTTP API
  3. Fetch Invoices Data (HTTP Request): calls an HTTP API
  4. Fetch Revenue Data (HTTP Request): calls an HTTP API
  5. Merge Financial Data (Edit Fields (Set)): sets 4 fields: revenueData, expensesData, invoicesData…
  6. Tax Validation & Calculation Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Calculator); output parser: Tax Calculation Output Parser
  7. Check Tax Threshold (If): checks a condition and branches into true / false
  8. Generate Tax Declaration (Edit Fields (Set)): sets 4 fields: declarationType, filingPeriod, declarationDate…
  9. Below Threshold Notice (Edit Fields (Set)): sets 3 fields: message, threshold, actualRevenue
  10. Submit to Government Portal (HTTP Request): calls an HTTP API (POST)

…plus 5 more steps. 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 (9)

From the author

How It Works Automates financial aggregation, validation, and intelligent tax assessment. Integrates revenue, expenses, and invoices via scheduled connectors, merges data into unified records, and applies AI-driven analysis for anomaly detection and tax…

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.