Skip to main content

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

Workflow preview

Workflow preview
100%
Create AI social posts from Telegram links with OpenAI, Grok and Blotato preview
Open on n8n.io

1. Workflow Overview

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, cre...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.wait

Source and attribution

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

Original n8n.io source

1.1 Workflow description

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

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

  1. Receives a Telegram message with an idea, topic, or URL.
  2. If the message includes a link, fetches the web page and extracts a cleaned text snippet to use as reference context.
  3. 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.
  4. Sends the image prompt to AtlasCloud’s image generation API (Grok Imagine) and polls the prediction endpoint until the image is completed or errors.
  5. Extracts the generated image URL and publishes the image with the platform-specific captions to LinkedIn, X, and Instagram via Blotato.
  6. Sends a confirmation message back to Telegram including the generated image URL.

Setup

  1. Create and connect Telegram bot credentials, then message the bot using the Telegram Trigger webhook.
  2. Add an OpenAI API credential and ensure the selected chat model is available in your OpenAI account.
  3. Add an AtlasCloud API key as HTTP Header Auth and confirm the configured model name, aspect ratio, and resolution match your AtlasCloud account capabilities.
  4. 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.

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 - Receive idea or link on Telegram

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

Block 2 - Brand and image settings

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - AI content agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 4 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 5 - Conversation memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.4

Block 6 - Format the AI output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 7 - Generate image (Grok)

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

Block 8 - Wait for image

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Poll image result

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

Block 10 - Check image status

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 11 - Extract image URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Publish to LinkedIn

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 13 - Publish to X

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 14 - Publish to Instagram

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 15 - Confirm on Telegram

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

Block 16 - Stop on image error

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

Block 17 - Sticky Note 0701ff85

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

Block 18 - Sticky Note ca2083cf

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

Block 19 - Sticky Note c3072499

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

Block 20 - Sticky Note 04d44c93

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

Block 21 - Sticky Note 4c951f3f

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

Block 22 - Read web link content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Create AI social posts from Telegram links with OpenAI, Grok and Blotato
Complexity advanced
Nodes 22
Categories Social Media, Multimodal AI
Author Dr. Firas
Published 14 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16349/16349.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 Create AI social posts from Telegram links with OpenAI, Grok and Blotato do?

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, cre...

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 Social Media, Multimodal AI use case.