Templates / Manage catering event quotes and countdowns with Postgres, Gmail, OpenAI and Telegram

Manage catering event quotes and countdowns with Postgres, Gmail, OpenAI and Telegram

Ready for 3.0

by Khairul Muhtadin ✓ · 2 views · created 2026-09-09 · Document Extraction, Multimodal AI

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 AI workflow has 63 nodes and runs when an HTTP POST request hits its webhook URL (plus 4 other triggers). Along the way it connects Telegram, Gmail, OpenAI Chat Model and Postgres.

How it runs

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

  1. Normalize Intake (Edit Fields (Set)): sets 14 fields: client_name, client_email, event_type…
  2. Normalize Update (Edit Fields (Set)): sets 4 fields: event_id, field, value…
  3. Fetch Open Events (Postgres): run a query
  4. Normalize Done (Edit Fields (Set)): sets 3 fields: event_id, final_headcount, _valid
  5. Validate Intake (If): checks a condition and branches into true / false
  6. Validate Update (If): checks a condition and branches into true / false
  7. Parse Open Events (Code): runs custom JavaScript code
  8. Validate Done (If): checks a condition and branches into true / false
  9. Build Quote Context (Code): runs custom JavaScript code
  10. Build Invalid Intake Notice (Edit Fields (Set)): sets 3 fields: tg_text, esubj, ebody

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

Services it uses

TelegramGmailOpenAI Chat ModelPostgres

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

From the author

Catering quotes, invoices, and reminders that run themselves. This workflow takes catering inquiries through webhooks, has OpenAI (gpt-5.6-terra) draft the quote and invoice emails, stores every event in Postgres, and keeps clients and the owner in the loop…

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.