AutomationFlowsAI & RAG › AI Stock Analysis with Wikipedia & OpenAI

AI Stock Analysis with Wikipedia & OpenAI

Original n8n title: Ai-powered Automated Stock Analysis

ByDerek Cheung @derekcheungsa on n8n.io

Streamline your fundamental stock analysis process with AI-powered automation.

Event trigger★★★★☆ complexityAI-powered20 nodesTool WikipediaTool CodeGoogle DocsOpenAI
AI & RAG Trigger: Event Nodes: 20 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #2209 — we link there as the canonical source.

This workflow follows the Google Docs → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "r4bMowyhxvkDU0m2",
  "meta": {
    "templateId": "2187"
  },
  "name": "AI-powered automated stock analysis v1",
  "tags": [],
  "nodes": [
    {
      "id": "752b6d3c-3b56-40ff-919c-c891099bfbe7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4e68e40c-961d-4ba6-916f-ce31ce674362",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        620,
        420
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "43b16e72-b4df-44f7-a28e-df8f52d8b276",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f0b89837-1122-4cd9-9778-e87b4ae61754",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        219.77789757412438
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4e9c44f2-19b2-421b-84f9-89e7c675b0dd",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        218.42975741239854
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ec2f719a-9a1b-4680-a11d-0a79bb0f12c6",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        217.35124528301833
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3d12f3ba-fbf3-432c-b3b8-690b9108afbc",
      "name": "Wikipedia",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "position": [
        1100,
        660
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a3068dd6-5cb3-43b4-84ef-9d6a0cd7bd55",
      "name": "Wikipedia1",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "position": [
        1820,
        660
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0abb20f8-43f8-4bcc-a0d7-cde7701e7995",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        320,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "824bb7a7-e37e-4bac-a61c-941c0e28f405",
      "name": "SEC10 Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        960,
        660
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ae742ebe-9525-4662-83fe-7f5e74d02383",
      "name": "Delegate work",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1360,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "46f8429b-f8d9-497f-818f-61101a497f66",
      "name": "Combine all sections from researchers",
      "type": "n8n-nodes-base.merge",
      "position": [
        2040,
        420
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "c12fc735-7ba1-4f50-8cc2-00547f16925f",
      "name": "Draft report",
      "type": "n8n-nodes-base.code",
      "position": [
        2220,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ab907e6b-ed3e-4445-924b-96bb0f00d465",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2700,
        214.11570889487825
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2493a9a6-56ea-4f41-9600-d9e475da1106",
      "name": "Create new Google docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        2780,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "fe20ea2e-67d5-49f8-b264-ccdfc9202c43",
      "name": "Update document with report",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        2960,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "eee7c40a-5e89-435e-b108-2679afea4bd6",
      "name": "SEC10 Tool1",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1660,
        660
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "20579888-81c9-4c8f-8d97-c9845bb727fe",
      "name": "Polish report",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2380,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "84cd6bda-19cc-4f0e-8ff3-a0a84c3b47e4",
      "name": "Plan work for team",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        920,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d7527f28-39fd-4710-8f41-87c825927a1f",
      "name": "Do detailed research",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1640,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9cc188c1-e55c-491e-b57f-31ea31862389",
  "connections": {
    "Settings": {
      "main": [
        [
          {
            "node": "Plan work for team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia": {
      "ai_tool": [
        [
          {
            "node": "Plan work for team",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SEC10 Tool": {
      "ai_tool": [
        [
          {
            "node": "Plan work for team",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia1": {
      "ai_tool": [
        [
          {
            "node": "Do detailed research",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SEC10 Tool1": {
      "ai_tool": [
        [
          {
            "node": "Do detailed research",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Draft report": {
      "main": [
        [
          {
            "node": "Polish report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delegate work": {
      "main": [
        [
          {
            "node": "Combine all sections from researchers",
            "type": "main",
            "index": 1
          },
          {
            "node": "Do detailed research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Polish report": {
      "main": [
        [
          {
            "node": "Create new Google docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Plan work for team": {
      "main": [
        [
          {
            "node": "Delegate work",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Do detailed research": {
      "main": [
        [
          {
            "node": "Combine all sections from researchers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create new Google docs": {
      "main": [
        [
          {
            "node": "Update document with report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test workflow\"": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine all sections from researchers": {
      "main": [
        [
          {
            "node": "Draft report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Streamline your fundamental stock analysis process with AI-powered automation.

Source: https://n8n.io/workflows/2209/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This n8n workflow automates the creation of 9:16 aspect ratio images optimized for short-form video content and thumbnails. It integrates multiple tools to retrieve content, generate scripts, and crea

Airtable, OpenAI, HTTP Request +1
AI & RAG

This n8n workflow automates the process of retrieving products from Printify, generating optimized product titles and descriptions, and updating them back to the platform. It leverages OpenAI for cont

HTTP Request, Tool Calculator, Tool Wikipedia +3
AI & RAG

Stop applying manually. This workflow acts as your personal AI recruiter, automating the end-to-end process of finding high-quality jobs, tailoring your resume, and preparing personalized outreach ema

Google Docs, HTTP Request, OpenAI +2
AI & RAG

Transform blog posts, YouTube videos, or any text into LinkedIn posts, Twitter threads, email newsletters, and more with GPT-5.1 Content creators who want to maximize reach from every piece of content

Form Trigger, HTTP Request, OpenAI +1
AI & RAG

Consultants, agencies, freelancers, and professional service firms who need to create customized proposals and contracts quickly and efficiently.

Google Sheets Trigger, OpenAI, Google Docs +5