Quick overview
On a schedule, this workflow checks an exchange rate via the free Frankfurter API, compares it to the last checked rate, and — if it moved beyond a threshold you set — asks Claude to write a short factual note and posts it to Slack.
How it works
- On a schedule, fetches the current rate for a currency pair you configure from the free Frankfurter API (ECB reference rates, no API key required).
- Compares it to the last checked rate (remembered via workflow static data) and computes the percent change.
- If the move crosses your configured threshold (or this is the first check), asks Claude to write a short, factual note about the change — explicitly instructed to avoid predictions or investment advice.
- Posts the commentary to Slack via an Incoming Webhook, verifying delivery by checking the actual response body rather than assuming success.
Setup
- Add an Anthropic API key as a credential in n8n and assign it in the "Call Claude (Anthropic) API" node.
- Open the "Set: config" node and set your currency pair (baseCurrency / targetCurrency), your move threshold in percent, and your Slack Incoming Webhook URL.
- Adjust the Schedule Trigger to whatever check frequency you want (defaults to every 6 hours), then activate the workflow.
Requirements
- An n8n instance (Cloud or self-hosted)
- An Anthropic API key, added as an "Anthropic" credential in n8n
- A Slack Incoming Webhook URL (no Slack app or OAuth required)
Customization
- Lower or raise thresholdPercent in the "Set: config" node to control how sensitive the alert is.
- Swap the Slack delivery step for email, Discord, or a database write.
- Track multiple currency pairs by duplicating the fetch/compare/notify chain with a different targetCurrency.