Skip to main content

Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub

Workflow preview

Workflow preview
100%
Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub preview
Open on n8n.io

1. Workflow Overview

Quick overview Automates real time stock quote enrichment in Google Sheets using n8n, OpenAI, and the Octagon Agent. Reads ticker symbols from a spreadsheet, fetches a live quote Skill from GitHub,...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.openai, n8n-nodes-octagon.octagonagents, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub
Workflow name
Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub

Quick overview

Automates real-time stock quote enrichment in Google Sheets using n8n, OpenAI, and the Octagon Agent. Reads ticker symbols from a spreadsheet, fetches a live quote Skill from GitHub, and writes structured market data back to the sheet.

How it works

  1. Fetches the live SKILL.md file from GitHub using the provided skills_url.
  2. Reads ticker rows from Google Sheets and loops through each ticker symbol.
  3. OpenAI acts as a prompt builder, creating a clean, ticker-specific Octagon Agent prompt.
  4. The Octagon Agent executes the real-time stock quote request.
  5. A code node parses the Octagon response into structured fields.
  6. Google Sheets is updated with quote data such as current price, change, volume, day range, 52-week range, market cap, exchange, date, and the full Octagon response.

Setup

  1. Connect your Google Sheets, OpenAI, and Octagon credentials in n8n.
  2. Provide the skills_url pointing to the live stock-quote SKILL.md file on GitHub.
  3. Point the Google Sheets nodes at your spreadsheet, ensuring it has a ticker symbol column.
  4. Map the output columns (price, change, volume, ranges, market cap, exchange, etc.) to your sheet.
  5. Run the workflow to populate real-time quote data.

Requirements

  • Google Sheets account and credentials
  • OpenAI credentials
  • Octagon Agent credentials
  • A GitHub skills_url pointing to the stock-quote SKILL.md file
  • A spreadsheet with a ticker symbol column

Customization

  • Add or remove ticker symbols in the sheet to track different stocks
  • Adjust which data fields (price, change, volume, ranges, market cap, exchange, etc.) get written back
  • Modify the OpenAI prompt-builder step to tailor the Octagon Agent query

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - Manual Workflow Trigger

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

Block 8 - Set Stock Quote Task and Skill URL

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

Block 9 - Filter Valid Stock Tickers

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 10 - Loop Over Stock Tickers

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

Block 11 - Build Stock Quote Prompt

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 12 - Execute Octagon Agent

Type / Role
n8n-nodes-octagon.octagonAgents - octagonAgents
Config choices
Version 1

Block 13 - Update Stock Quote Rows in Sheets

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

Block 14 - Wait 1 Second

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - Read Stock Tickers from Sheets

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

Block 16 - Fetch Stock Quote Skill from GitHub

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

Block 17 - Parse Octagon Quote Response

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

3. Summary Table

Workflow Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub
Complexity advanced
Nodes 17
Categories Crypto Trading, AI RAG
Author Octagon
Published 13 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15702/15702.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 Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub do?

Quick overview Automates real time stock quote enrichment in Google Sheets using n8n, OpenAI, and the Octagon Agent. Reads ticker symbols from a spreadsheet, fetches a live quote Skill from GitHub,...

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 RAG use case.