Check foreign card exchange rates with Google Sheets, Frankfurter and Slack
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs on a schedule (every month at 09:00) (plus 2 other triggers). Along the way it connects Google Sheets and Slack.
How it runs
Trigger: On a schedule (every month at 09:00) (plus 2 other triggers).
- Config (Edit Fields (Set)): sets 10 fields: base_currency, date_col, merchant_col…
- Spreadsheet ID (Edit Fields (Set)): sets 1 field: spreadsheet_id
- Read FX statement tab (Google Sheets): read (sheet)
- Add the FX statement and FX check tabs (HTTP Request): calls an HTTP API (POST)
- Plan rates (Code): runs custom JavaScript code
- Write the header rows (HTTP Request): calls an HTTP API (POST)
- Any foreign charges? (If): checks a condition and branches into true / false
- Get rates (HTTP Request): calls an HTTP API (GET)
- Nothing to check (Code): runs custom JavaScript code
- Check charges (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314)
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs monthly (or on demand) to read foreign-currency card charges from Google Sheets, fetch matching market exchange rates from the Frankfurter API, calculate premiums versus expected billed amounts, write results back to Google…