Telegram Gpt Chat

Telegram Gpt ChatTelegram Bots

A simple Telegram bot workflow that forwards incoming Telegram messages to OpenAI’s GPT (via the LangChain nodes) and returns the model’s reply back to the user. Ideal for creating a lightweight chat interface so you can interact with GPT directly inside Telegram.

What You Can Do

  • Receive messages from Telegram users and trigger the workflow automatically.
  • Send the incoming message text to OpenAI’s chat model (via the n8n LangChain integration) and generate a conversational reply.
  • Return the AI-generated response to the same Telegram chat, preserving the conversation context per message.

Quick Start

  1. Import this workflow into n8n.
  2. Configure credentials for Telegram (Telegram Bot API token) and OpenAI (API key) in n8n.
  3. Update the Telegram Trigger node webhook if needed (n8n will usually handle this when activating the workflow).
  4. Activate the workflow and send a message to your Telegram bot to test. The workflow will respond with GPT-generated text (with emojis, per the default prompt).