• Home
  • About
Book a Discovery Call

Back

How I Built an AI Stock Analyst Inside Telegram

Imagine sending a quick message to your AI assistant and getting back a professional stock chart and detailed analysis — all without leaving Telegram.

That’s exactly what I set out to build.

The Idea

I wanted a simple, chat-based way to request technical analysis for any stock ticker — no messy apps, no manual charting. My vision:

Type a message in Telegram like: “Analyze AAPL.”

Get a chart with MACD, candlestick patterns, volume, and support/resistance levels.

Receive a well-written breakdown highlighting trends and potential market moves.

The Workflow

The core of the system runs in n8n. When I send a message in Telegram:

  • The agent extracts the stock ticker (e.g., AAPL) and passes it to my custom “Get Chart” tool.
  • This tool calls the Chart-Image API, generates a technical chart, and returns a URL.
  • OpenAI analyzes the chart image for key insights — candlestick trends, MACD signals, volume changes, and support/resistance points.
  • The output is then refined by OpenAI Chat model for more natural, in-depth commentary.
  • Within seconds, the chart and analysis land back in my Telegram chat.

    The Output Example

    When I tested with Apple (AAPL), the AI instantly delivered:

  • Trend: Short-term bearish with consecutive red candlesticks.
  • MACD: Bearish sentiment confirmed.
  • Key Support: ~$220
  • Key Resistance: ~$260
  • No reversal signals — momentum likely to continue short-term.
  • The commentary felt like it came from a professional trader — all automated.

    Why This Is Powerful

  • Speed: Market analysis in seconds.
  • Simplicity: Works entirely in Telegram.
  • Flexibility: Any ticker, any time.
  • It’s not a replacement for financial advice, but it’s a huge productivity boost for anyone who tracks markets.

    If you want to explore the exact workflow and replicate this setup, you can download it for free from my AI community. It’s a complete, ready-to-use system — just connect your Telegram and APIs.

    Yar Asfand Malik

    Author: Yar Asfand Malik

    Published: 15 Aug, 2025

    © 2025 Yar Malik. All rights reserved. Powered by passion, purpose, and AI.