Templates / Create secure human-in-the-loop approval flows with Postgres and Telegram

Create secure human-in-the-loop approval flows with Postgres and Telegram

Ready for 3.0

by Mohammad · 678 views · created 2025-09-28 · Ticket Management

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 21 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Postgres and Telegram.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. 02 FN: Verify Signature + TTL (Code): runs custom Python code
  2. Actions (Switch): routes items into 4 branches
  3. 04c DB: Update Ticket Status (Postgres): run a query
  4. 04r0 DB: Get Ticket ID (Postgres): run a query
  5. 04e DB: Insert Audit Expired (Postgres): run a query
  6. 04i DB: Insert Audit Invalid (Postgres): run a query
  7. 04c2 DB: Insert Audit Row (Postgres): run a query
  8. Execute a SQL query (Postgres): run a query
  9. 05e Telegram: Notify Expired (Telegram): uses Telegram
  10. 05i Telegram: Alert Invalid (Telegram): uses Telegram

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

Services it uses

PostgresTelegram

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 (6)

From the author

🔐 Human-in-the-Loop Approval Flow (n8n + Postgres + Telegram) 👥 Who’s it for Teams that need a manager approval step before a ticket or request can change status. Great for internal ops, IT requests, or any workflow where “a human must sign off.” ⚡ What it…

Excerpt from Mohammad'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.