Skip to main content

Generate Facebook marketing content from images with Telegram & Gemini

Workflow preview

Workflow preview
100%
Generate Facebook marketing content from images with Telegram & Gemini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description Instantly turn images into marketing content with one Telegram message. It automatically: Accepts an image and caption via Telegram Sends the image to an AI model with your brand’s c...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.executeworkflow

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate Facebook marketing content from images with Telegram & Gemini
Workflow name
Generate Facebook marketing content from images with Telegram & Gemini

📝 Description

Instantly turn images into marketing content with one Telegram message.

It automatically:

Accepts an image and caption via Telegram

Sends the image to an AI model with your brand’s content rules

Generates copy with headline, body, hashtags, and CTA

Sends it back to you for approval

On approval, posts directly to your Facebook Page

If rejected or sent as plain text, request edits and it will regenerate your content

🎯 Key Advantages for Content Teams

✅ Creates professional post content from raw images in seconds ✅ Keeps the process inside Telegram—no app-switching ✅ Allows fast edits through natural text replies ✅ Reduces creative workload using your own AI style guide ✅ Posts directly to Facebook—no copy-pasting needed

🛠️ Features

Telegram Bot Trigger (via Telegram API)

Image file parsing + downloading

AI Content Generation using OpenRouter + LangChain

Custom Brand Prompt: Hook + Content + CTA in natural Arabic

JSON Parsing with fallback handling

Dual approval route (human- or bot-origin)

Facebook publishing via Graph API

Retry loop: users can request changes directly

Sticky notes on all nodes for fast onboarding

🔧 Requirements

Telegram Bot Token

Facebook Page access with pages_manage_posts + pages_read_engagement

OpenRouter API key (or another LLM provider)

n8n credentials for:

Telegram Bot

Facebook (OAuth or Bearer token)

OpenRouter (or alternative)

🧠 Use Case Examples

🧴 Beauty Brands: Auto-generate Arabic content from new skincare routine photos

🏥 Clinics: Transform testimonial photos into compliant social posts

🧢 Streetwear Shops: Quickly convert customer-submitted photos into engaging product drops

📚 Education Pages: Teachers send photos and instantly get shareable awareness content

🐾 Pet Pages: Easily publish heartfelt stories from community-submitted photos

⚙️ Customization Tips

Edit the Brand Prompt Update the AI node with your own brand tone, examples, and structure.

Switch LLMs Swap the OpenRouter model with Gemini, GPT-4, or others by changing the LLM node.

Change Post Target Replace the Facebook post URL with Instagram or your CMS webhook.

Customize Loop Logic Adjust the re-triggering workflow to better match your desired Telegram conversation UX.

If you need any help Get in touch

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 - Trigger from Telegram

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

Block 2 - Extract Telegram Metadata

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

Block 3 - Get Telegram File Info

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

Block 4 - Build Telegram Image URL

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

Block 5 - Download Telegram Image

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

Block 6 - Generate Marketing Content

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

Block 7 - Language Model (OpenRouter)

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

Block 8 - Parse AI Output

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

Block 9 - Approval Decision

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

Block 10 - Check if Message has Photo

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

Block 11 - Prompt for User Input (Manual)

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

Block 12 - Restart Workflow with User Text

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

Block 13 - Restart Workflow Again

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

Block 14 - Publish Post to Facebook

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

Block 15 - Notify Facebook Success

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

Block 21 - Sticky Note5

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

Block 22 - Sticky Note6

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

Block 23 - Sticky Note7

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

Block 24 - Sticky Note8

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

Showing the first 24 of 40 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate Facebook marketing content from images with Telegram & Gemini
Complexity advanced
Nodes 40
Categories Content Creation, Multimodal AI
Author Abdullah Alshiekh
Published 29 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6635/6635.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 Facebook marketing content from images with Telegram & Gemini do?

Description Instantly turn images into marketing content with one Telegram message. It automatically: Accepts an image and caption via Telegram Sends the image to an AI model with your brand’s c...

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 Content Creation, Multimodal AI use case.