Jayson Bautista.

Metrics reporting.

A database-to-report pipeline with calculation, AI interpretation and a reporting log.

  • n8n
  • PostgreSQL
  • Gemini
  • Gmail
  • Google Sheets

Personal project · Source-backed architecture

The problem explored

Bringing database queries, calculated metrics and report delivery into one flow.

A database-to-report pipeline with calculation, AI interpretation and a reporting log. The supplied diagrams document the configured connections, rather than verified production outcomes.

Authentic cropped source architecture from my Metrics reporting n8n project
Metrics reportingEditor whitespace removed; original nodes preserved
Full source

Scroll sideways to inspect the diagram. Zoom enlarges labels; Reset zoom restores this preview.

Architecture summary · read alongside the source

  1. Query the data
  2. Calculate metrics
  3. Prepare the report
  4. Deliver & log

Inside the processing logic

Query the data

  • A Schedule Trigger starts the workflow.
  • Two PostgreSQL query nodes run in sequence.
  • The query text and database schema are not visible.

Calculate metrics

  • A Metrics Calculator code node follows the queries.
  • The node name indicates a calculation stage.
  • Specific formulas and metric definitions cannot be inferred from the image.

Prepare the report

  • An AI Agent connects to a Gemini model.
  • A Parser code node follows the agent.
  • The screenshot does not expose the report prompt or output format.

Deliver & log

  • A Gmail send-message node follows parsing.
  • Append Row in Google Sheets is the final visible step.
  • The image shows the configured sequence, not delivery results.

Step through the explanation

Dennice, an original illustrated robot guide, walks through the diagram. Start with Next, or choose autoplay. Captions and a full transcript are included; sound is optional.

Open the film on its own

Source evidence

These are the supplied local files used to write this explanation. Node labels and connections are visible; exported workflow JSON and execution logs were not supplied.

Metrics reporting source diagram 1
Source: automation7/1.png. Open original image

Visible outputs

A Gmail report and a reporting row appended to Google Sheets.

These outputs are represented by nodes in the source. Delivery success and business results require execution evidence.

What this case study does—and doesn't—verify

The case study is grounded in the screenshot's node connections. No revenue figure, reporting accuracy or measured result is claimed. Query correctness and calculation tests remain important pre-use checks.

Next validation steps

Before operational use, I would inspect the workflow export, confirm credentials and permissions, test representative inputs and error paths, and review the outgoing messages with the intended user. These are proposed checks, not completed workflow execution tests.

Next: WhatsApp content approval

Let’s make
something work.

Have a development role, an automation idea or a website project in mind? I’d like to hear about it.

Jayson Bautista · Automation Developer & Web Developer