Skip to main content

Generate AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD

Workflow preview

Workflow preview
100%
Generate AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD preview
Open on n8n.io

Important notice

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

1. Workflow Overview

What this workflow does This workflow automates end to end stock analysis using real market data and AI: Reads a list of stock tickers from Google Sheets Fetches fundament...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD
Workflow name
Generate AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD

What this workflow does

This workflow automates end-to-end stock analysis using real market data and AI:

  • Reads a list of stock tickers from Google Sheets

  • Fetches fundamental data (valuation, growth, profitability) and OHLCV price data from EODHD APIs

  • Computes key technical indicators (RSI, SMA 20/50/200, volatility, support & resistance)

  • Uses an AI model to generate:

    • Buy / Watch / Sell recommendation
    • Entry price, stop-loss, and take-profit levels
    • Investment thesis, pros & cons
    • Fundamental quality score (1–10)
  • Stores the final structured analysis back into Google Sheets

This creates a repeatable, no-code stock analysis pipeline ready for decision-making or dashboards.

Data source

Market data is powered by
EODHD APIs

How to configure this workflow

1. Google Sheets (Input)

Create a sheet with a column called:

  • ticker (e.g. MSFT, AAPL, AMZN)

Each row represents one stock to analyze.


2. EODHD APIs

  • Create an EODHD account
  • Get your API token
  • Add it to the HTTP Request nodes as:
    • api_token=YOUR_API_KEY

EODHD APIs


3. AI Model

  • Configure your AI provider (OpenAI / compatible model)
  • The AI receives:
    • Fundamentals
    • Technical indicators
    • Growth potential score
  • It returns structured JSON with recommendations and trade levels

4. Google Sheets (Output)

Results are appended to a Signals tab with:

  • Signal (BUY / WATCH / SELL)
  • Entry, Stop Loss, Take Profit
  • Fundamental score (1–10)
  • Investment thesis and risk notes

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 - When clicking ‘Execute workflow’

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

Block 2 - Get row(s) in sheet

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

Block 3 - Loop Over Items

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

Block 4 - Merge

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

Block 5 - OpenAI Chat Model

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

Block 6 - Code in JavaScript2

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

Block 7 - Append row in sheet

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

Block 12 - Sticky Note4

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

Block 13 - Sticky Note5

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

Block 14 - Fetch stock fundamentals (EODHD)

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

Block 15 - Fetch OHLC price data (EODHD)

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

Block 16 - Generate AI stock analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 17 - Compute indicators and growth score

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

Block 18 - Normalize OHLC data

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

Block 19 - Prepare data for Google Sheets

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

Block 20 - Sticky Note6

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

Block 21 - Sticky Note7

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

Block 22 - Sticky Note8

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

3. Summary Table

Workflow Generate AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD
Complexity advanced
Nodes 22
Categories Crypto Trading, AI Summarization
Author Kevin Meneses
Published 31 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12333/12333.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 AI stock buy/no-buy signals using GPT‑4.1, Google Sheets and EODHD do?

What this workflow does This workflow automates end to end stock analysis using real market data and AI: Reads a list of stock tickers from Google Sheets Fetches fundament...

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.