Skip to main content

Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent

Workflow preview

Workflow preview
100%
Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Video Guide I prepared a detailed guide that demonstrates the complete process of building a trading agent automation using n8n and Telegram, seamlessly integrating various functions for stock anal...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolworkflow, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.set, 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 Mark Shcherbakov.

Original n8n.io source

1.1 Workflow description

Title
Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent
Workflow name
Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent

Video Guide

I prepared a detailed guide that demonstrates the complete process of building a trading agent automation using n8n and Telegram, seamlessly integrating various functions for stock analysis.

Youtube Link

Who is this for?

This workflow is perfect for traders, financial analysts, and developers looking to automate stock analysis interactions via Telegram. It’s especially valuable for those who want to leverage AI tools for technical analysis without needing to write complex code.

What problem does this workflow solve?

Many traders desire real-time analysis of stock data but lack the technical expertise or tools to perform in-depth analysis. This workflow allows users to easily interact with an AI trading agent through Telegram for seamless stock analysis, chart generation, and technical evaluation, all while eliminating the need for manual interventions.

What this workflow does

This workflow utilizes n8n to construct an end-to-end automation process for stock analysis through Telegram communication. The setup involves:

  • Receiving messages via a Telegram bot.
  • Processing audio or text messages for trading queries.
  • Transcribing audio using OpenAI API for interpretation.
  • Gathering and displaying charts based on user-specified parameters.
  • Performing technical analysis on generated charts.
  • Sending back the analyzed results through Telegram.

Setup

  1. Prepare Airtable:

    • Create simple table to store tickers.
  2. Prepare Telegram Bot:

    • Ensure your Telegram bot is set up correctly and listening for new messages.
  3. Replace Credentials:

    • Update all nodes with the correct credentials and API keys for services involved.
  4. Configure API Endpoints:

    • Ensure chart service URLs are correctly set to interact with the corresponding APIs properly.
  5. Start Interaction:

    • Message your bot to initiate analysis; specify ticker symbols and desired chart styles as required.

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 - Window Buffer Memory

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

Block 2 - Get Chart

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2

Block 3 - AI Agent

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

Block 4 - Telegram Trigger

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

Block 5 - Send Analysis

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

Block 6 - Workflow Input Trigger

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

Block 7 - response

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

Block 8 - Download Chart

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

Block 9 - Get Chart URL

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

Block 10 - Send Chart

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

Block 11 - OpenAI Chat Model

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

Block 12 - Switch

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

Block 13 - Transcribe

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

Block 14 - Download File

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

Block 15 - Set Text

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

Block 16 - Set Values

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

Block 17 - Technical Analysis

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

Block 18 - Webhook

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

Block 19 - Set Text1

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

Block 20 - Save Ticker

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 21 - Loop Over Items

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

Block 22 - Schedule Trigger

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

Block 23 - Run Agent

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

Block 24 - Get tokens

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

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

3. Summary Table

Workflow Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent
Complexity advanced
Nodes 35
Categories Crypto Trading, AI Chatbot
Author Mark Shcherbakov
Published 01 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3053/3053.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 Technical stock analysis with Telegram, Airtable and a GPT-powered AI agent do?

Video Guide I prepared a detailed guide that demonstrates the complete process of building a trading agent automation using n8n and Telegram, seamlessly integrating various functions for stock anal...

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