Update daily currency rates across your finance records
Every hour, the latest exchange rates are fetched and written to one Notion record, so everyone reads the same numbers.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-daily-currency-rates-across-your-finance-records/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Finance · Treasury management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-daily-currency-rates-across-your-finance-records
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-daily-currency-rates-across-your-finance-records/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-daily-currency-rates-across-your-finance-records - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy update-daily-currency-rates-across-your-finance-records - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-daily-currency-rates-across-your-finance-records
zaps/update-daily-currency-rates-across-your-finance-records/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/notion.tsThe
notionaccount it uses - triggers/every-hour.tsWhat starts it:
scheduleeveryHour - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: the
scheduleapp'severyHourevent, every hour at :00, including weekends. - webhook GETs a public FX API and reads the
ratesobject for the target currencies. - notion writes the rates as plain-text lines (
CAD: <rate>,ILS: <rate>, four decimal places) to the body of one configured page.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_NOTION_PAGE_ID |
The Notion page or database item whose body receives the rates. Look it up with their Notion connection |
Also review these defaults with them:
FX_API_URLinconfig.ts: a free public API with base USD. Change it if the team uses another base currency or provider.TARGET_CURRENCIESinworkflow.ts: the ISO codes written to the page. Defaults toCADandILS.weekendsintriggers/every-hour.ts: set to"yes", so the hourly run also happens on weekends. Change it to skip them.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-daily-currency-rates-across-your-finance-records, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-daily-currency-rates-across-your-finance-records, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
notionto the user's Notion connection for the workspace that holds the rate record. The schedule andwebhookneed no connection. - Source: publish
workflow.tsandconfig.ts, withREPLACE_NOTION_PAGE_IDreplaced by the user's answer.triggers/every-hour.tsandconnections/are settings, not code: set the workflow's trigger from it (schedule,everyHour,moh: 0,weekends: "yes", no connection). The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test, with the Notion page set to one the user controls. The trigger sends no input, so the sample input is null.
Check that the fetch-fx-rates output's json field holds a rates object with the target currencies, and that the page body ends with one new line per target currency, with values matching the run output. If run-status tools aren't available, check the result in Notion directly. Then publish, confirm the trigger is active, and tell the user what the rate record will show. Ask the user to delete the test lines from the page, not the agent.
Notes
- Each run appends a new block of lines to the page body, so the page grows by one entry an hour. Clear old entries in Notion, or change the step to replace the body when that action is available.
- The
notionaction writes body text, not database property fields. Per-currency properties need a different Notion action or a property-by-property update, which the connection's field list must provide. - The FX API is public and rate-limited. Keep the hourly schedule unless the provider's terms allow more.
- To extend it: write only when a rate has moved more than a set amount since the last write, or add a step after the FX fetch that writes a row or sends a message when
ratesis empty.