Templates / Extract Indonesian stock (IDX) trades from Telegram invoices with Gemini AI

Extract Indonesian stock (IDX) trades from Telegram invoices with Gemini AI

Ready for 3.0

by Andri Darnius · 78 views · created 2026-03-22 · 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 13 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram. It also calls openrouter.ai over HTTP.

How it runs

Trigger: On Telegram events (message, callback query).

  1. Parse Message (Code): runs custom JavaScript code
  2. Route Type (Switch): routes items into 2 branches
  3. Extract File Info (Code): runs custom JavaScript code
  4. Download File (Telegram): work with file
  5. Prepare File (Code): runs custom JavaScript code
  6. Build Request (Code): runs custom JavaScript code
  7. OpenRouter Extract (HTTP Request): calls openrouter.ai (POST)
  8. Parse Invoice (Code): runs custom JavaScript code
  9. Invoice Error? (If): checks a condition and branches into true / false
  10. Reply Invoice Error (Telegram): uses Telegram

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

Services it uses

Telegram

HTTP calls to: openrouter.ai

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

Automatically extract stock transactions from Indonesian broker trade confirmation documents sent via Telegram using AI vision. How it works: Send a PDF or image of your broker trade confirmation to the bot. The workflow downloads the file, encodes it, and…

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