Templates / Analyze stocks in Telegram with Twelve Data, GPT-4o and o3-mini

Analyze stocks in Telegram with Twelve Data, GPT-4o and o3-mini

Needs changes

by Femi Ad ✓ · 149 views · created 2026-03-10 · Crypto Trading, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 46 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Telegram, OpenRouter Chat Model, OpenAI and Twelve Data (community).

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. PreProcessing (Edit Fields (Set)): sets 3 fields: message.text, user.name, chat.id
  2. Get Historical Data (Twelve Data): get time series
  3. Get Statistics (Twelve Data): get statistics (fundamentals)
  4. Filter Message Type (Code): runs custom JavaScript code
  5. Merge: merges the data from its input branches
  6. Is Valid Message? (If): checks a condition and branches into true / false
  7. Calculate Risk Metrics (Code): runs custom JavaScript code
  8. Send Unsupported Message (Telegram): uses Telegram
  9. AI Agent: runs an AI agent, with model: Analytics_Model; 4 tools (Stock Analysis Tool, Risk Calculator Tool, Sector Analysis Tool, Stock Comparison Tool); memory: Conversation Memory
  10. Output (Edit Fields (Set)): sets 3 fields: ticker, companyName, response

…plus 28 more steps. See the full node list below.

Services it uses

TelegramOpenRouter Chat ModelOpenAITwelve Data (community)

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent1 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent1 (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

TwelveData Pro Analyst — AI-Powered Stock Analysis Bot for Telegram Turn your Telegram into a personal Bloomberg terminal. Ask any question about any stock — get institutional-grade analysis back in seconds. What Is This? TwelveData Pro Analyst is a complete,…

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