Skip to main content

Stock market analysis & prediction with GPT, Claude & Gemini via Telegram

Workflow preview

Workflow preview
100%
Stock market analysis & prediction with GPT, Claude & Gemini via Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Introduction Automates stock market analysis using multiple AI models to predict trends, analyze sentiment, and generate consensus based investment insights. For traders and analysts seeking data d...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.lmchatanthropic

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

Title
Stock market analysis & prediction with GPT, Claude & Gemini via Telegram
Workflow name
Stock market analysis & prediction with GPT, Claude & Gemini via Telegram

Introduction

Automates stock market analysis using multiple AI models to predict trends, analyze sentiment, and generate consensus-based investment insights. For traders and analysts seeking data-driven forecasts by eliminating manual research and combining AI perspectives for accurate predictions.

How It Works

Daily trigger fetches stock data, news, ratings, and sentiment → AI models analyze each source → OpenAI generates report → Three AI validators (OpenAI, Anthropic, Gemini) cross-verify → Consensus evaluation → Telegram alert with insights.

Workflow Template

Schedule → Fetch Stock Data → Fetch News → Fetch Ratings → Fetch Sentiment → AI Analysis → Combine → Generate Report (GPT) → Validate (3 AIs) → Evaluate Consensus → Send Telegram

Workflow Steps

  1. Data Collection: Scheduled trigger fetches prices, news, analyst ratings, and social trends
  2. AI Analysis: Separate models analyze stocks, news sentiment, ratings, and social discussions
  3. Report Generation: OpenAI GPT combines analyses into comprehensive market report
  4. Multi-AI Validation: Three AI models independently validate predictions for accuracy
  5. Consensus Building: Evaluates AI agreement to determine confidence levels
  6. Alert Delivery: Sends Telegram alerts with buy/sell/hold recommendations

Setup Instructions

  1. Schedule: Configure daily trigger time
  2. Data Sources: Add API keys for stock data, news APIs, and social platforms
  3. AI Models: Configure OpenAI, Anthropic, and Google Gemini credentials
  4. Telegram: Create bot and add token
  5. Thresholds: Define consensus requirements for recommendations

Prerequisites

  • Stock data API (Alpha Vantage, Yahoo Finance)
  • News API key
  • Social media API
  • OpenAI API key
  • Anthropic API key
  • Google Gemini API key
  • Telegram bot token

Use Cases

Day Trading: Real-time volatile stock analysis with multiple AI perspectives. Portfolio Management: Daily consensus reports for rebalancing.

Customization

Add technical indicators (RSI, MACD). Include crypto analysis. Integrate portfolio tracking. Add email/Slack notifications. Configure sector-specific analysis.

Benefits

Eliminates hours of daily research. Reduces AI hallucination through multi-model validation. Provides 24/7 monitoring. Combines multiple data sources.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Daily Stock Check

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Workflow Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Fetch Stock Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 4 - Analyze Stock Trends

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Predict Future Trends

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Format Telegram Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Send Telegram Alert

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Fetch News Sentiment

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 9 - Fetch Analyst Ratings

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 10 - Fetch Social Media Sentiment

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 11 - Analyze News Sentiment

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Process Analyst Ratings

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Analyze Social Sentiment

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Combine All Analysis

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 15 - Generate Comprehensive Recommendation

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - OpenAI GPT Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Anthropic Claude Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 18 - Google Gemini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 19 - Prepare AI Validation Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Combine AI Validations

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 21 - Evaluate AI Consensus

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - AI Validator 1 - OpenAI

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 23 - AI Validator 2 - Anthropic

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 24 - AI Validator 3 - Gemini

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Stock market analysis & prediction with GPT, Claude & Gemini via Telegram
Complexity advanced
Nodes 27
Categories Crypto Trading, AI Summarization
Author Cheng Siong Chin
Published 03 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10460/10460.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Stock market analysis & prediction with GPT, Claude & Gemini via Telegram do?

Introduction Automates stock market analysis using multiple AI models to predict trends, analyze sentiment, and generate consensus based investment insights. For traders and analysts seeking data d...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.