Mindket

Telegram chatbot with a welcome and an image command

Newversion 1 · updated

Overview

An n8n workflow that runs a small Telegram chatbot with three behaviours. It chats in the user’s language, welcomes new users and draws a picture when a message starts with an image command.

Telegram chatbot with a welcome and an image command 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.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps, behind a public HTTPS address
  • Telegram: chat with the bot in a private chat
  • More commands: add a rule to the switch and a branch behind it

Platform

Connects 2 apps

How it works

Trigger

A Telegram message

It starts when someone sends your bot a message:

  • A plain text, which gets a chat reply
  • The command /start, which gets a welcome
  • The command /image followed by a request, which draws a picture

Actions

  1. The message text is made safe and the settings are added, including the system command and the typing sign
  2. The bot shows a typing sign, or an upload sign for /image, and waits for the settings
  3. A switch sorts the message by its first characters
  4. OpenAI’s gpt-5.6-terra writes a chat reply or a welcome in the user’s language
  5. For /image, OpenAI’s gpt-image-2.6-flare draws the picture and it is sent as a photo
  6. Any other command gets a short help text

Result

A reply in the Telegram chat: a chat answer, a welcome, a photo or a help text

Integrations

What you need before you start.

Telegram

Chat

Takes each message, shows the typing sign and sends the replies and the photo.

NeedsA bot token from BotFather, in a Telegram credential

OpenAI

Chat model and picture model

Writes the chat replies and the welcome with gpt-5.6-terra and draws pictures with gpt-image-2.6-flare.

NeedsAn OpenAI API key, in an OpenAI credential

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
12 steps, starting on a Telegram event
AI
3 steps call an AI model: Chat_mode, Greeting and Create an image
Sign-ins
Signs in to: Telegram
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 6 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow runs a small Telegram chatbot on OpenAI. A message that does not start with a slash gets a chat reply in the user’s own language, with a few emojis. The command /start gets a welcome message. The command /image, followed by a request, draws a picture and sends it as a photo. Any other command gets a short help text. Twelve nodes do the work, beside four sticky notes.

Who it suits

Beginners who want a first Telegram bot with a few commands, and small teams who want a friendly assistant that replies in the language the user writes. Skip it if you need memory, because each message is answered on its own.

Who uses it, and how
IndustryWho uses itHow they use itExample
CommunityCommunity managersGreet new members and answer their questions in their languageA manager’s bot welcomes a Spanish speaker in Spanish and answers a question.
EducationTeachersLet students try an AI assistant and ask it for picturesA teacher shows a class how to ask the bot for a drawing of a volcano.
Small businessShop ownersOffer a friendly chat helper next to the shopAn owner points customers to the bot for quick questions.
Learning n8nBeginnersStudy a switch with several routesA beginner changes the welcome text and sees which route runs.

You need basic n8n skills and two accounts: Telegram and OpenAI. Telegram sends each message to your n8n over HTTPS, so n8n needs a public address.

Where to use it

Any n8n that Telegram can reach over HTTPS and that can reach OpenAI will run it.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps, behind a public HTTPS address
  • Telegram: chat with the bot in a private chat
  • More commands: add a rule to the switch and a branch behind it

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts are involved.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own with a public HTTPS address
TelegramA bot made with BotFather, and its token in a Telegram credential
OpenAIAn API key in an OpenAI credential, used by the chat, the welcome and the picture nodes
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add a Telegram credential with your bot token and select it in Telegram Trigger, Send Typing action, Text reply, Send image and Send error message.
  3. Add an OpenAI credential and select it in Chat_mode, Greeting and Create an image.
  4. Check the models. The chat and the welcome use gpt-5.6-terra, and the pictures use gpt-image-2.6-flare.
  5. Open Settings and read the system command. It sets the bot’s tone.
  6. Activate the workflow. Then send your bot /start, a plain sentence and /image a red kite.

How to use it

Write to the bot in Telegram. A plain sentence gets a chat reply, the command /start gets the welcome, and a message that begins with /image and a space draws a picture. The bot shows a typing sign or an upload sign while it works.

What to change for a different result
To changeWhere
The bot’s tone and language rulessystem_command in Settings
The chat and welcome modelmodelId in Chat_mode and Greeting
The picture modelmodelId in Create an image
The help textThe text in Send error message
The commandsThe rules in CheckCommand

Example

A user sends the message /image a watercolour lighthouse at dusk.

The switch sends it to Create an image, which draws a lighthouse from the words after the command. Send image posts the picture in the chat as a photo.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A switch is a box that sends each message down one of several lines. Here the first characters of the message pick the line.

For experts. The router is a Switch node, version 1, with three rules and a fallback output. A Merge node waits for the typing sign before the message is routed.

Where to look closer
NodeWhat it doesWhat to know
PreProcessingMakes sure message.text existsA photo or sticker becomes an empty text, which the first rule sends to the chat step
SettingsHolds the system command and the typing signThe typing sign is upload_photo for /image and typing for the rest
MergeWaits for the typing sign and the settingsIt passes on the settings data
CheckCommandRoutes by the start of the textText with no slash, /start, /image with a space, and everything else
Send imageSends the picture from the step before as a photoIt reads the binary field data

Good to know

The old OpenAI node was replaced, and Mindket did not run the new chat or picture steps.

  • Old node: the file used n8n’s older OpenAI node, which n8n hides in its node list. Mindket’s copy uses the current OpenAI node for the chat, the welcome and the picture
  • Chat models: the chat step used gpt-4, which OpenAI’s deprecations page, read on 12 November 2026, lists as shut down on 23 October 2026. The welcome step had no model, so the old node used its default gpt-3.5-turbo, shut down on the same date. Mindket’s copy uses gpt-5.6-terra for both
  • Picture model: the old node drew with DALL-E 2 by default, which the same page lists as shut down on 12 May 2026. Mindket’s copy uses gpt-image-2.6-flare, which returns a file, so Send image now uploads a file
  • Settings: the temperature of 0.8 and the limit of 500 tokens were dropped. Reasoning tokens count against a token limit, so a low limit can cut an answer before any text appears
  • Memory: each message is answered on its own, with no earlier messages
  • Replies: Telegram’s Markdown mode rejects text with an unpaired _ or *, and a message holds at most 4096 characters (Telegram’s Bot API page)
  • Your data: your messages and picture requests go to OpenAI. The file holds no credential

README and files

README

Telegram chatbot with a welcome and an image command

An n8n workflow that runs a small Telegram chatbot with three behaviours. It chats in the user's language, welcomes new users and draws a picture when a message starts with an image command.

What is inside

  • workflow.json: the workflow as n8n exports it, sixteen nodes. Twelve do the work and four are sticky notes that label the routes. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • The chat, the welcome and the picture steps used n8n's older OpenAI node, which n8n hides in its node list. Mindket's copy uses the current OpenAI node for all three.
  • The chat step used gpt-4, which OpenAI's deprecations page, read on 12 November 2026, lists as shut down on 23 October 2026. The welcome step had no model, so the old node used its default, gpt-3.5-turbo, shut down on the same date. Both now use gpt-5.6-terra.
  • The old picture step drew with its default model, DALL-E 2, at 512x512. The same page lists DALL-E 2 as shut down on 12 May 2026. The picture step now uses gpt-image-2.6-flare, a model OpenAI's page lists for image generation.
  • A gpt-image model returns the picture as a file, not as a link. Send image used to send a link. It now sends the file that Create an image produces.
  • The temperature of 0.8 and the limit of 500 tokens were dropped, together with the two values in Settings that held them. The model page lists no temperature setting, and reasoning tokens count against a token limit.
  • Several nodes were linked to credentials in the author's n8n. The links are gone, so select your own.
  • Nothing else. The system command, the router and the help text are the file's own.

Before you start

  • An n8n instance with a public HTTPS address, on n8n Cloud or your own server. Telegram sends every message to that address.
  • A Telegram bot made with BotFather, and its token.
  • An OpenAI API key.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add a Telegram credential with your bot token. Select it in Telegram Trigger, Send Typing action, Text reply, Send image and Send error message.
  3. Add an OpenAI credential and select it in Chat_mode, Greeting and Create an image.
  4. Check the models. The chat and the welcome use gpt-5.6-terra, and the pictures use gpt-image-2.6-flare.
  5. Open Settings and read the system command. It sets the bot's tone and asks for a reply in the user's language.
  6. Activate the workflow. Then send your bot /start, a plain sentence and /image a red kite.

How a run goes

  1. Telegram Trigger starts the run for each update. PreProcessing makes sure message.text exists, and Settings adds the system command and the typing sign.
  2. Send Typing action shows typing, or upload_photo for an image command. Merge waits for it and the settings before the message goes on.
  3. CheckCommand routes by the start of the text. Text with no slash goes to Chat_mode. The text /start goes to Greeting. A text that starts with /image and a space goes to Create an image. Everything else goes to Send error message.
  4. Chat_mode and Greeting ask gpt-5.6-terra for a reply, and Text reply sends it in Telegram's Markdown mode.
  5. Create an image draws a picture from the words after the command, and Send image posts it as a photo.

Change the result

  • Tone and language rules: system_command in Settings.
  • Chat and welcome model: modelId in Chat_mode and Greeting.
  • Picture model: modelId in Create an image.
  • Help text: the text in Send error message.
  • Commands: the rules in CheckCommand.

Good to know

  • Mindket did not run this workflow. Telegram and OpenAI were not called, and nobody asked the bot for a real reply or picture. The models, fields and limits come from OpenAI's and Telegram's docs and from n8n's source, read on 12 November 2026.
  • With the current OpenAI node, the simplified reply of the chat step holds the text in message.content, which is where Text reply reads it.
  • Each message is answered on its own. The bot keeps no earlier messages.
  • A photo or a sticker has no text. PreProcessing turns it into an empty text, and the first rule of CheckCommand sends it to the chat step as an empty message.
  • Telegram's Markdown mode rejects text with an unpaired _ or *, and a message holds at most 4096 characters (Telegram's Bot API page).
  • Telegram accepts photos up to 10 MB (Telegram's Bot API page).
  • Your messages and picture requests go to OpenAI.
  • The file holds no credential and no key.
Files
NOTICE.md  549 B
README.md  5 KB
workflow.json  10 KB

3 files, 16 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

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…

New

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…

New

ACE-Step 1.5 XL SFT

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…

New

Similar in Productivity

See all in Productivity

Guizang PPT Skill

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…

New29.8k

Frontend Slides

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…

New32.3k

IPTV

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…

New144k