1. πŸ“ˆ Workflow Function Overview

This Activepieces automation captures payment notifications from your Gmail inbox and logs them in a Google Sheet for expense tracking. You can run it in real time (per incoming email) or as a batch (once every 24β€―h), ensuring your sheet stays up to date with minimal manual effort.

Key goals:

How it looks like:

image.png

Simplified workflow diagram:

flowchart TD
    T1[πŸ•’ Scheduled Trigger]
    A1[πŸ” Get OAuth2 Token]
    B1[πŸ“₯ List Gmail Messages]
    L1{{πŸ” Loop: Each Message}}
    C1[πŸ“¬ Get Message Details]
    C2[πŸ“¦ Store Snippet]
    D1[🧠 Aggregate Snippets]
    E1[πŸ€– GPT: Parse to JSON]
    L2{{πŸ” Loop: Each Parsed Row}}
    F1[πŸ“Š Insert Row into Sheet]

    T1 --> A1 --> B1 --> L1
    L1 --> C1 --> C2
    C2 --> D1 --> E1 --> L2 --> F1


2. πŸ›  Detailed Steps (Batch Processing Flow)

A. Scheduled Trigger