Latenode

Automatically categorize YNAB transactions and notify Discord

This template loads uncategorized YNAB transactions, asks ChatGPT for the best budget category, writes that category back to YNAB, and posts a short summary to Discord.

JavaScript calls the YNAB API. Put the YNAB API key in that JavaScript node. Connect Discord. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key.

Updated Sep 15, 2026Est. run: 22sEst. cost: $0.0014
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Categorizes uncategorized YNAB transactions on a schedule
  • Calls the YNAB API from JavaScript with the key in that node
  • Picks categories with ChatGPT
  • Posts a Discord summary after the update

How it works

1
Trigger

Run on a schedule

The scenario starts on the cadence you set, such as daily.

2
Action

Load uncategorized YNAB transactions

JavaScript fetches your budget categories and uncategorized transactions, then drops transfers. Put the YNAB API key in that JavaScript node.

3
AI

Pick a category

ChatGPT matches each payee and memo to a category from your YNAB list.

4
Action

Update YNAB and notify Discord

JavaScript writes the chosen category onto each transaction. Discord posts a summary in the channel you choose.

Setup guide

1

Store the YNAB API key

Add a JavaScript node and put your YNAB API key there. Set the budget id. Return uncategorized transactions and the category list, and skip transfers.

2

Add ChatGPT

Send payee, memo, amount, and the category list to ChatGPT. You do not paste an OpenAI API key into this Latenode AI node.

3

Connect Discord

Add a Discord connection and pick the channel for the summary message.

4

Write categories and notify

In JavaScript, update each YNAB transaction with the chosen category id. Then send a Discord message with payee, amount, and category. Add a daily schedule. Run once by hand and confirm YNAB shows the new categories.

Requirements

A YNAB account and API key stored in the JavaScript node
A budget with categories ChatGPT can choose from
A Discord channel Latenode can post to
A schedule

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.