Extract Indonesian stock (IDX) trades from Telegram invoices with Gemini AI — n8n Workflow
Overview
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 sends it to OpenRouter (Gemini) for AI extraction. All detected transactions are displayed in a single confirmation message with ✅ Save All / ❌ Cancel buttons. The extracted data is stored temporarily using workflow static data, ready to be
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 13 nodes, connecting code, httprequest, if.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (13)
HTTP Request
httpRequest
Telegram
telegram
Code
code
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
extract-indonesian-stock-idx-trades-from-telegram-invoices-with-gemini-aifile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Andri Darnius
@drean95
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →