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 chats in Telegram with an AI agent on OpenAI’s gpt-5.6-terra. When someone asks for a drawing, the agent calls a second path of the same workflow, which makes the picture and sends it to the chat.
Telegram chatbot that draws pictures on request 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.
A Telegram message
It starts when someone sends your bot a message:
A reply in the Telegram chat, and a photo when the user asked for a drawing
What you need before you start.
Chat
Takes each message and sends the answers and the photo.
NeedsA bot token from BotFather, in a Telegram credential
Chat model and picture model
Runs the agent with gpt-5.6-terra and draws pictures with gpt-image-2.6-flare.
NeedsAn OpenAI API key, in an OpenAI credential
Checked by Mindket on 13 Nov 2026
This n8n workflow is a Telegram chatbot that can also draw. An AI agent answers each message, keeps ten messages of memory for each chat and calls the user by first name now and then. When the user asks for a picture, the agent calls a tool. The tool runs a second path of the same workflow. That path asks OpenAI’s gpt-image-2.6-flare for the image and sends it back as a photo. Eleven nodes do the work, beside one sticky note.
People who want to try an agent that calls a tool in n8n, and small teams who want a chat bot that makes an illustration when asked. Skip it if you need a bot that edits photos you send, because it only draws from words.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Marketing | Social media managers | Draw a quick illustration for a post from a chat | A manager asks the bot for a flat drawing of a coffee cup and gets it in the chat. |
| Education | Teachers | Make simple pictures for a lesson sheet | A teacher asks for a drawing of the water cycle and pastes it into a handout. |
| Hobby | Makers | Try ideas for posters or logos | A maker asks for three poster ideas one after the other. |
| Development | n8n builders | Learn how an agent calls a workflow as a tool | A builder copies the tool pattern into a bot of their own. |
You need some n8n and two accounts: Telegram and OpenAI. The tool calls this workflow by its own id, so save the workflow before you test it.
Any n8n that Telegram can reach over HTTPS and that can reach OpenAI will run it.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts are involved.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own with a public HTTPS address |
| Telegram | A bot made with BotFather, and its token in a Telegram credential |
| OpenAI | An API key in an OpenAI credential, used by the chat model and by the picture node |
workflow.json.Listen for incoming events, Telegram, Correct errors and Send back an image.OpenAI Chat Model and Generate image with OpenAI.gpt-5.6-terra and the picture model is gpt-image-2.6-flare.Chat with the bot. Ask for a drawing in plain words, such as a lighthouse at dusk. The agent decides to call the tool, and the photo arrives as a separate message.
| To change | Where |
|---|---|
| The assistant’s rules and tone | The system message in AI Agent |
| When the tool is used | The name and description in Draw image Tool |
| The picture model and its options | modelId and the options in Generate image with OpenAI |
| How many messages it remembers | contextWindowLength in Window Buffer Memory |
A user writes "Draw a lighthouse at dusk."
The agent calls Draw_image with that request, OpenAI returns the picture, and Send back an image posts it to the chat. The agent then answers with a short message of its own.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A tool is something an agent may use when a request needs it. Here the tool is another path of the same workflow.
For experts. The tool is a Tool Workflow node, version 1, that calls this workflow by $workflow.id. It passes the request as query and adds the chat id. Execute Workflow Trigger receives both.
| Node | What it does | What to know |
|---|---|---|
Draw image Tool | Lets the agent start the second path | It sends the request as query and the chat id as chat_id |
Execute Workflow Trigger | Starts the second path when the tool is called | It sits in the same workflow as the chat path |
Generate image with OpenAI | Asks OpenAI for one picture from the request | A gpt-image model returns the picture as a file, not a link |
Send back an image | Posts the file to the chat as a photo | It reads the binary field data |
add response field | Returns the word Success to the agent | The agent uses it to know the tool finished |
Two models were replaced because OpenAI retired them, and Mindket did not run the new picture step.
gpt-4-1106-preview. OpenAI’s deprecations page, read on 12 November 2026, shuts it down on 23 October 2026 and names gpt-5.6-sol as the replacement. Mindket’s copy uses the cheaper gpt-5.6-terra, which OpenAI lists with function calling. Switch back to gpt-5.6-sol if you want the named onegpt-image-2.6-flare. That model returns the picture as a file, so Send back an image now uploads a fileAn n8n workflow that chats in Telegram with an AI agent on OpenAI's gpt-5.6-terra. When someone asks for a drawing, the agent calls a second path of the same workflow, which makes the picture and sends it to the chat.
workflow.json: the workflow as n8n exports it, twelve nodes. Eleven do the work and one is a sticky note that labels the picture path. It holds no credential.README.md: these notes.gpt-4-1106-preview. OpenAI's deprecations page, read on 12 November 2026, lists it as shut down on 23 October 2026, with gpt-5.6-sol as the replacement. Mindket's copy uses gpt-5.6-terra, which OpenAI's model page lists with function calling. A chat bot needs less than the named model, and you can switch model to gpt-5.6-sol if you prefer it.dall-e-3. The same page lists DALL-E 3 as shut down on 12 May 2026. Mindket's copy uses n8n's OpenAI node with gpt-image-2.6-flare, a model OpenAI's page lists for image generation.Send back an image used to send a link. It now sends the file that Generate image with OpenAI produces.Draw image Tool, Draw_image and Generate image with OpenAI, and the sticky note was reworded. The tool's description no longer names a model.workflow.json.Listen for incoming events, Telegram, Correct errors and Send back an image.OpenAI Chat Model and Generate image with OpenAI.gpt-5.6-terra and the picture model is gpt-image-2.6-flare.Listen for incoming events starts the run for each text message and passes it to AI Agent.AI Agent answers with OpenAI Chat Model. Window Buffer Memory keeps the last ten messages of the chat. The system message asks for Telegram's HTML format and for the user's first name now and then.Draw image Tool. The tool starts this same workflow and passes the request as query and the chat id as chat_id.Execute Workflow Trigger receives them. Generate image with OpenAI draws one picture from query, and Send back an image posts it to the chat as a photo.add response field returns the word Success to the agent, which then writes its own answer.Telegram sends that answer in HTML mode. If Telegram rejects the HTML, Correct errors sends the text with its special characters escaped.AI Agent.Draw image Tool.modelId and the options in Generate image with OpenAI.contextWindowLength in Window Buffer Memory.query (n8n's source). The picture node reads that field.NOTICE.md 582 B README.md 5 KB workflow.json 9 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…