AutomationFlowsAI & RAG › Get AI Crypto Price Analysis via Telegram Using Gpt-4o-mini and Twelvedata

Get AI Crypto Price Analysis via Telegram Using Gpt-4o-mini and Twelvedata

ByRahul Joshi @rahul08 on n8n.io

Automate real-time cryptocurrency analysis by turning Telegram messages into professional, AI-generated market reports. 📈🤖 This workflow listens to user queries in Telegram, classifies intent using AI, fetches recent OHLC price data, and generates clear, structured crypto…

Event trigger★★★★☆ complexityAI-powered21 nodesTelegram TriggerHTTP RequestTelegramAgentOpenAI ChatOutput Parser StructuredError TriggerGmail
AI & RAG Trigger: Event Nodes: 21 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Agent → Error 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": "ravw8pJfBAbTWx4f",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Get crypto price analysis via Telegram with AI and TwelveData",
  "tags": [],
  "nodes": [
    {
      "id": "bf76056f-da65-4299-af9e-55292801f93e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4560,
        624
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9efed457-b3c5-4d27-924c-af436266e8ac",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4560,
        1360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "791206b7-cef7-43fc-b728-262355057b55",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5376,
        1344
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5457e798-4066-459c-ad2f-6bb20ac8f2c9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6176,
        1344
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b9fda676-612e-4175-89d3-3ff0e0b71dd5",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4544,
        2320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b6821fa-47d6-49fc-81c2-ff3cc8e7d2cf",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        4592,
        1536
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "108ae602-92f2-4e10-8bfc-85c80f657ac3",
      "name": "Extract Query & Chat ID",
      "type": "n8n-nodes-base.set",
      "position": [
        4816,
        1536
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4bc29c24-e252-469d-88d7-9ab11c380002",
      "name": "Is Price Check Intent?",
      "type": "n8n-nodes-base.if",
      "position": [
        5392,
        1536
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d38f142f-77ca-4077-ab0c-f070317fe758",
      "name": "Fetch OHLC Data from TwelveData",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5616,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "0a67b147-61b3-48e6-a27e-0278cd17ae52",
      "name": "Send Analysis to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        6768,
        1536
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f120ae79-6022-4c3a-9fa8-0202146a049b",
      "name": "Classify Intent with AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5040,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f7277603-5fe3-465d-b605-62ee6fab7479",
      "name": "OpenAI GPT-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        5056,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "10d490e5-8c96-4f48-bc17-4537907ae568",
      "name": "Parse Intent JSON",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        5184,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "b25a0a55-c503-4bd0-b7a7-3fe450d5309d",
      "name": "Analyze Price Trends with AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5840,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5bb88f21-53f4-4050-8c31-1377980a3e6b",
      "name": "OpenAI GPT-4o-mini Analysis",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        5856,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "fc53c04e-043c-4d26-b416-9cc5f39dfaf2",
      "name": "Parse Analysis JSON",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        5984,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "88bfac03-2156-44f9-a12f-22f95d7aa3d7",
      "name": "Structure Analysis Data",
      "type": "n8n-nodes-base.set",
      "position": [
        6192,
        1536
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ebc34c16-7837-4b83-89f8-0541327083e0",
      "name": "Format Message for Telegram",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        6416,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e37fa63a-0b1c-4b46-8c67-166f63345cf4",
      "name": "OpenAI GPT-4o-mini Formatter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        6496,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9f0e2303-fd04-4d52-b2f3-042ca604573c",
      "name": "Workflow Error Handler",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        4640,
        2480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "eebf5a70-5a62-4807-8ed0-e1fae64ecb34",
      "name": "Send Error Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4960,
        2480
      ],
      "parameters": {},
      "typeVersion": 2.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0b90fc4c-df46-4967-a8b9-efee78576f44",
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Extract Query & Chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Intent JSON": {
      "ai_outputParser": [
        [
          {
            "node": "Classify Intent with AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Intent with AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse Analysis JSON": {
      "ai_outputParser": [
        [
          {
            "node": "Analyze Price Trends with AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Is Price Check Intent?": {
      "main": [
        [
          {
            "node": "Fetch OHLC Data from TwelveData",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Error Handler": {
      "main": [
        [
          {
            "node": "Send Error Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Intent with AI": {
      "main": [
        [
          {
            "node": "Is Price Check Intent?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Query & Chat ID": {
      "main": [
        [
          {
            "node": "Classify Intent with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Analysis Data": {
      "main": [
        [
          {
            "node": "Format Message for Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Message for Telegram": {
      "main": [
        [
          {
            "node": "Send Analysis to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4o-mini Analysis": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Price Trends with AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Price Trends with AI": {
      "main": [
        [
          {
            "node": "Structure Analysis Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4o-mini Formatter": {
      "ai_languageModel": [
        [
          {
            "node": "Format Message for Telegram",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch OHLC Data from TwelveData": {
      "main": [
        [
          {
            "node": "Analyze Price Trends with AI",
            "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

Automate real-time cryptocurrency analysis by turning Telegram messages into professional, AI-generated market reports. 📈🤖 This workflow listens to user queries in Telegram, classifies intent using AI, fetches recent OHLC price data, and generates clear, structured crypto…

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

Generate AI viral videos with NanoBanana & VEO3, shared on socials via Blotato 2. Uses @blotato/n8n-nodes-blotato, googleSheets, lmChatOpenAi, toolThink. Event-driven trigger; 94 nodes.

@Blotato/N8N Nodes Blotato, Google Sheets, OpenAI Chat +9
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

Digital marketers, content creators, social media managers, and businesses who want to use AI marketing automation for YouTube Shorts without spending hours on production. This AI workflow helps anyon

OpenAI, HTTP Request, OpenAI Chat +7
AI & RAG

This template is designed for marketers, content creators, and e-commerce brands who want to automate the creation of professional ad videos at scale. It’s ideal for teams looking to generate consiste

Telegram, Telegram Trigger, Google Drive +8
AI & RAG

This automation is designed to help you generate AI-powered music tracks, cover art, and fully rendered music videos — all triggered from a simple Telegram chat and managed via Google Sheets.

OpenAI Chat, Memory Buffer Window, Output Parser Structured +11