Templates / Send Taiwan stock pre-market briefings using TWSE, CNYES, OpenAI and Telegram

Send Taiwan stock pre-market briefings using TWSE, CNYES, OpenAI and Telegram

Ready for 3.0

by floviq · 44 views · created 2026-05-24 · Crypto Trading, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Set Configuration Parameters (Edit Fields (Set)): sets 4 fields: telegramChatId, topN, watchlist…
  2. Calculate Trading Date (Code): runs custom JavaScript code
  3. Fetch TWSE Fund Data (HTTP Request): calls twse.com.tw (GET)
  4. Fetch TWSE Market Index (HTTP Request): calls twse.com.tw (GET)
  5. Fetch CNYES Headlines (HTTP Request): calls api.cnyes.com (GET)
  6. Merge: merges the data from its input branches
  7. Format for AI Prompt (Code): runs custom JavaScript code
  8. AI Summary Generation (OpenAI): message (text)
  9. Compose Telegram Message (Code): runs custom JavaScript code
  10. Send to Telegram Chat (Telegram): send message

Services it uses

OpenAITelegram

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

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…

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