Generate Images on Telegram 🤖🖼️ from Text and Voice using Grok Imagine & Kie AI
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects OpenRouter Chat Model, Telegram and OpenAI. It also calls api.kie.ai over HTTP.
How it runs
Trigger: On Telegram events (message) (plus 1 other trigger).
- Code: runs custom JavaScript code
- Switch: routes items into 2 branches
- Switch: routes items into 3 branches
- Run text to image (HTTP Request): calls api.kie.ai (POST)
- Run image to image (HTTP Request): calls api.kie.ai (POST)
- Get Text (Edit Fields (Set)): sets 2 fields: chatInput, sessionId
- Get voice message (Telegram): work with file
- Get image file (Telegram): work with file
- Wait: pauses until webhook
- Wait: pauses until webhook
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: api.kie.ai
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 (14)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Code
n8n-nodes-base.code - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Wait
n8n-nodes-base.wait - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - FTP
n8n-nodes-base.ftp - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
This workflow creates an AI-powered Telegram bot that allows users to generate and modify images using Grok Imagine models via the Kie AI API. --- Key Advantages 1. ✅ Multi-Modal Input Support Users can interact using: Text Voice Images This makes the bot…