Create AI social posts from Telegram links with OpenAI, Grok and Blotato

Go to Workflow
0 views
Built by Dr. Firas Dr. Firas
Created on June 19, 2026

Description

Quick Overview
This workflow listens for a Telegram message containing an idea or URL, extracts any linked page text, uses OpenAI to generate LinkedIn/X/Instagram captions plus an image prompt, creates an illustration via AtlasCloud (Grok Imagine), then publishes the posts with the image to LinkedIn, X, and Instagram using Blotato.

How it works
Receives a Telegram message with an idea, topic, or URL.
If the message includes a link, fetches the web page and extracts a cleaned text snippet to use as reference context.
Uses OpenAI (via an AI agent with conversation memory) to generate a LinkedIn post, an X caption, an Instagram caption, and a detailed image-generation prompt in the specified brand voice.
Sends the image prompt to AtlasCloud’s image generation API (Grok Imagine) and polls the prediction endpoint until the image is completed or errors.
Extracts the generated image URL and publishes the image with the platform-specific captions to LinkedIn, X, and Instagram via Blotato.
Sends a confirmation message back to Telegram including the generated image URL.

Setup
Create and connect Telegram bot credentials, then message the bot using the Telegram Trigger webhook.
Add an OpenAI API credential and ensure the selected chat model is available in your OpenAI account.
Add an AtlasCloud API key as HTTP Header Auth and confirm the configured model name, aspect ratio, and resolution match your AtlasCloud account capabilities.
Install and configure the Blotato community node, connect your Blotato API credential, and replace the LinkedIn/X/Instagram account IDs in each publish step with your own.

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Telegram
n8n-nodes-base.telegram