Extract Indonesian stock (IDX) trades from Telegram invoices with Gemini AI
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 forwarded to any destination on confirm.
Features:
Supports PDF and image (JPG, PNG, screenshot) Handles multi-transaction documents — all shown in one batch confirmation Indonesian market aware — quantity in lots (1 lot = 100 shares) Extracts: ticker, company name, type, quantity, price, fee, total, date, broker, confidence score Low-confidence extractions handled gracefully Modular — connect the confirm output to any node (HTTP Request, Google Sheets, Airtable, Notion, database, etc.) Required credentials:
Telegram account — your bot token from BotFather OpenRouter API — Header Auth credential (Authorization: Bearer sk-or-v1-...) Setup:
Import workflow Add credentials Expose n8n via HTTPS (Cloudflare Tunnel, ngrok, or public server) Activate workflow — webhook registers automatically Send a broker PDF to your bot Default model: google/gemini-2.5-flash-lite via OpenRouter (free tier available)
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments