Latenode

Generate AI-powered product images and publish to social media

This template starts when your Telegram bot receives a product prompt. ChatGPT tightens the prompt, image generation creates a still, Cloudinary stores the file, and TinyPNG compresses it.

Facebook Pages, Instagram, and X then publish the image with a caption. Connect Telegram, Cloudinary, TinyPNG, Facebook Pages, Instagram, and X. Put the bot token on the Telegram connection. ChatGPT and image generation are Latenode AI steps.

Updated Sep 16, 2026Est. run: 19sEst. cost: $0.0012
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns a Telegram prompt into a product still
  • Writes the prompt and caption with ChatGPT
  • Compresses the file with TinyPNG before publish
  • Posts the same image to Facebook, Instagram, and X

How it works

1
Trigger

Catch the Telegram prompt

The scenario starts when someone sends a product description to the Telegram bot you connect.

2
AI

Write the prompt and generate a still

JavaScript reads the Telegram text. ChatGPT enriches it. Image generation returns a still. This step does not render video.

3
Action

Store and compress

Cloudinary uploads the file. TinyPNG compresses it for social posts.

4
Action

Publish to social

Facebook Pages, Instagram, and X post the compressed image with the caption from ChatGPT.

Setup guide

1

Connect Telegram

Add a Telegram connection and paste your bot token there. Add a trigger for new updates on that bot.

2

Connect Cloudinary and TinyPNG

Add a Cloudinary connection and a TinyPNG connection. Put the Cloudinary keys on the Cloudinary connection and the TinyPNG API key on the TinyPNG connection.

3

Connect Facebook Pages, Instagram, and X

Add those three connections for the Page, Instagram professional account, and X account that should receive posts.

4

Wire ChatGPT, image generation, and publish

Send the Telegram text to ChatGPT for a tighter prompt and caption. Generate the still with image generation. Upload to Cloudinary, compress with TinyPNG, then create the Facebook, Instagram, and X posts. ChatGPT and image generation are Latenode AI steps.

Requirements

A Telegram bot token stored on the Telegram connection
Cloudinary credentials on the Cloudinary connection
A TinyPNG API key on the TinyPNG connection
Facebook Page, Instagram, and X connections that can publish photos

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.