Automated Finance Tracker - Outflows for Line Items

Extract financial data from uploaded files and track expenses in your Notion database automatically.
Created by
Matthias Frank
Matthias Frank
Notion Consultant
Relay.app screenshot of: Automated Finance Tracker - Outflows for Line Items

Steps in this workflow

1
Google Drive logo
File added to folder
2
OpenAI logo
Prompt GPT-4o-mini
3
repeat
Iterator
4
Relay.app logo
Transform data
5
Notion logo
Find page(s) in database
6
Notion logo
Add page to database
7
Relay.app logo
Wait for a time

Automate expense tracking by processing financial documents uploaded to Google Drive. When a file is added to a designated folder, GPT-4o-mini analyzes it to extract line items with names, amounts, and dates. Each individual expense is then processed and recorded in your Notion database for comprehensive financial tracking. The system handles multiple entries simultaneously, creating a reliable record of all outflows without manual data entry.

1
Google Drive logo
File added to folder

Activates when a new file is uploaded to your specified Google Drive folder. You'll need to configure which folder should be monitored during workflow setup.

Relay.app screenshot of: File added to folder
2
Prompt GPT-4o-mini

Uses GPT-4o-mini to analyze the uploaded document and extract financial line items. The AI identifies the name, amount, and date for each expense item in the document.

Relay.app screenshot of: Prompt GPT-4o-mini
3
repeat
Iterator

Processes each line item individually by creating separate threads that run in parallel. This step collects all the outputs from the individual item processing and aggregates them into organized lists.

Relay.app screenshot of: Iterator
Iterator steps
4
Relay.app logo
Transform data

Transforms the extracted financial data for each line item into the format required by Notion. This ensures the information is properly structured before being sent to your database.

Relay.app screenshot of: Transform data
5
Notion logo
Find page(s) in database

Searches your Notion database to find any existing pages that might match the current line item. You'll need to specify which Notion database to search during workflow setup.

Relay.app screenshot of: Find page(s) in database
6
Notion logo
Add page to database

Creates a new entry in your Notion database for the expense line item. You'll need to configure which Notion database should receive the expense records during workflow setup.

Relay.app screenshot of: Add page to database
7
Relay.app logo
Wait for a time

Pauses the workflow for one minute after processing all line items. This brief delay helps ensure all database operations complete properly.

Relay.app screenshot of: Wait for a time