AI Template Search
N8N Bazar

Find n8n Templates with AI Search

Search thousands of workflows using natural language. Find exactly what you need, instantly.

Start Searching Free
Nov 5, 2025

Generate Images & Blog Articles via Telegram Bot

Generate Images & Blog Articles via Telegram Bot Imagine creating content without ever leaving Telegram Picture this: you are chatting with someone on Telegram, get a sudden idea for a blog post, or need a quick image for social media. Instead of opening a dozen tabs, you just type a message to a bot and […]

Generate Images & Blog Articles via Telegram Bot

Generate Images & Blog Articles via Telegram Bot

Imagine creating content without ever leaving Telegram

Picture this: you are chatting with someone on Telegram, get a sudden idea for a blog post, or need a quick image for social media. Instead of opening a dozen tabs, you just type a message to a bot and it creates everything for you – images and full blog articles – right there in your chat.

That is exactly what this n8n workflow template does. It turns a simple Telegram bot into your personal AI content assistant, powered by Pollinations AI for images and Google Gemini 2.5 (via LangChain) for long-form writing. You stay in Telegram, and the bot quietly handles the heavy lifting in the background.

What this Telegram bot workflow actually does

This template connects several tools so they work together smoothly inside n8n:

  • Telegram Bot – your main interface, with an easy main menu and buttons.
  • Pollinations AI – generates images from text prompts.
  • Google Gemini 2.5 via LangChain – writes full blog articles based on your title and chosen style.
  • Google Sheets – stores logs of everything the bot generates.
  • Google Drive – keeps all created images in a dedicated folder.

So instead of juggling tools, you just talk to Telegram. The workflow takes care of generating, storing, and logging your content for you.

When you would want to use this template

This n8n workflow is perfect if you:

  • Create content regularly and want to draft ideas quickly from your phone.
  • Need AI images for posts, thumbnails, or quick mockups.
  • Write blog posts and want AI to help you with first drafts in different tones.
  • Like having all actions and content automatically logged in Google Sheets.
  • Want a low-friction, chat-based way to trigger AI tools.

Whether you are a blogger, marketer, designer, or developer, this bot helps you move from idea to content with almost no friction.

Key features at a glance

  • Telegram bot with a simple main menu and clear buttons.
  • AI image generation from descriptive prompts, powered by Pollinations AI.
  • AI blog article creation by sending just a title or topic.
  • Choice of writing style: Formal, Relaxed, or News.
  • Automatic logging of all prompts, styles, and outputs in Google Sheets.
  • Automatic upload of every generated image to a specific Google Drive folder.
  • Input validation and basic error handling for smoother user experience.

How the Telegram bot behaves in chat

Once the workflow is set up and your bot is running, it listens to what users send and reacts differently depending on the type of input. Under the hood, the workflow classifies messages like this:

  • Start command
    When a user sends /start, the bot responds with the main menu. From there, they can tap buttons to:
    • Generate an image
    • Write a blog article
    • Get help or instructions
  • Callback queries
    Whenever someone taps one of those inline buttons, Telegram sends a callback query. The workflow reads that and:
    • Switches the mode to image generation, blog writing, or help.
    • Guides the user with specific instructions, depending on what they picked.
  • Text commands
    The bot also understands text that starts with certain keywords. It validates and parses messages that begin with:
    • image for image generation
    • blog for blog article creation

    If the format is not right, the workflow returns a helpful error message instead of failing silently.

From prompt to picture: how image generation works

When a user wants an image, they simply write something like:

image a futuristic city at sunset with neon lights

Behind the scenes, the workflow:

  1. Validates the message to confirm it starts with image and includes a description.
  2. Builds a prompt-based URL for Pollinations AI using the text after image.
  3. Sends a request to that URL and downloads the generated image.
  4. Returns the image directly in the Telegram chat as a photo.
  5. Uploads the same image file to a specific folder in Google Drive.
  6. Logs the prompt, metadata, and any relevant details in Google Sheets.

The result: the user gets their image instantly in Telegram, and you still keep a tidy record of what was created and when.

From title to full article: how blog generation works

Blog content starts just as simply. A user sends something like:

blog How automation can save time for small teams

The workflow then guides them through the process and uses Gemini to create the article. Here is what happens step by step:

  1. The workflow checks that the message starts with blog and that there is a valid title or topic.
  2. The bot invites the user to optionally choose a writing style:
    • Formal – structured and professional.
    • Relaxed – conversational and casual.
    • News – informative and news-like.

    If no style is chosen, you can still proceed with a default tone.

  3. The workflow sends the title and chosen style to Google Gemini 2.5 using LangChain to structure the request.
  4. Gemini returns a structured JSON response that includes the full blog article.
  5. n8n parses this JSON and extracts the article content.
  6. The bot sends the finished blog post back to the user in the Telegram chat.
  7. At the same time, the workflow logs:
    • The original blog prompt or title.
    • The selected style.
    • The full generated article text.

    All of this is stored in Google Sheets for later review or reuse.

This makes it incredibly easy to brainstorm, draft, and store blog content whenever inspiration hits, even if you are away from your laptop.

What you need before setting it up

To get this n8n Telegram bot workflow running, make sure you have the following ready:

  1. Valid credentials for:
    • Telegram API (for your bot).
    • Google Sheets OAuth (to log all actions and outputs).
    • Google Drive OAuth (to store generated images).
    • Google Gemini (PaLM) API (for blog article generation via LangChain).
  2. A Google Sheets document where you want to log:
    • User prompts and actions.
    • Generated content details.
    • Any metadata you care about for analytics.
  3. A dedicated Google Drive folder that will collect all generated images.
  4. All placeholder tokens in the template replaced with your real API keys, IDs, and URLs.

Once those pieces are in place, importing and running the template in n8n is very straightforward.

Security best practices for this workflow

Since this template touches multiple external services and APIs, it is worth taking a moment to set it up securely. A few simple habits go a long way:

  • Use n8n’s credential manager to store sensitive information like API keys and OAuth tokens.
  • Avoid hardcoding any API keys directly in HTTP Request nodes or function nodes.
  • Keep your Google Sheets and Google Drive URLs private and do not expose them publicly.

Handled correctly, you get the power of multiple APIs without compromising security.

Ways you can customize and extend this template

The workflow works great out of the box, but you can easily adapt it to your style or use case. Here are a few ideas:

  • Add more article styles
    Go beyond Formal, Relaxed, and News. You could introduce:
    • SEO-focused articles.
    • Storytelling or narrative blog posts.
    • Product review style content.

    Just update the logic that handles style selection and the prompt you send to Gemini.

  • Integrate more image models
    If you want flexibility, you can connect additional AI image generation services and let users choose which model to use for each request.
  • Improve analytics in Google Sheets
    Add columns for categories, tags, user IDs, or campaign names. This makes it easier to track which prompts and content types perform best over time.
  • Enhance error handling
    Expand the validation logic so the bot:
    • Gives clearer feedback when the prompt is incomplete.
    • Handles timeouts or API errors more gracefully.
    • Offers quick suggestions on correct input format.

Because it is an n8n workflow, you can keep iterating on it as your content needs grow.

Why this makes your life easier

Instead of treating AI tools as something you need to log into and manage separately, this template brings them into a space you already use daily: Telegram. You get:

  • Fast idea capture and content generation from your phone or desktop.
  • Automatic organization of images and articles in Google Drive and Sheets.
  • A simple, chat-based interface that anyone on your team can understand.

It is a small automation that can quietly remove a lot of friction from your content creation process.

Ready to try it?

If you are looking for a practical way to blend AI image generation, AI writing, and chat-based workflows, this template is a great place to start. Set up the credentials, connect your Google Sheets and Drive, and you are ready to generate images and blog posts directly in Telegram.

Whether you are drafting your next article, prepping social media visuals, or just experimenting with automation, this n8n Telegram bot can quickly become one of your favorite tools.

Leave a Reply

Your email address will not be published. Required fields are marked *

AI Workflow Builder
N8N Bazar

AI-Powered n8n Workflows

🔍 Search 1000s of Templates
✨ Generate with AI
🚀 Deploy Instantly
Try Free Now