{
  "name": "Telegram trading bot assistant | LLM powered trading bot for crypto/forex",
  "nodes": [
    {
      "id": "59b30839-00ac-4362-8d96-043462ab9835",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1584,
        -1264
      ],
      "parameters": {
        "width": 426,
        "height": 657,
        "content": "## 🎯 TRADING AGENT OVERVIEW\n\n**Purpose**: AI-powered trading signal generator for crypto and forex assets\n\n**Model**: Google Gemini 2.5 Pro\n\n**How It Works**:\n1. Receives chat trigger from telegram\n2."
      }
    },
    {
      "id": "5766bf3f-9286-427f-89a3-444e52db157f",
      "name": "Switch Models Guide",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -480
      ],
      "parameters": {
        "width": 427,
        "height": 919,
        "content": "## 🤖 HOW TO SWITCH AI MODELS\n\n**Current Model**: Google Gemini 2.5 Pro\n\n### To Use Different Models:\n\n**1. OpenAI (GPT-4, GPT-5)**\n- Delete Google Gemini node\n- Add: `OpenAI Chat Model` node\n- Connect"
      }
    },
    {
      "id": "7637401b-e768-403e-8060-49fc0a5b20b5",
      "name": "Memory Options",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -416
      ],
      "parameters": {
        "width": 435,
        "height": 678,
        "content": "## 💾 ADDING MEMORY (Trade History Context)\n\n**Why Add Memory?**\n- Remember previous signals\n- Track open positions\n- Avoid conflicting signals\n- Context-aware decisions\n- Assist with open positions\n\n\n"
      }
    },
    {
      "id": "b8a6750c-cc69-4c83-895f-928261204c18",
      "name": "Data Flow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -1232
      ],
      "parameters": {
        "width": 566,
        "height": 741,
        "content": "## 📊 DATA FLOW\n\n**Step 1**: Telegram Trigger (Bot) receives user message\n↓\n**Step 2**: AI Agent analyzes request\n↓\n**Step 3a**: Calls \"Get Price History\" (200 candles)\n**Step 3b**: Calls \"Real Time Pr"
      }
    },
    {
      "id": "19de056a-2ac5-4720-b91a-6b2406fac4b9",
      "name": "Tool Configuration",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -416
      ],
      "parameters": {
        "width": 424,
        "height": 704,
        "content": "## ⚙️ TOOL NODES (APIs)\n\n### Get Price History\n- **API**: TwelveData Time Series\n- **Returns**: 200 hourly candles\n- **Data**: Open, High, Low, Close\n- **Usage**: Calculate indicators (SMA, EMA, RSI, "
      }
    },
    {
      "id": "4695dff3-2c77-40cd-b766-f003e22fb3d3",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -960,
        -656
      ]
    },
    {
      "id": "f44d65f8-294a-4506-9f70-73832f33e943",
      "name": "MongoDB Chat Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryMongoDbChat",
      "position": [
        -320,
        48
      ]
    },
    {
      "id": "17b9c702-84a8-4cec-b45c-7bb20b48732e",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        640,
        -656
      ]
    },
    {
      "id": "2ebb5dc5-1295-4d99-a55d-2ad634256c37",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -272,
        -656
      ]
    },
    {
      "id": "e3b7e0b3-2122-4cad-803e-aa43689cfedd",
      "name": "Get Price History1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        112,
        80
      ]
    },
    {
      "id": "c7a13e2f-6233-4d97-ac6b-4e56e4380a4d",
      "name": "Real Time Price1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        288,
        80
      ]
    },
    {
      "id": "593e4d88-e1ee-4bfb-a60e-6c344c235714",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -896,
        272
      ]
    },
    {
      "id": "1a1bb77d-3b26-478c-9906-4c9cc1f00435",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -992
      ],
      "parameters": {
        "width": 420,
        "height": 540,
        "content": "## How to get Chat ID?\n\nSetup Guide\n- Obtain Your Chat ID:\nFor groups: Add @RawDataBot to your group and type /id\nFor personal chats: Message @RawDataBot directly to get your private chat ID\n\n- Config"
      }
    },
    {
      "id": "11c95e39-a2f7-40c3-82f1-86d3b0d9c93a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -1056
      ],
      "parameters": {
        "width": 424,
        "height": 540,
        "content": "## 1. Telegram Bot (API)\n1. Create a bot using Bot_Father on telegram by sending a message to @BotFather.\n\n2. Send a command /newbot in the message.\n\n3. Choose username and then copy the api.\n\n4. Crea"
      }
    },
    {
      "id": "960a93b0-49c9-4006-a7b2-920024e334c4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1584,
        -1264
      ],
      "parameters": {
        "width": 2608,
        "height": 1776,
        "content": ""
      }
    }
  ],
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Real Time Price1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Price History1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}