Skip to main content

Generate social media captions for product images with Gemini AI and Telegram approval

Workflow preview

Workflow preview
100%
Generate social media captions for product images with Gemini AI and Telegram approval preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template demonstrates a complete AI driven content pipeline for social media. It automatically generates captions and hashtags for new product images, collects human approval via Telegram,...

Best for

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

Tools used

n8n-nodes-base.googledrivetrigger, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.twitter, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.telegram

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate social media captions for product images with Gemini AI and Telegram approval
Workflow name
Generate social media captions for product images with Gemini AI and Telegram approval

This n8n template demonstrates a complete AI-driven content pipeline for social media. It automatically generates captions and hashtags for new product images, collects human approval via Telegram, and publishes approved content to Twitter. It’s ideal for marketers, e-commerce businesses, and creators who want to speed up content creation while keeping human oversight.

How it works

Trigger: The workflow starts when a new file is added to a specific Google Drive folder.

File Analysis: The image is processed to extract product information.

AI Captioning: Gemini generates a caption and five relevant hashtags based on the product.

Telegram Approval: The image, caption, and hashtags are sent to the user for approval.

✅ If approved → The content is posted to Twitter and a confirmation is sent back via Telegram.

🔄 If regenerate → Gemini creates a new caption and hashtags, and the approval loop repeats.

❌ If discard → A message is sent on Telegram and the workflow ends.

Requirements

  • Google Drive account

  • Gemini API credentials for captioning and hashtags

  • Telegram bot for approvals

  • Twitter Developer Account with API credentials

Customising this workflow

  • Swap Google Drive with Dropbox, Notion, or Airtable as the content source.

  • Extend publishing to LinkedIn, Instagram, or multiple platforms.

  • Add multi-user approval flows in Telegram for team-based decisions.

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 - Google Drive Trigger

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

Block 2 - Analyze image

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 3 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 4 - Create Tweet

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

Block 5 - Sticky Note

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

Block 6 - Product_Img

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 7 - Temp_Field

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

Block 8 - Formatting_Block

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

Block 9 - Output_Cleaner

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

Block 10 - Product_Img_1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - Send_Photo

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

Block 12 - Ask_For_Approval

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

Block 13 - Condition_Checker

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Product_Img2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 15 - Regenerate_Discard

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

Block 16 - Condition_Checker_1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Send_Confirmation

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

Block 18 - Send_Confirmation1

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

Block 19 - Request_Media_ID

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

Block 20 - Sticky Note1

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

3. Summary Table

Workflow Generate social media captions for product images with Gemini AI and Telegram approval
Complexity advanced
Nodes 20
Categories Social Media, AI Chatbot
Author Ketan Sharma
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8731/8731.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 Generate social media captions for product images with Gemini AI and Telegram approval do?

This n8n template demonstrates a complete AI driven content pipeline for social media. It automatically generates captions and hashtags for new product images, collects human approval via Telegram,...

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, AI Chatbot use case.