{
  "name": "Academic Assistant Chatbot (Telegram + OpenAI)",
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "id": "20a2d959-5412-447b-a2c4-7736b6b758b3",
      "name": "Telegram Trigger",
      "position": [
        256,
        208
      ],
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.1,
      "notes": "This telegramTrigger node performs automated tasks as part of the workflow."
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "8b30f207-8204-4548-8f51-38c387d98ae9",
      "name": "OpenAI Chat Model",
      "position": [
        656,
        208
      ],
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1.1,
      "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow."
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('Telegram Trigger').item.json.message.text }}",
        "options": {
          "systemMessage": "You are a helpful and knowledgeable AI academic assistant. Your goal is to assist students with their assignments, studies, and general academic inquiries. Provide explanations, study tips, help with research, clarify concepts, and offer guidance on academic tasks. Be encouraging, precise, and polite. Always ensure your responses are relevant to academic support."
        }
      },
      "id": "68303b67-2203-41e8-b370-220d884d2945",
      "name": "Academic Assistant AI Agent",
      "position": [
        912,
        208
      ],
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1.7,
      "notes": "This agent node performs automated tasks as part of the workflow."
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $('Academic Assistant AI Agent').item.json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "id": "15bb5fd5-7dfe-4da9-830c-e1d905831640",
      "name": "Send Telegram Response",
      "position": [
        1152,
        208
      ],
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "notes": "This telegram node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-7842db22",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    },
    {
      "id": "adc6e976-b8c6-57e4-8873-8cf2f531dae6",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# Academic Assistant Chatbot (Telegram + OpenAI)\n\n## Purpose and structure\nThis folder contains the **Academic Assistant Chatbot (Telegram + OpenAI)** workflow. Its executable nodes use `noOp`, `stopAndError`, `telegram`, `telegramTrigger`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nTelegram Trigger\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/Academic Assistant Chatbot (Telegram + OpenAI).json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "20a2d959-5412-447b-a2c4-7736b6b758b3": {
      "main": [
        [
          {
            "node": "error-handler-20a2d959-5412-447b-a2c4-7736b6b758b3-d3388f15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8b30f207-8204-4548-8f51-38c387d98ae9": {
      "main": [
        [
          {
            "node": "error-handler-8b30f207-8204-4548-8f51-38c387d98ae9-061eba47",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "15bb5fd5-7dfe-4da9-830c-e1d905831640": {
      "main": [
        [
          {
            "node": "error-handler-15bb5fd5-7dfe-4da9-830c-e1d905831640-68c06fa7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "UTC",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "description": "Automated workflow: Academic Assistant Chatbot (Telegram + OpenAI). This workflow processes data and performs automated tasks.",
  "notes": "Excellent quality workflow: Academic Assistant Chatbot (Telegram + OpenAI). This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}
