Use this powerful n8n workflow to turn Telegram prompts into high-quality Midjourney images via the GoAPI service. Features status polling and interactive upscaling using the n8n node for Telegram.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow transforms your Telegram bot into an interactive Midjourney image generation service, leveraging the GoAPI platform. The complexity of AI image generation—which is asynchronous and requires status checks—is handled seamlessly by the core logic flow control of the n8n node structure.
Instead of making the user wait, this n8n workflow initiates the task, notifies the user, and then uses a polling mechanism to monitor job completion. Crucially, after the initial 4-grid image is generated, the n8n workflow uses an interactive Telegram n8n node to prompt the user to select which image index (1-4) they wish to upscale, creating a truly conversational AI experience. This highly optimized n8n template saves significant time by integrating API calls, flow control, and user interaction into one cohesive automation.
The entire process is initiated by the Telegram n8n trigger when a user sends a message to the configured bot.
Get Prompt) verifies the sender's username against a whitelist and ensures the message is a valid prompt (not just /start).Task n8n node extracts the user's prompt and session ID (username) for use in subsequent steps.Generate Image n8n node sends an HTTP POST request to the GoAPI endpoint, requesting a Midjourney imagine task using the user's prompt.Wait n8n node and the Get Generation Task HTTP n8n node, repeatedly checking the task status until the result is reported as 'completed'.Get Index to Upscale Telegram n8n node sends the image URL back to the user and requests them to input an 'Image Index' using a custom form interaction feature.Upscale HTTP Request n8n node initiates a new GoAPI task to upscale the selected image index from the original task ID.Wait1 n8n node and Get Upscale Task HTTP n8n node, polling until the upscaling process is complete.Main Log Telegram n8n node, concluding the user interaction. Optionally, a Discord - Generation Log n8n node archives the details and all generated image URLs for internal tracking.To deploy this powerful n8n workflow, follow these steps:
Telegram Trigger n8n node and all subsequent Telegram n8n nodes (Notify Generation, Get Index to Upscale, etc.) with your Telegram API credential.Generate Image, Upscale, Get Upscale Task, etc.).Get Prompt IF n8n node configuration to replace the placeholder username with the actual Telegram username(s) authorized to use the generator.Discord - Generation Log n8n node with your Discord Bot credentials, along with the desired Guild ID and Channel ID. Telegram Trigger (n8n trigger): Initiates the n8n workflow upon receiving a Telegram message update.
Get Prompt (If n8n node): Essential core logic flow control. Filters incoming requests, ensuring only authorized users (via username check) and non-command messages proceed, preventing unnecessary API calls.
Generate Image (HTTP Request n8n node): Sends the initial API call to GoAPI to request a Midjourney 'imagine' task, configuring parameters like aspectratio (set to 12:16).
Notify Generation / Notify Upscaling (Telegram n8n node): Provides immediate feedback to the user, enhancing the chatbot experience.
Get Generation Task / Get Upscale Task (HTTP Request n8n node): These nodes perform the critical polling function, querying the GoAPI status endpoint using the previously received taskid to determine when the AI job is complete.
Status = complete / Get Upscale (If n8n node): These nodes contain the core logic flow control for the polling loop, redirecting the workflow to the Wait n8n node if the status is not 'completed'.
Get Index to Upscale (Telegram n8n node): A specialized Telegram n8n node configured for sendAndWait with a customForm. This enables interactive data capture, asking the user for the 1-4 index they wish to upscale after seeing the image grid.
Upscale (HTTP Request n8n node): Sends the second API call to GoAPI, initiating the upscaling task based on the user's interactive input.
Automate Outlook email categorization and prioritization using OpenAI, Airtable, and Monday.com. This robust n8n workflow template uses AI to analyze and tag emails.

Automate your Meta Ads (Facebook/Instagram) reporting. Use this n8n workflow to extract daily campaign performance and historical data directly to Google Sheets for analysis.

Automate Meta Ads creative analysis using this powerful n8n workflow. Compare performance data against benchmarks using both GPT-4 and Gemini AI models, then log actionable recommendations directly to Google Sheets. Find more n8n templates for marketing automation.

Use this robust n8n workflow to seamlessly migrate customer data records from an older Odoo instance (v15) to a newer Odoo system (v18), leveraging the Odoo n8n node and batch processing.

Use this comprehensive n8n workflow to reliably migrate large vector indexes from Pinecone to Weaviate, utilizing Airtable for robust pagination and checkpointing. Includes detailed n8n node configuration.

Automate invoice data extraction using this powerful n8n workflow. It combines the Mistral OCR model and GPT-4o-mini to process PDFs and images, validate results, and automatically save structured financial data to Google Sheets. Find the perfect n8n templates here.

IT Professional & Freelance Automation Consultant specializing in AI-driven automation and business process optimization







































