Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Social Media Publishing

Social Media Publishing

Publish approved Facebook and Instagram image posts via Telegram and Gemini

Turns a Telegram post idea into a Gemini caption and a Cloudflare Flux image, then publishes to Facebook and Instagram only after human approval in Telegram.

What it does

## Turn a Telegram message into an approved Facebook + Instagram post For small businesses and agencies that post image content every week and want a human to approve every post before it goes live. ### How it works 1. Message your Telegram bot with a post idea. 2. Gemini writes a caption and an image prompt using your brand context. 3. You approve the caption in Telegram, or tap Regenerate. 4. Cloudflare Flux creates the image, which is converted to JPEG (Instagram requires it) and hosted on Google Drive. 5. You approve the image. 6. The post goes to Facebook, then to Instagram (container, status check, publish), and is logged in Google Sheets. After one regeneration the workflow flags the request for a manual look instead of looping. ### Setup steps 1. Telegram: create a bot with @BotFather and add the credential. 2. Gemini: Header Auth credential, name x-goog-api-key, value your key. 3. Cloudflare Workers AI: Header Auth, name Authorization, value Bearer . 4. Google Drive and Google Sheets: connect your accounts. Create a sheet with a tab named Log and columns timestamp, prompt, image_url, status. 5. Facebook Graph API: add a credential with a Page access token. 6. Fill in the Set Brand Context node (Page ID, Instagram Business account ID) and your Cloudflare account ID in the Generate Image URL. Step-by-step guide and free PDF checklist: https://uzzaman.dev/guides/instagram-facebook-auto-posting-setup/ ### Customization tips - Edit brand_context to match your tone. - Swap the image model by changing the Generate Image URL. - Raise the limit in Under Retry Cap? to allow more regenerations. - Drive images are shared publicly so Meta can fetch them. Use a dedicated folder.

The steps

  1. Telegram Trigger
  2. Is Real Request?
  3. Reply: Send An Idea
  4. Set Brand Context
  5. Generate Image Prompt + Caption
  6. Parse LLM Output
  7. Approve Caption?
  8. Caption Approved?
  9. Load Latest Draft
  10. Generate Image
  11. Extract Image
  12. Convert to JPEG (IG requires this)
  13. Upload to Drive
  14. Make File Public

31 steps in total.

Similar automations