Templates / Route rental payment and receipt messages with Telegram and OpenAI GPT-4.1

Route rental payment and receipt messages with Telegram and OpenAI GPT-4.1

Ready for 3.0

by Alassane ✓ · 1 views · created 2026-06-27 · Document Extraction, 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 AI workflow has 22 nodes and runs on Telegram events (message). Along the way it connects Telegram and OpenAI.

How it runs

Trigger: On Telegram events (message).

  1. Route Telegram Message (Code): runs custom JavaScript code
  2. Is Full Receipt Command? (If): checks a condition and branches into true / false
  3. Receipt Parse Message (Code): runs custom JavaScript code
  4. Is Receipt Request? (If): checks a condition and branches into true / false
  5. Demo Full Receipt Parsed Reply (Telegram): uses Telegram
  6. Get Last Payment For Receipt (Code): runs custom JavaScript code
  7. Is Receipt Date Reply? (If): checks a condition and branches into true / false
  8. Has Last Payment? (If): checks a condition and branches into true / false
  9. Build Receipt From Pending Payment (Code): runs custom JavaScript code
  10. Tracker Prepare Telegram Text (Code): runs custom JavaScript code

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

Services it uses

TelegramOpenAI

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

From the author

Quick overview This demo workflow listens for Telegram rental messages, routes receipt-related commands, uses OpenAI to classify payments, costs, and booking summaries, then replies with parsed details and a sample receipt flow. How it works 1. Triggers when…

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