Create secure human-in-the-loop approval flows with Postgres and Telegram
Ready for 3.0What 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.
- 02 FN: Verify Signature + TTL (Code): runs custom Python code
- Actions (Switch): routes items into 4 branches
- 04c DB: Update Ticket Status (Postgres): run a query
- 04r0 DB: Get Ticket ID (Postgres): run a query
- 04e DB: Insert Audit Expired (Postgres): run a query
- 04i DB: Insert Audit Invalid (Postgres): run a query
- 04c2 DB: Insert Audit Row (Postgres): run a query
- Execute a SQL query (Postgres): run a query
- 05e Telegram: Notify Expired (Telegram): uses Telegram
- 05i Telegram: Alert Invalid (Telegram): uses Telegram
…plus 10 more steps. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch
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…