Automate cross-border tax compliance with Google Sheets, PostgreSQL and Slack alerts
Ready for 3.0What this workflow does
This workflow has 23 nodes and runs on a schedule (every day at 02:00). Along the way it connects Gmail, Google Drive, Postgres and Slack.
How it runs
Trigger: On a schedule (every day at 02:00).
- Workflow Configuration (Edit Fields (Set)): sets 11 fields: revenueApiUrl, taxConsultantEmail, auditFolderId…
- Fetch Revenue Transactions (HTTP Request): calls an HTTP API
- Retrieve Historical Tax Data (Postgres): run a query
- Extract Transaction Data (Edit Fields (Set)): sets 6 fields: transactionId, country, revenue…
- Split Transactions for Processing (Split Out): splits a list into separate items
- Merge Historical Trends (Edit Fields (Set)): sets 3 fields: historicalData, currentMetrics, comparisonPeriod
- Identify Tax Obligations by Country (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Generate Predictive Tax Forecast (Code): runs custom JavaScript code
- Apply Tax Rules by Jurisdiction (Code): runs custom JavaScript code
…plus 12 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957) · Other Gmail + Google Drive templates (465) · Other Google Drive + Slack templates (222)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Postgres
n8n-nodes-base.postgres - Summarize
n8n-nodes-base.summarize - Slack
n8n-nodes-base.slack - Split Out
n8n-nodes-base.splitOut
From the author
How It Works This workflow automates the complete end-to-end processing of daily revenue transactions for finance and accounting teams. It systematically retrieves, validates, and standardizes transaction data from multiple sources, computes applicable tax…