{
  "name": "Interactive Russian language tutor bot with GPT-4o and Telegram",
  "nodes": [
    {
      "id": "5c259a9b-75bc-4873-bbc2-34a913c46e21",
      "name": "Start: Receive Message on Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -368,
        848
      ]
    },
    {
      "id": "30a57d49-8269-48ac-ac31-7873341c3afa",
      "name": "Route by Input Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        80,
        816
      ]
    },
    {
      "id": "9f15049b-d560-4d93-b71c-f378ddb76abc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -144
      ],
      "parameters": {
        "width": 572,
        "height": 356,
        "content": "## 📖 Getting Started in 4 Steps\n\n1) 🔐 **Set Up Access**\nTelegram: Insert the bot token (created in BotFather) inside the Telegram Trigger and Telegram nodes.\nAI/ML API: Enter your API key in the AI/ML"
      }
    },
    {
      "id": "acfa62af-19ff-42a9-8b27-c59b46a6937d",
      "name": "Main prompt for all other messages",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        1104
      ]
    },
    {
      "id": "eececf03-0441-47a3-b5ed-fba1bef88d0f",
      "name": "Generate personalised answer",
      "type": "n8n-nodes-aimlapi.aimlApi",
      "position": [
        688,
        848
      ]
    },
    {
      "id": "7c387949-7b74-47fc-9150-c65e464283f2",
      "name": "Send message to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        912,
        848
      ]
    },
    {
      "id": "2a17ec7d-31bf-4508-8302-39751e8059b1",
      "name": "Show Typing Indicator",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -144,
        848
      ]
    },
    {
      "id": "a4c67a53-9300-429f-a81c-a7c9c6a0c901",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        688
      ],
      "parameters": {
        "width": null,
        "height": 368,
        "content": "### Checks message.text for #vocabulary, #grammar, #quiz, or falls back"
      }
    },
    {
      "id": "b32afd82-8c14-46f1-a028-ce6b6d69c7d7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -144
      ],
      "parameters": {
        "width": 368,
        "height": 352,
        "content": "## 🔍 Node Overview\n\n- **Telegram Trigger**: Listens for incoming messages.  \n- **Show Typing Indicator**: Immediately shows “typing…” in chat.  \n- **Route by Input Type (Switch)**: Detects your tag an"
      }
    },
    {
      "id": "9024416b-fdee-49d0-95f9-098cc08b12da",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        560
      ],
      "parameters": {
        "width": 288,
        "height": 720,
        "content": "## Chooses from given prompts"
      }
    },
    {
      "id": "1971bb3f-fe43-4244-915e-825b254a9a8d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        752
      ],
      "parameters": {
        "width": 384,
        "height": 272,
        "content": "## Generates and sends answer to Telegram"
      }
    },
    {
      "id": "c696bb62-4e7d-454d-b2a9-c0684127b7ac",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        224
      ],
      "parameters": {
        "width": 960,
        "height": 272,
        "content": "## 🟡 **Example:**\n\n**Input:**\n   ```\n\"#vocabulary кукуруза\"\n   ```\n**Output:**\n   ```\nКукуруза (Kukurúza) - Corn Pronunciation: koo-koo-ROO-zah  \nSentence: Я люблю есть кукурузу на гриле. I love eatin"
      }
    },
    {
      "id": "6983ce9e-0209-4928-9884-c9ed3c2c5dc7",
      "name": "Vocabulary prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        656
      ]
    },
    {
      "id": "0934b8df-9b9c-41d9-8a86-88b252fc7c73",
      "name": "Grammar prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        800
      ]
    },
    {
      "id": "a6c5ca38-12d4-4dfa-b002-30ffe4af8123",
      "name": "Quiz prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        960
      ]
    },
    {
      "id": "46003c53-9ef7-4b53-88c2-06bce360209b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        768
      ],
      "parameters": {
        "width": 384,
        "height": 272,
        "content": "### Checks for messages and emulates typing"
      }
    }
  ],
  "connections": {
    "Quiz prompt": {
      "main": [
        [
          {
            "node": "Generate personalised answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grammar prompt": {
      "main": [
        [
          {
            "node": "Generate personalised answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vocabulary prompt": {
      "main": [
        [
          {
            "node": "Generate personalised answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Input Type": {
      "main": [
        [
          {
            "node": "Vocabulary prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Grammar prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Quiz prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Main prompt for all other messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Show Typing Indicator": {
      "main": [
        [
          {
            "node": "Route by Input Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate personalised answer": {
      "main": [
        [
          {
            "node": "Send message to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Main prompt for all other messages": {
      "main": [
        [
          {
            "node": "Generate personalised answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start: Receive Message on Telegram": {
      "main": [
        [
          {
            "node": "Show Typing Indicator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}