AutomationFlowsAI & RAG › Stock Market Information Assistant with Telegram, Yahoo Finance, and Gpt-4 Nano

Stock Market Information Assistant with Telegram, Yahoo Finance, and Gpt-4 Nano

ByArchit Jain @architjn on n8n.io

How it works Listens to Telegram messages to detect stock-related queries. Extracts company name and identifies its exact stock ticker symbol. Searches Yahoo Finance for stock info using the ticker. Fetches and formats the latest stock data like price and key stats. Sends a…

Event trigger★★★★☆ complexityAI-powered15 nodesTelegram TriggerOpenRouter ChatExecute Workflow TriggerTool WorkflowInformation ExtractorHTTP RequestHTTP Request ToolTelegram
AI & RAG Trigger: Event Nodes: 15 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Agent → Execute Workflow Trigger 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": "KgeZgdhkiLTg1WWW",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Stock Information",
  "tags": [],
  "nodes": [
    {
      "id": "554cf17a-245d-419b-a91e-fe7dc40d480d",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "df921720-704e-46f3-8a79-5b0f8f2a6f03",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        220,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "171dcdae-19a7-4aa1-b3d3-49ea6bf7df85",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        0,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3ccac394-c0ca-45cc-b8d4-8be77b49bfa2",
      "name": "Get Ticker Name",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        740,
        240
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7b806c05-f25b-4614-8620-075bffd6b0fe",
      "name": "Information Extractor",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        440,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "33977344-0778-408b-aaac-61eafb2ee1f1",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        480,
        900
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "25a48b46-2bb9-462e-a844-1103e57560a1",
      "name": "Google Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6d6ec3b6-dfac-4008-b61a-1acde5ef51d6",
      "name": "Ticker Name Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7ddc42eb-49be-40ac-ab00-e994d289bbb9",
      "name": "Set Ticker",
      "type": "n8n-nodes-base.set",
      "position": [
        1060,
        660
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0084228a-5b07-4573-ba62-0b94ab1b95d0",
      "name": "Get Stock Info",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        560,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "69088a6d-32a5-4fe8-b10b-5ebf6c88b4e7",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1040,
        0
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5a7048c9-e0b9-4fe3-b03e-12f7551a6780",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5510579b-e103-4e33-b9a5-299fb77cd7df",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "10ef6e8a-7345-494d-bf47-242a66d6b2fe",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        380,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0972cafc-444a-4d63-a52d-6b5e05c199ff",
      "name": "Stock Market Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "18b4779d-af7a-4dbd-8cd4-c685ea431eba",
  "connections": {
    "Google Search": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Stock Info": {
      "ai_tool": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Ticker Name": {
      "ai_tool": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Stock Market Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stock Market Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ticker Name Search": {
      "main": [
        [
          {
            "node": "Set Ticker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Ticker Name Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Google Search",
            "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

How it works Listens to Telegram messages to detect stock-related queries. Extracts company name and identifies its exact stock ticker symbol. Searches Yahoo Finance for stock info using the ticker. Fetches and formats the latest stock data like price and key stats. Sends a…

Source: https://n8n.io/workflows/5039/ — 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

The AI-Powered Shopify SEO Content Automation is an enterprise-grade workflow that transforms product content creation for e-commerce stores. This sophisticated multi-agent system integrates GPT-4o, C

Perplexity Tool, Memory Buffer Window, Agent +15
AI & RAG

RAG CHATBOT Main. Uses telegram, telegramTrigger, lmChatOpenAi, n8n-nodes-mcp. Event-driven trigger; 87 nodes.

Telegram, Telegram Trigger, OpenAI Chat +8
AI & RAG

Who is this for? Agencies, consultants, and service providers who conduct discovery calls and need to quickly turn conversations into professional proposals.

Tool Think, Tool Calculator, Agent Tool +18
AI & RAG

> AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration.

Telegram, Google Gemini, Google Gemini Chat +7
AI & RAG

Template Carnaval - time instagram. Uses toolWorkflow, lmChatOpenAi, memoryBufferWindow, agent. Event-driven trigger; 56 nodes.

Tool Workflow, OpenAI Chat, Memory Buffer Window +10