What This Workflow Does
This n8n workflow automatically converts text prompts into AI-generated images and delivers them directly through Telegram. Users send a text description to a Telegram bot, and the workflow processes the request using Google Gemini AI and Hugging Face Flux to generate high-quality images, which are then sent back to the user via Telegram.
How It Works
The workflow begins when a user sends a message to the Telegram bot. The Telegram trigger node captures the incoming message and passes it to the n8n agent, which interprets the user’s intent. Google Gemini processes the text prompt to enhance or refine the image description. The refined description is then sent to Hugging Face Flux API via HTTP request to generate the image. Once the image is created, it is automatically sent back to the user through Telegram using the Telegram send node.
Use Cases
- Creative Design Inspiration: Users can request custom artwork, logos, or design concepts and receive AI-generated images instantly without leaving Telegram
- Content Creation for Social Media: Content creators can quickly generate images for posts, stories, and promotional materials directly within their messaging platform
- Product Visualization: E-commerce businesses can generate product mockups or visualizations based on customer descriptions
- Graphic Design Assistance: Designers can use the bot to brainstorm visual concepts and iterate quickly on design ideas
- Educational Illustration: Teachers and trainers can generate custom illustrations to explain concepts or create educational materials on demand
Nodes Used
- Telegram Trigger: Listens for incoming messages from Telegram users and initiates the workflow
- n8n Agent: Processes and understands user requests, routing them through the appropriate workflow steps
- LM Chat Google Gemini: Enhances and refines text prompts using Google’s advanced language model
- HTTP Request: Sends API requests to Hugging Face Flux to generate images based on processed prompts
- Telegram Send: Delivers generated images back to users through their Telegram conversation
- Sticky Note: Provides workflow documentation and notes for reference
Prerequisites
- Active n8n instance or account
- Telegram bot token from BotFather
- Google Gemini API key for text processing
- Hugging Face API key for Flux image generation model access
- Basic understanding of API integration and webhook configuration
- Telegram account with admin access to the bot
Difficulty Level
Intermediate. This workflow requires familiarity with multiple API integrations and webhook setup, but includes pre-configured nodes to simplify implementation. Users should have experience connecting external services and understanding JSON data structures. The workflow is well-documented, making it accessible for developers looking to build AI-powered Telegram bots without extensive coding.
This workflow template is shared under the n8n fair-code license. Free to use and modify.
Leave a Reply