Extract spend details (template)

用于提取和整理支出详情的自动化工作流程,能够从Gmail中获取发票和支付信息,提取关键数据如日期、金额和服务名称,并将其结构化输出到Google Sheets。此流程简化了财务记录的管理,提高了数据处理效率,确保准确记录每笔交易,帮助用户轻松追踪和分析支出。

7/8/2025
24 nodes
Complex
9mcuunepnynvvzb8manualcomplexgmailtriggerextractfromfilesplitoutlangchaingooglesheetssticky noteadvancedfilesstoragelogicrouting
Categories:
Communication & MessagingComplex WorkflowManual TriggeredData Processing & Analysis
Integrations:
GmailTriggerExtractFromFileSplitOutLangChainGoogleSheetsSticky Note

Target Audience

  • Accountants and Bookkeepers: Professionals who need to efficiently process and record transaction data from various email sources.
    - Small Business Owners: Individuals managing their own finances who require automated tracking of expenses and payments.
    - Financial Analysts: Experts who analyze spending patterns and financial data for insights and reporting.
    - Individuals with Multiple Payment Methods: Users who receive various transaction notifications and need to consolidate them for personal finance management.
  • Problem Solved

  • Automates the extraction and organization of transaction details from invoices and payment notifications received via email, reducing manual data entry and the potential for errors.
    - Provides a structured format for accounting records, making it easier to track expenses, categorize them, and analyze financial data.
    - Integrates with Google Sheets, allowing for seamless updates and access to financial data in a familiar environment.
  • Workflow Steps

  • Trigger Emails: The workflow starts by monitoring a Gmail account for incoming emails with specific labels related to invoices and payments.
    - Extract Attachments: It downloads and processes attachments from these emails, specifically PDFs containing transaction details.
    - HTML Extraction: The workflow extracts relevant spending information from the email body using CSS selectors, focusing on elements tagged with .spend-table.
    - Data Structuring: Extracted data is parsed into structured formats, including essential fields like date, amount, service, category, and currency.
    - Conditional Logic: The workflow uses a switch node to handle different types of emails (multiple payments, single payments, invoices) and directs the flow accordingly.
    - Data Insertion: Finally, the structured transaction details are appended to a designated Google Sheet for easy access and analysis.
  • Customization Guide

  • Email Filters: Users can modify the Gmail filters to include or exclude specific labels based on their email organization preferences.
    - Parsing Logic: Adjust the CSS selectors in the HTML extraction step to target different HTML structures if the email format changes.
    - Schema Modifications: Customize the input schema for structured output parsers to include additional fields relevant to your accounting needs.
    - Google Sheets Configuration: Change the target Google Sheet and column mappings to fit your specific data organization requirements, ensuring the output aligns with existing records.