Skip to main content

Command-based Telegram bot for article summarization & image prompts with OpenAI

Workflow preview

Workflow preview
100%
Command-based Telegram bot for article summarization & image prompts with OpenAI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Telegram AI Assistant: Summarize Links & Generate Images On Demand This workflow turns any Telegram chat into a smart assistant. By typing simple commands like or , users can trigger powerful AI ac...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.html, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Command-based Telegram bot for article summarization & image prompts with OpenAI
Workflow name
Command-based Telegram bot for article summarization & image prompts with OpenAI

Telegram AI Assistant: Summarize Links & Generate Images On Demand

This workflow turns any Telegram chat into a smart assistant. By typing simple commands like /summary or /img, users can trigger powerful AI actions—directly from Telegram.


✨ What It Does

This automation listens for specific commands in Telegram messages:

  • /help: Sends a help menu explaining available commands.
  • /summary <link>: Fetches a webpage, extracts its content, and summarizes it using OpenAI into 10–12 bullet points.
  • /img <prompt>: Sends the image prompt to OpenAI and replies that the request has been received (designed for future integration with image APIs).

📦 Features

  • ✅ Works instantly in Telegram
  • 🧠 Uses OpenAI for text summarization and image prompt processing
  • 🌐 Scrapes and cleans raw article text before summarizing
  • 📤 Replies directly to the same Telegram thread
  • 🔧 Easily expandable to support more commands

🔧 Use Cases

  • Research Summaries: Quickly condense articles or reports shared in chat.
  • Content Review: Get team-friendly TL;DRs of long blog posts or product pages.
  • Creative Brainstorming: Share visual ideas via /img and get quick prompts logged.
  • Customer Support: Offer instant answers in group chats (with further extension).
  • Daily Digest Bot: Connect to news feeds and auto-summarize updates.

🚀 Getting Started

  1. Clone this workflow and connect your Telegram Bot.
  2. Insert your OpenAI credentials.
  3. Deploy and test by messaging /summary https://example.com in your Telegram group or DM.
  4. Expand with new commands or connect Stability.ai or other services for real image generation.

🔗 Author & Resources

Built by Yaron Been
Follow more automations at nofluff.online

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 - Route: Check for Help Command

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

Block 2 - Response: Send Help Menu

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

Block 3 - Route: Check for Summary Command

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

Block 4 - Route: Check for Image Command

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

Block 5 - Response: Send Article Summary

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

Block 6 - Response: Send Image Generation Notice

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

Block 7 - Trigger: Telegram Webhook

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

Block 8 - Fetch: Download Article Content

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

Block 9 - Parse: Extract Text from HTML

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

Block 10 - AI: Generate Article Summary

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 11 - AI: Process Image Generation Request

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - StickyNote

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

3. Summary Table

Workflow Command-based Telegram bot for article summarization & image prompts with OpenAI
Complexity intermediate
Nodes 12
Categories Personal Productivity, AI Chatbot
Author Yaron Been
Published 26 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4392/4392.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 Command-based Telegram bot for article summarization & image prompts with OpenAI do?

Telegram AI Assistant: Summarize Links & Generate Images On Demand This workflow turns any Telegram chat into a smart assistant. By typing simple commands like or , users can trigger powerful AI ac...

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 Personal Productivity, AI Chatbot use case.