anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that turns a Telegram bot into a chat assistant. Each message goes to an OpenAI model through an AI agent that is told to answer helpfully with emojis, and the answer comes back to the same chat.
Chat with an OpenAI model through a Telegram bot is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Telegram message
It starts when someone sends your bot a message, and reads:
A Telegram reply from an OpenAI model, with a few emojis
What you need before you start.
Chat
Receives each message and sends the answer back.
NeedsTelegram bot token
Language model
Writes the answer to each message.
NeedsOpenAI API key
Checked by Mindket on 13 Nov 2026
This n8n workflow connects a Telegram bot to an OpenAI model. Someone sends the bot a message, and the text goes to an AI agent that is asked to answer helpfully with emojis. The agent’s reply goes back to the same chat. Four nodes do the work. It is a small base that you can grow into a fuller chatbot.
Beginners who want a first Telegram bot that answers questions, and builders who want a base to extend with tools or memory. Skip it if you need the bot to remember a conversation, since each message is answered on its own.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Education | Teachers | Give a class a bot that explains topics | A teacher shares the bot and students ask it to explain fractions. |
| Personal | Hobbyists | Chat with a model from a phone without a new app | A user asks for a recipe idea and gets it with a few emojis. |
| Software | Builders | Start a bot project and add tools later | A builder adds a calendar tool to the agent. |
| Writing | Writers | Brainstorm names and titles in a chat | A writer asks for ten titles for a post. |
You need a little n8n: import a file, add two credentials and make a Telegram bot.
Any n8n that Telegram can reach over HTTPS and that can reach OpenAI will run it. The bot answers in the chat the message came from.
OpenAI Chat Model with another chat model node, such as Gemini or ClaudeAI AgentDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is a Telegram bot, an OpenAI key and a model choice.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own, open to Telegram over HTTPS |
| Telegram | A bot and its token from BotFather |
| OpenAI | An API key |
workflow.json.Telegram Trigger and Telegram.OpenAI Chat Model.OpenAI Chat Model, pick a model. The file sets none, so the node falls back to gpt-5-mini, which OpenAI lists for shutdown on 11 December 2026.Open the chat with your bot in Telegram and write a message. The bot answers in a few seconds. The instruction in front of your text asks for a helpful answer with emojis, so replies come with a few.
| To change | Where |
|---|---|
| The bot’s style | The prompt in AI Agent |
| The model | OpenAI Chat Model |
| Whether it remembers | Add a memory node to AI Agent |
| What gets sent back | Telegram |
A user writes, Give me three names for a bakery.
The bot replies in the chat with three name ideas and a few emojis. Check facts in a reply before you rely on them, since a model wrote it.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A Telegram bot is an account that a program controls. Telegram hands each message sent to it over to n8n, and n8n answers through the bot. An AI agent is a model with instructions that can also use tools. Here it uses none, so it works as a plain chat assistant.
For experts. Telegram Trigger listens for message updates only. AI Agent builds its prompt from the message text with an instruction in front. It has no system message, no memory and no tools. Telegram reads the answer from the agent’s output field and the chat id from the trigger, and it turns off n8n’s attribution line.
| Node | What it does | What to know |
|---|---|---|
Telegram Trigger | Takes each new message | Edited messages and channel posts are ignored |
OpenAI Chat Model | Supplies the model | The file sets none, so the node falls back to its default |
AI Agent | Answers the message | The prompt asks for a helpful answer with emojis |
Telegram | Sends the answer to the chat the message came from | n8n’s attribution line is off |
The bot answers anyone who finds it, has no memory and runs on a model that is close to retirement.
OpenAI Chat Model the default gpt-5-mini, and the file sets none. OpenAI’s deprecations page, read on 12 November 2026, lists gpt-5-mini for shutdown on 11 December 2026 with gpt-5.6-terra as the replacement. Pick a model in the node before you publishTelegram sends in Telegram’s Markdown mode, where an unmatched _ or * makes Telegram refuse the message, and the user gets no reply. Telegram also refuses text over 4,096 charactersAn n8n workflow that turns a Telegram bot into a chat assistant. Someone sends the bot a message, an AI agent asks an OpenAI
model for a helpful answer with emojis, and the answer comes back to the same chat.
workflow.json: the workflow as n8n exports it, 4 nodes, no sticky notes. It holds no credential.README.md: these notes.workflow.json.Telegram Trigger and Telegram.OpenAI Chat Model.OpenAI Chat Model, pick a model. The file sets none, so the node falls back to gpt-5-mini, which OpenAI lists forTelegram Trigger takes a new message. It listens for message updates only.AI Agent builds its prompt from the message text, with an instruction in front that asks for a helpful answer with emojis.OpenAI Chat Model.Telegram sends the agent's answer to the chat the message came from, with n8n's attribution line turned off.AI Agent.OpenAI Chat Model. To use Gemini or Claude, put that provider's chat model node in its place.Telegram.OpenAI Chat Model the default gpt-5-mini, and the file sets none. OpenAI's deprecations page, readgpt-5-mini for shutdown on 11 December 2026 with gpt-5.6-terra as the replacement. Pick a modelTelegram sends in Telegram's Markdown mode. Telegram's Bot API page says _, *, a backtick and [ outside an entity need aNOTICE.md 621 B README.md 4 KB workflow.json 2 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
zarazhangrui · Skill
Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…
iptv-org · Kit
Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…