Skip to main content

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

Workflow preview

Workflow preview
100%
Telegram bot: analyze images with GPT-4o-Mini/NVIDIA Vila & generate images with Stable Diffusion 3 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.switch, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

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

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, text→image generation
  2. At Router: Routes by content type
  3. Upper path: Analyzes images using Nvidia Vila + GPT-4o-Mini
  4. Lower path: Generates images from text via Stable Diffusion 3
  5. At Merge: Combines AI results
  6. At Gmail: Emails processed results

How It Works

  1. Telegram Trigger listens for messages (images, text, documents)
  2. Content Router directs images → AI analysis, text → image generation
  3. Image Analysis: Downloads image → GPT-4o-Mini vision analysis → Email results
  4. Image Generation: Text prompt → Stable Diffusion 3 → Email generated image
  5. Gmail Notifications send formatted reports

Prerequisites

  • Telegram Bot token (via @BotFather)
  • OpenAI API key (GPT-4 Vision)
  • NVIDIA API key (free tier available)
  • Gmail OAuth2 credentials

Setup Steps

Setup Steps

  1. ** Create Telegram Bot** - Create Telegram bot and obtain token
  2. ** Configure API Credentials** - Configure API credentials in HTTP Request nodes
  3. ** Set Up Gmail OAuth2** - Set up Gmail OAuth2
  4. ** Import and Activate Workflow** - Import workflow, update credentials, and activate

Customization Options

  • Add more AI models (Anthropic, Gemini)
  • Route audio/documents to transcription/OCR
  • Replace Gmail with Slack or Discord
  • Connect to databases for storage

Benefits

  • Speed: Seconds per analysis vs. hours manually
  • Accuracy: AI-powered visual understanding
  • Intelligence: Historical tracking enables trend analysis

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📱 Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - 📋 Extract Message Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - NVIDIA API NVIDIA Stable Diffusion 3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - HTTP Nvidia Vila

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - 🔀 Merge AI Results

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 6 - Send a message of image-to-text results

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 7 - Send a message of text-to-image results

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 8 - Convert to Binary File

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Analyze image using GPT-4O-Mini

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - 🔀 Route by Content Type - Image or Text

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 11 - Get Text from Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - 📸 Get Image file from Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Telegram bot: analyze images with GPT-4o-Mini/NVIDIA Vila & generate images with Stable Diffusion 3
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Cheng Siong Chin
Published 17 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9823/9823.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.