๐Ÿ“ˆ Analyze stocks via Telegram with GPTโ€‘4, TwelveData, NewsAPI and chart images

โšก 163 views ยท ๐Ÿ“ˆ Crypto Trading & Stock Market

Description

AI-Powered Stock Analysis Agent is a Telegram-based AI workflow it transforms a simple stock name into a complete trading analysis report.

Users send a stock/company name through Telegram, and the workflow automatically:


Node-by-Node Explanation


1. Telegram Stock Request Trigger

What This Node Does

This is the entry point of the workflow.

It listens for incoming Telegram messages and starts the workflow automatically whenever a user sends a stock/company name.

Example

Apple
Tesla
Nvidia

2. Convert to Stock Symbol

What This Node Does

Uses OpenAI to convert a company name into a valid stock ticker symbol.

Example

User InputAI Output
AppleAAPL
TeslaTSLA
MicrosoftMSFT

Why This Node Matters

Users do not need to know the exact stock ticker symbol.

The AI intelligently maps company names into valid trading symbols.


3. Fetch 4H Market Data

What This Node Does

Fetches 4-hour interval market data from the TwelveData API.

Data Returned

Why This Node Matters

Helps analyze:


4. Fetch Daily Market Data

What This Node Does

Retrieves daily stock candle data from TwelveData.

Why This Node Matters

Daily candles help identify:


5. Fetch Weekly Market Data

What This Node Does

Fetches weekly timeframe stock data.

Why This Node Matters

Weekly charts help analyze:


6. Merge Multi-Timeframe Data

What This Node Does

Combines:

into one unified dataset.


7. Structure Technical Dataset

What This Node Does

Organizes all merged technical data into a clean structured object.

Why This Node Matters

Makes it easier for downstream AI nodes to process the technical dataset efficiently.


8. Fetch Stock News

What This Node Does

Fetches recent stock-related news using NewsAPI.

Data Collected


9. News Sentiment Analyzer

What This Node Does

Uses OpenAI to evaluate how recent news may impact the stock price.

AI Analysis Includes


10. Merge Technical and News Data

What This Node Does

Combines:

into one AI-ready context.

Why This Node Matters

Allows the AI agent to analyze both technical and fundamental signals together.


11. Final AI Context Builder

What This Node Does

Structures all combined stock intelligence into a clean dataset.

Why This Node Matters

Prepares the final AI context before advanced trading analysis begins.


12. AI Stock Tracking

What This Node Does

Acts as the master AI trading analyst.

AI Responsibilities

Output Includes


13. Send Telegram Analysis Report

What This Node Does

Sends the final AI-generated stock analysis report back to the Telegram user.

Final Output Includes

๐Ÿ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup