AutomationFlowsAI & RAG › Telegram Academic Assistant with OpenAI

Telegram Academic Assistant with OpenAI

Original n8n title: Academic Assistant Chatbot (telegram + Openai)

Academic Assistant Chatbot (Telegram + OpenAI). Uses telegramTrigger, lmChatOpenAi, agent, telegram. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexityAI-powered4 nodesTelegram TriggerOpenAI ChatAgentTelegram
AI & RAG Trigger: Event Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → OpenAI Chat 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
{
  "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
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "8b30f207-8204-4548-8f51-38c387d98ae9",
      "name": "OpenAI Chat Model",
      "position": [
        656,
        208
      ],
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.1,
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "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/n8n-nodes-langchain.agent",
      "typeVersion": 1.7
    },
    {
      "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,
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "index": 0,
            "node": "Academic Assistant AI Agent",
            "type": "main"
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "index": 0,
            "node": "Academic Assistant AI Agent",
            "type": "ai_languageModel"
          }
        ]
      ]
    },
    "Academic Assistant AI Agent": {
      "main": [
        [
          {
            "index": 0,
            "node": "Send Telegram Response",
            "type": "main"
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "America/New_York"
  },
  "versionId": "dd7c6e21-87a4-4e15-9662-72e4c63e9da3",
  "id": "K0TLA1k7P0hL2Ysg",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Academic Assistant Chatbot (Telegram + OpenAI). Uses telegramTrigger, lmChatOpenAi, agent, telegram. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — 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

This workflow is perfect for anyone who wants to receive AI-powered research summaries directly on Telegram. Ideal for people asking frequent product, tech, or decision-making questions and want up-to

Agent, Lm Chat Deep Seek, Memory Buffer Window +4
AI & RAG

QuantumDefender AI is a next-generation intelligent cybersecurity assistant designed to harness the symbolic strength of quantum computing’s promise alongside cutting-edge AI capabilities. This sophis

OpenAI Chat, Agent, Memory Buffer Window +7
AI & RAG

This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifications via Gmail and Telegram.

OpenAI Chat, N8N Nodes Mcp, Memory Buffer Window +4
AI & RAG

Use cases are many: Let users book, check, reschedule, or cancel meetings directly from Telegram. Perfect for solopreneurs, agencies, or teams who want an AI-powered assistant that prevents double-boo

Telegram Trigger, Agent, Gmail Tool +5
AI & RAG

Telegram AI Langchain bot. Uses lmChatOpenAi, memoryBufferWindow, telegram, executeWorkflowTrigger. Event-driven trigger; 12 nodes.

OpenAI Chat, Memory Buffer Window, Telegram +5