Turn your Telegram bot into a smart chat assistant that can answer questions and create images on request. Great for marketing and social media teams that need fast mockups, product images, or quick visual ideas right in chat. Everyone can ask for text or images without leaving Telegram.
Incoming Telegram messages start the flow. A GPT 4o chat model reads the message and keeps short memory of the last 10 messages per chat, so replies stay on topic and use the user’s first name. If a user asks for an image, the agent calls the Dall E 3 image API through a secure HTTP request and returns a direct image link. The bot then sends the image file back in Telegram. If no image is needed, a text reply is sent. All keys are stored as n8n credentials for safety.
You need a Telegram bot token and an OpenAI API key. Connect both in n8n and link them to the trigger, chat model, tools, and send steps. Expect faster content turnarounds and fewer back and forth messages. Use it for ad mockups, social posts, sales visuals, or quick concept art in a team chat. Setup is simple and can be live in minutes.