Send Taiwan stock pre-market briefings using TWSE, CNYES, OpenAI and Telegram
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (cron 0 0 8 * * 1-5). Along the way it connects OpenAI and Telegram. It also calls twse.com.tw and api.cnyes.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 0 8 * * 1-5).
- Set Configuration Parameters (Edit Fields (Set)): sets 4 fields: telegramChatId, topN, watchlist…
- Calculate Trading Date (Code): runs custom JavaScript code
- Fetch TWSE Fund Data (HTTP Request): calls twse.com.tw (GET)
- Fetch TWSE Market Index (HTTP Request): calls twse.com.tw (GET)
- Fetch CNYES Headlines (HTTP Request): calls api.cnyes.com (GET)
- Merge: merges the data from its input branches
- Format for AI Prompt (Code): runs custom JavaScript code
- AI Summary Generation (OpenAI): message (text)
- Compose Telegram Message (Code): runs custom JavaScript code
- Send to Telegram Chat (Telegram): send message
Services it uses
Other Telegram + OpenAI templates (807)
HTTP calls to: twse.com.tw, api.cnyes.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow runs every weekday morning, fetches the latest available TWSE institutional trading and market data plus CNYES headlines, summarizes it with OpenAI into a short briefing, and sends the result as plain text to a Telegram chat. How…