Overview
Send a short brief to a Telegram bot and have an n8n workflow research the topic with a search tool, write a sourced caption, generate a matching image with the OpenAI node, and send the draft back for you to review and post.
Problem or Objective
- Which agents can create images by running image-generation models or workflows for you?
- Which agents investigate a question and report back?
- Which agents can upload ads, research keywords and pull marketing numbers for you?
More in Content and Media
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Telegram · OpenAI · SerpApi
- Prerequisites
- An n8n instance (cloud or self-hosted), a Telegram bot token, a SerpApi account for the search tool, and OpenAI access for image generation (or Gateway credits on n8n Cloud).
How It Works
Create a Telegram bot and add its credentials to n8n. Start the workflow with a Telegram Trigger node set to new messages, so a brief such as a topic, audience and platform starts a run. Pass the brief to an AI Agent node with a chat model and a Google search tool connected; the built-in SerpApi node is deprecated, so use the verified SerpApi Official community node. Instruct the agent to find three to five current sources, write a caption with the key facts and the source links, and write a short image prompt. Feed the image prompt to the OpenAI node's image generation operation. Finish with a Telegram node that sends the image and caption back to your chat. Check each fact against its source, adjust the caption, and post on your social accounts yourself.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Telegram, OpenAI, SerpApi.
- Check the prerequisitesAn n8n instance (cloud or self-hosted), a Telegram bot token, a SerpApi account for the search tool, and OpenAI access for image generation (or Gateway credits on n8n Cloud).
- Gather your detailsCollect what the prompt asks for: Topic, Audience, Platform, Caption length, Visual style.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Research a brief and draft a social graphic
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You receive a brief from Telegram about [Topic] for [Audience] on [Platform]. Use the search tool to find three to five current, reputable sources. Write a caption of at most [Caption length] with the key facts and list the source links under it. Then write one image prompt in the style [Visual style], with no text in the image and no real people or logos. Return the caption, sources and image prompt only; nothing is posted until I approve it.Use this as the AI Agent instructions, with the search tool connected, before the OpenAI image step and the Telegram reply. Check the sources and the image when the draft arrives, and post it yourself only after editing.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n pages document the Telegram Trigger events, the Telegram node, a search tool that an AI Agent can call, the OpenAI node creating images, and the AI Agent's tool requirement. No cited page shows the quality of the research or the images, so whether the facts hold up and the graphics suit your brand is untested here.
Limitations and Considerations
Check every fact and link in the caption against its source before posting, since a model can misread or invent details. AI-generated images can contain garbled text or resemble real people or brands; review each one before use. Restrict the bot so only your own chat can start the workflow, and check this before the first run. The search tool and image generation are paid services billed per use; on n8n Cloud the OpenAI node can run on Gateway credits instead of your own key. Posting stays in your hands. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Telegram Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:52 UTC
What this source supports
- On this page, you'll find a list of events the Telegram Trigger node can respond to and links to more resources.
- Telegram | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 07:07 UTC
What this source supports
- Use the Telegram node to automate work in Telegram and integrate Telegram with other applications.
- SerpApi (Google Search) | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 14:22 UTC
What this source supports
- The SerpAPI node allows an agent in your workflow to call Google's Search API.
- Use the verified SerpApi Official community node instead.
- OpenAI | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 07:07 UTC
What this source supports
- n8n has built-in support for a wide range of OpenAI features, including creating images and assistants, as well as chatting with models.
- On n8n Cloud, you can use the OpenAI node with Gateway credits instead of your own OpenAI API key.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- You must connect at least one tool sub-node to an AI Agent node.

