๐ Post FX rate change commentary to Slack with Frankfurter and Claude
โก 6 views ยท ๐ Crypto Trading & Stock Market
Description
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.
๐ Nodes Used
HTTP Request, Schedule Trigger
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File