Templates / Telegram bot: analyze images with GPT-4o-Mini/NVIDIA Vila & generate images with Stable Diffusion 3

Telegram bot: analyze images with GPT-4o-Mini/NVIDIA Vila & generate images with Stable Diffusion 3

Ready for 3.0

by Cheng Siong Chin ✓ · 501 views · created 2025-10-17 · Content Creation, Multimodal AI

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 AI workflow has 12 nodes and runs on Telegram events (message). Along the way it connects Telegram, Gmail and OpenAI. It also calls ai.api.nvidia.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. 📋 Extract Message Data (Code): runs custom JavaScript code
  2. 🔀 Route by Content Type - Image or Text (Switch): routes items into 2 branches
  3. 📸 Get Image file from Telegram (Telegram): work with file
  4. Get Text from Telegram (Telegram): uses Telegram
  5. Analyze image using GPT-4O-Mini (OpenAI): analyze (image)
  6. HTTP Nvidia Vila (HTTP Request): calls ai.api.nvidia.com (POST)
  7. NVIDIA API NVIDIA Stable Diffusion (HTTP Request): calls ai.api.nvidia.com (POST)
  8. Merge: merges the data from its input branches
  9. Convert to Binary File (Code): runs custom JavaScript code
  10. Send a message of image-to-text results (Gmail): uses Gmail

…plus 1 more step. See the full node list below.

Services it uses

TelegramGmailOpenAI

HTTP calls to: ai.api.nvidia.com

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 (8)

From the author

Introduction Transform your Telegram bot into an AI vision system using GPT-4o-Mini and NVIDIA Stable Diffusion 3. Perfect for content moderators, researchers, and developers. Workflow Explanatory 1. At start: Processes Telegram messages: images→analysis,…

Excerpt from Cheng Siong Chin'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.