Automate expense logging using an n8n AI agent. This powerful n8n workflow parses unstructured chat messages and logs structured data directly into Google Sheets, leveraging advanced n8n node configurations.
Download this n8n workflow template and start using it instantly.
Keeping track of daily expenses often requires switching contexts or filling out rigid forms. This smart n8n workflow solves that by providing a conversational interface within the n8n platform itself. By leveraging the power of an n8n AI Agent and custom tools, you can simply type an unstructured message—such as 'car wash; 59.3 usd; 25 jan 2024'—and the system automatically extracts the key data points (cost, description, date). The n8n workflow then securely logs this structured information into a designated Google Sheet. This specialized n8n template demonstrates advanced linking between a main automation path and a reusable sub-workflow via the workflow tool n8n node, offering a highly efficient method for data capture and management.
This automation functions across two tightly integrated paths:
saveexpensein_db tool (which is a reference to the sub-workflow) if the message contains expense information.input1 via an internal API call.cost, descr, and date fields.To deploy this comprehensive n8n workflow and its associated n8n templates, follow these steps:
This n8n workflow utilizes several advanced n8n nodes:
When chat message received (n8n trigger): The entry point for the entire automation, activating upon receiving user input in the n8n chat.
AI Agent (n8n node): Orchestrates the conversation and decides which tool to use. Key Configuration: System Message instructs it to act as an accountant and use the save to db tool.
Window Buffer Memory (n8n node): Provides conversational history, allowing the AI Agent to remember previous messages within the session.
Parse msg and save to Sheets (Tool Workflow n8n node): This is a custom tool for the AI Agent. Function: It calls the sub-workflow execution path. Key Configuration: Recursively set to call the current n8n workflow ID.
Workflow Input Trigger (n8n trigger): The entry point for the sub-workflow, receiving the raw text input from the Tool node.
Expense text to JSON parser (Information Extractor n8n node): Function: Uses the OpenAI model to analyze the text and extract structured data (cost, description, date) based on a defined schema. This demonstrates powerful AI integration within an n8n node.
Automate AI output evaluation for legal document extraction. This powerful n8n workflow fetches test cases, extracts data from PDFs, uses GPT-4 via OpenRouter for judgment, and logs results in Google Sheets.

Automate publishing multi-image posts to Bluesky using this custom n8n workflow. Master authentication, binary data handling, and native API integration for complex social media automation.

Use this robust n8n workflow to create a secure PDF Digital Signature API. It supports PAdES baseline levels (B, T, LT, LTA), visible/invisible signatures, and manages dependencies automatically.

Use this efficient n8n workflow template to automatically scrape your XML sitemap and submit every URL to the Google Indexing API. This n8n automation ensures fast indexing.

I am a software engineer and technical lead with over 15 years of experience, and I am passionate about building and scaling SaaS products. ScrapeNinja.net (bootstrapped) has been the most exciting and challenging product I have built so far. ScrapeNinja is primarily aimed at fellow developers and founders of software products, and it tries to alleviate the major pains of reliable, observable and scalable web scraping and feeding data into LLMs.







































