Extract Indonesian stock (IDX) trades from Telegram invoices with Gemini AI
Ready for 3.0What 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).
- Parse Message (Code): runs custom JavaScript code
- Route Type (Switch): routes items into 2 branches
- Extract File Info (Code): runs custom JavaScript code
- Download File (Telegram): work with file
- Prepare File (Code): runs custom JavaScript code
- Build Request (Code): runs custom JavaScript code
- OpenRouter Extract (HTTP Request): calls openrouter.ai (POST)
- Parse Invoice (Code): runs custom JavaScript code
- Invoice Error? (If): checks a condition and branches into true / false
- Reply Invoice Error (Telegram): uses Telegram
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Switch
n8n-nodes-base.switch - Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
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…