Skip to main content

Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI

Workflow preview

Workflow preview
100%
Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Anime Image Generator with LLM Enhanced Prompts This workflow turns a short text idea into stunning, AI generated anime style images , all from Telegram . It combines a chat LLM for prompt enhan...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.wait, n8n-nodes-base.splitinbatches, n8n-nodes-base.converttofile, n8n-nodes-base.splitout

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Diptamoy Barman.

Original n8n.io source

1.1 Workflow description

Title
Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI
Workflow name
Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI

🎨 Anime Image Generator with LLM-Enhanced Prompts

This workflow turns a short text idea into stunning, AI-generated anime-style images, all from Telegram.
It combines a chat LLM for prompt enhancement with Gemini (free) or Leonardo.AI (paid) image models.


🌟 What It Does

  • Accepts a text prompt sent via Telegram.
  • Uses an LLM (DeepSeek via OpenRouter) to expand and enrich the idea into several anime-ready prompts.
  • Lets you choose the image engine:
    • Gemini (90-day free trial with a GCP account).
    • Leonardo.AI (paid, higher-fidelity anime rendering).
  • Generates 4 images per query, converts them to files, and delivers the images back to your Telegram chat.

⚙️ How It Works

  1. Telegram Trigger — waits for a text message from you.
  2. Image-count Node — stores your prompt & sets how many images to create (default: 4).
  3. Prompt Generator (LLM) — transforms your simple prompt into multiple detailed, visually rich anime prompts.
  4. Split & Loop — sends each refined prompt to the chosen image generator.
  5. Image Generator:
    • Default: HTTP-Gemini node.
    • Alternative: HTTP-Leonardo AI node (swap in for better quality).
  6. Convert to File & Send — decodes the generated images and sends them back to you on Telegram.

🔑 Setup

  • Telegram Bot
    • Create a bot using BotFather.
    • Add your Bot Token & your Telegram User ID to the workflow (look for “Configure Me!” sticky notes).
  • LLM Provider
    • Default: DeepSeek via OpenRouter — used to expand prompts.
    • You can swap this with any other chat LLM you prefer.
  • Image Engine
    • Default: Gemini (free trial, good baseline quality).
    • Optional: Leonardo.AI for anime-focused, premium-quality images.
      Replace the HTTP-Gemini node with the HTTP-Leonardo AI node and set up your Leonardo API key as a Header Auth credential.
  • Optional Adjustments
    • Change default number of images in the Image-count node.
    • Tweak the LLM prompt template for different artistic styles (e.g., pastel slice-of-life, fantasy, action, cyberpunk).

đź’ˇ Tips

  • Start with short, plain prompts — e.g.,
    girl with umbrella in neon city street at night
    The LLM will enrich it automatically.
  • If images look flat, try Leonardo.AI or adjust the prompt style and guidance scale.
  • Avoid NSFW or copyrighted character prompts — follow the providers’ usage policies.
  • Keep your API keys private and never share them in screenshots.

👥 Who Is This For

  • Anime creators & hobbyists who want to visualize characters or scenes quickly.
  • Content creators & social posters who want to share unique anime-style visuals.
  • Anyone who wants easy AI image generation via Telegram, without needing to master prompt engineering.

✨ Ready to go:
Run the workflow, send a prompt to your Telegram bot, and watch it turn into beautiful anime images.

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 - Sticky Note

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

Block 2 - Telegram Trigger

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

Block 3 - HTTP- Gemini

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

Block 4 - Set base64

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Wait 10s

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Image-count

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Loop Over Prompts

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

Block 8 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 9 - Sticky Note1

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

Block 10 - HTTP- Leonardo AI

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

Block 11 - Split Out Prompts

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

Block 12 - Sticky Note2

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

Block 13 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 14 - Prompt generator (USER_Inspired)

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 15 - DeepSeek from OpenRouter

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note7

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

Block 19 - Send pics via Telegram

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

Block 20 - Sticky Note8

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

Block 21 - Sticky Note6

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

Block 22 - Sticky Note3

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

3. Summary Table

Workflow Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI
Complexity advanced
Nodes 22
Categories Content Creation, Multimodal AI
Author Diptamoy Barman
Published 30 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9102/9102.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 Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI do?

Anime Image Generator with LLM Enhanced Prompts This workflow turns a short text idea into stunning, AI generated anime style images , all from Telegram . It combines a chat LLM for prompt enhan...

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.