Templates / Split shared rental utility bills with gpt-5.6-terra Vision, Postgres and Gmail

Split shared rental utility bills with gpt-5.6-terra Vision, Postgres and Gmail

Ready for 3.0

by Khairul Muhtadin ✓ · 3 views · created 2026-09-03 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 29 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Postgres, Discord and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Normalize forwarded bill (Edit Fields (Set)): sets 8 fields: bill_id, source, received_at…
  2. Find bills from yesterday or older (Postgres): run a query
  3. Has a bill image attached (If): checks a condition and branches into true / false
  4. Build follow up summary (Code): runs custom JavaScript code
  5. Build GPT-4o vision request (Code): runs custom JavaScript code
  6. Alert missing image on Discord (Discord): work with message
  7. Email missing image notice (Gmail): uses Gmail
  8. Are there open bills (If): checks a condition and branches into true / false
  9. Read the bill with GPT-4o vision (HTTP Request): calls api.openai.com (POST)
  10. Post follow up on Discord (Discord): work with message

…plus 17 more steps. See the full node list below.

Services it uses

PostgresDiscordGmail

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Split the utility bill fairly without spreadsheet drama. Snap a photo of the bill and this workflow reads it with AI vision, splits charges across rental units by occupancy weight, and notifies owners and tenants. A daily sweep catches anything left unpaid.…

Excerpt from Khairul Muhtadin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.