n8n workflow template · 9 nodes · OpenAI
AI agent: expense tracker in Google Sheets and n8n chat is a free n8n workflow template that starts when a chat message is received and works with OpenAI and Google Sheets. It has 9 nodes, 7 of them AI nodes (AI Agent, Chat Trigger, OpenAI Chat Model and Window Buffer Memory). The notes inside the workflow say: “LLM will parse your message to structured JSON and save as a new row into Google Sheet.” To run it, you add your own credentials for Google Sheets OAuth2 and OpenAI API.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
LLM will parse your message to structured JSON and save as a new row into Google Sheet.
Clone this Sheet
(File -> Make a copy)
Choose this sheet into "Save expense into Google Sheets" node.
open "Parse msg and save to Sheets" node (which is an n8n sub-workflow executor tool) and choose the SAME workflow in the dropdown. it will allow n8n to call "Workflow Input Trigger" properly when needed.
Sent message to chat, something like "car wash; 59.3 usd; 25 jan 2024"
you should get a response: Your expense saved, here is the output of save sub-workflow:{"cost":59.3,"descr":"car wash","date":"2024-01-25","msg":"car wash; 59.3 usd; 25 jan 2024"}
and new row in Google sheets should be inserted!
The 9 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us