Templates / Generate text & image responses in Telegram channels with GPT-4 and TGPT

Generate text & image responses in Telegram channels with GPT-4 and TGPT

Ready for 3.0

by Vigh Sandor ✓ · 532 views · created 2025-10-17 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs on a schedule (every 10 seconds). Along the way it connects Telegram.

How it runs

Trigger: On a schedule (every 10 seconds).

  1. Config (Edit Fields (Set)): sets 3 fields: bot_token, channel_id, last_offset
  2. Get Updates (HTTP Request): calls an HTTP API
  3. Process Offset (Code): runs custom JavaScript code
  4. Split (Split Out): splits a list into separate items
  5. Clear Update List (HTTP Request): calls an HTTP API
  6. Filter (If): checks a condition and branches into true / false
  7. Switch: routes items into 2 branches
  8. Execute - Text (Execute Command): runs a shell command on the n8n host
  9. Execute - Image (Execute Command): runs a shell command on the n8n host
  10. Clean (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

Telegram

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Telegram AI Channel Bot - Text & Image Response Generator with TGPT Overview This n8n workflow creates an automated Telegram channel bot that responds to messages with AI-generated text or images using TGPT. The bot monitors a specific Telegram channel and…

Excerpt from Vigh Sandor's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.