Skip to main content

Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini

Workflow preview

Workflow preview
100%
Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini preview
Open on n8n.io

1. Workflow Overview

AI Institutional Stock Valuation Engine with Risk Scoring & Scenario Targets A professional grade AI equity analysis automation built on n8n that ingests live financial data and news, runs it throu...

Best for

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

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.googlesheets, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.xml, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mo AlBarrak.

Original n8n.io source

1.1 Workflow description

Title
Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini
Workflow name
Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini

AI Institutional Stock Valuation Engine with Risk Scoring & Scenario Targets

A professional-grade AI equity analysis automation built on n8n that ingests live financial data and news, runs it through a dual-LLM valuation engine with a built-in tiebreaker, and delivers disciplined Bear/Base/Bull price targets, BUY/HOLD/SELL verdicts, and risk-adjusted confidence scores — stored in Google Sheets and pushed via Telegram.

Key Features

Dual-Model Parallel Analysis (ChatGPT + Gemini 2.5 Pro): Both models independently analyze each stock as senior equity analysts — conservative, risk-first, and evidence-based — then their outputs are compared for agreement.

Intelligent Tiebreaker System: When models disagree on verdict or their base price targets diverge by more than 20%, a dedicated tiebreaker round activates: ChatGPT takes the bull case, Gemini takes the bear case, and the final output is averaged — eliminating coin-flip results.

Live Financial Data Pipeline (Alpha Vantage): Automatically fetches balance sheet, income statement, cash flow, company profile, and real-time price — rate-limited with Wait nodes to respect API quotas across batch runs.

News Sentiment Ingestion (Seeking Alpha): Parses article feeds (XML/JSON), cleans and normalizes news text, and feeds it into the valuation prompt as qualitative context alongside hard financials.

Smart Caching Layer: Checks for valid cached financial data before hitting APIs — reduces redundant calls, speeds up batch processing, and cuts API costs for unchanged fundamentals.

Piotroski F-Score Integration: Calculates a fundamental quality score from balance sheet signals to separate financially strong companies from deteriorating ones — feeds directly into the confidence index.

Bear / Base / Bull Scenario Targets: Every stock receives three price targets with full institutional logic: sector-aware multiples, phase recognition (growth vs. mature), implied P/E sanity checks, and discount rate tiering.

Confidence Scoring (20–90): Combines F-Score, model agreement gap, news sentiment, and financial health into a single index — giving you a read on how conviction-worthy the output is.

Google Sheets I/O: Reads a watchlist of tickers from a sheet, upserts results (insert or update by row), and maintains a full historical log of valuations per stock per date.

Telegram Delivery: Pushes formatted valuation summaries directly to a Telegram channel or group after each batch cycle completes.

Ideal For

Portfolio managers and analysts running nightly watchlist reviews Retail investors who want institutional-grade structure, not chatbot guesses Fintech builders integrating a structured valuation API into their stack Educators and research teams studying systematic equity valuation frameworks Technical Notes

Rate Limiting: Wait nodes are placed before each Alpha Vantage API call to prevent throttling during multi-ticker batch runs. Adjust wait durations based on your API plan tier.

API Requirements: Alpha Vantage (financial data), OpenAI (ChatGPT), Google Gemini, Seeking Alpha (news), Google Sheets OAuth.

Caching: Financial fundamentals are cached and validated before fetching — cache TTL logic is handled via a dedicated cache lookup and validity check branch.

Tiebreaker Logic: Triggered when BUY/SELL/HOLD verdicts differ OR when pt_base gap exceeds 20% of current price — ensures no ambiguous output reaches the sheet without resolution.

Use Cases

Nightly Watchlist Runner — Schedule daily runs across a portfolio, log targets and verdicts to Sheets, alert via Telegram when signals shift. Confidence Threshold Alerts — Trigger notifications only when confidence drops below a threshold or a new BUY signal appears. API Backend — Expose results via webhook for downstream dashboards, apps, or research tools. Backtesting Feed — Build a historical record of AI-generated targets vs. actual price movement over time. Why This Is Different

Most AI stock tools are wrappers around a single prompt. This workflow encodes a full institutional valuation pipeline: dual-model consensus, a structured tiebreaker, scenario banding, F-Score filtering, and news-aware risk extraction — all running automatically on a schedule with no manual input required. The output isn't a narrative guess. It's a structured, defensible JSON record designed to be acted on.

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 - loop_over_tickers

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Read_tickers_from_Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - write_sentiment_to_sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 4 - Schedule Trigger

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

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Code in JavaScript

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

Block 12 - Merge

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

Block 13 - XML

Type / Role
n8n-nodes-base.xml - xml
Config choices
Version 1

Block 14 - Merge1

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

Block 15 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 16 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 17 - Edit Fields2

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

Block 18 - Merge2

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

Block 19 - Is Cache Valid?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 20 - Cache Lookup

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 21 - alphavantage - Balance Sheet

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

Block 22 - alphavantage - Profile

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

Block 23 - alphavantage - Income Statement

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

Block 24 - Merge3

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

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

3. Summary Table

Workflow Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini
Complexity advanced
Nodes 88
Categories Crypto Trading, AI Summarization
Author Mo AlBarrak
Published 15 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14059/14059.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 Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini do?

AI Institutional Stock Valuation Engine with Risk Scoring & Scenario Targets A professional grade AI equity analysis automation built on n8n that ingests live financial data and news, runs it throu...

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.