Send Taiwan stock pre-market briefings using TWSE, CNYES, OpenAI and Telegram
6022cfdc-b372-42ac-9bde-47ebe3c9edd1
Latency
27674ms
Cost
$0.0000
Tokens
0
Status
partialgemini-2.5-flash
Workflow Graph
Trace
[
{
"data": {
"nodeType": "trigger"
},
"event": "node_start",
"nodeId": "schedule-trigger",
"timestamp": 1783445864829
},
{
"data": {
"kind": "n8n-nodes-base.scheduleTrigger"
},
"event": "seeded",
"nodeId": "trigger",
"timestamp": 1783445864829
},
{
"data": {
"status": "ok",
"nodeType": "trigger"
},
"event": "node_end",
"nodeId": "schedule-trigger",
"timestamp": 1783445864829
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "config-node",
"timestamp": 1783445864830
},
{
"data": {
"inputKeys": [
"tradingDate",
"trading_date_fmt",
"date",
"weekday",
"prompt_style",
"watchlist",
"top_n",
"foreign_top_buy_text",
"foreign_top_sell_text",
"limit_up_count",
"limit_up_text",
"limit_down_count",
"limit_down_text",
"taiex_text",
"news_text",
"tradingDateFmt",
"text",
"telegramChatId"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783445864830
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "config-node",
"timestamp": 1783445864830
},
{
"data": {
"nodeType": "code"
},
"event": "node_start",
"nodeId": "calc-trading-date",
"timestamp": 1783445864830
},
{
"event": "execution error (simulated): $now is not defined",
"nodeId": "code",
"timestamp": 1783445864831
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "code",
"latencyMs": 0,
"operation": "exec-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783445864831
},
{
"data": {
"status": "ok",
"nodeType": "code"
},
"event": "node_end",
"nodeId": "calc-trading-date",
"timestamp": 1783445864831
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "twse-t86-fetch",
"timestamp": 1783445864832
},
{
"event": "fetching GET https://www.twse.com.tw/rwd/zh/fund/T86",
"nodeId": "http",
"timestamp": 1783445864832
},
{
"data": {
"url": "https://www.twse.com.tw/rwd/zh/fund/T86",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783445864832
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "twse-t86-fetch",
"timestamp": 1783445865570
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "twse-mi-index-fetch",
"timestamp": 1783445865572
},
{
"event": "fetching GET https://www.twse.com.tw/rwd/zh/afterTrading/MI_INDEX",
"nodeId": "http",
"timestamp": 1783445865572
},
{
"data": {
"url": "https://www.twse.com.tw/rwd/zh/afterTrading/MI_INDEX",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783445865572
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "twse-mi-index-fetch",
"timestamp": 1783445865649
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "cnyes-fetch",
"timestamp": 1783445865650
},
{
"event": "fetching GET https://api.cnyes.com/media/api/v1/newslist/category/headline",
"nodeId": "http",
"timestamp": 1783445865650
},
{
"data": {
"url": "https://api.cnyes.com/media/api/v1/newslist/category/headline",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783445865650
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "cnyes-fetch",
"timestamp": 1783445866051
},
{
"data": {
"nodeType": "merge"
},
"event": "node_start",
"nodeId": "merge-sources",
"timestamp": 1783445866053
},
{
"data": {
"inputCount": 3
},
"event": "merged 3 inputs",
"nodeId": "merge",
"timestamp": 1783445866053
},
{
"data": {
"status": "ok",
"nodeType": "merge"
},
"event": "node_end",
"nodeId": "merge-sources",
"timestamp": 1783445866053
},
{
"data": {
"nodeType": "code"
},
"event": "node_start",
"nodeId": "format-data",
"timestamp": 1783445866053
},
{
"event": "execution error (simulated): $now is not defined",
"nodeId": "code",
"timestamp": 1783445866055
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "code",
"latencyMs": 0,
"operation": "exec-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783445866055
},
{
"data": {
"status": "ok",
"nodeType": "code"
},
"event": "node_end",
"nodeId": "format-data",
"timestamp": 1783445866055
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "openai-summarize",
"timestamp": 1783445866056
},
{
"data": {
"messages": 1,
"maxTokens": 1500
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1783445866056
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783445866056
},
{
"data": {
"error": "Google Gemini API error (500): {\n \"error\": {\n \"code\": 500,\n \"message\": \"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\",\n \"status\": \"INTERNAL\"\n }\n}\n",
"status": "error",
"degraded": true,
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "openai-summarize",
"timestamp": 1783445892000
},
{
"data": {
"nodeType": "code"
},
"event": "node_start",
"nodeId": "compose-message",
"timestamp": 1783445892000
},
{
"event": "execution error (simulated): $now is not defined",
"nodeId": "code",
"timestamp": 1783445892001
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "code",
"latencyMs": 0,
"operation": "exec-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783445892001
},
{
"data": {
"status": "ok",
"nodeType": "code"
},
"event": "node_end",
"nodeId": "compose-message",
"timestamp": 1783445892002
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "telegram-send",
"timestamp": 1783445892003
},
{
"data": {
"mode": "write",
"status": "ok",
"service": "telegram",
"safeMode": true,
"latencyMs": 500,
"operation": "sendMessage",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783445892503
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "telegram-send",
"timestamp": 1783445892503
}
]