Skip to main content

Auto-generate & post AI images to Facebook using Gemini & Pollinations AI

Workflow preview

Workflow preview
100%
Auto-generate & post AI images to Facebook using Gemini & Pollinations AI 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 workflow is designed for content creators or AI artists who want to automate posting unique AI generated images to their Facebook Page multiple times a day. It uses Google Gemini via LangChain...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.httprequest, n8n-nodes-base.facebookgraphapi

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-generate & post AI images to Facebook using Gemini & Pollinations AI
Workflow name
Auto-generate & post AI images to Facebook using Gemini & Pollinations AI

This workflow is designed for content creators or AI artists who want to automate posting unique AI-generated images to their Facebook Page multiple times a day. It uses Google Gemini via LangChain to generate imaginative image prompts, and Pollinations AI to generate the images. Posts are published with hashtags and a clean caption.

Who Is It For

  • AI artists
  • Facebook page managers
  • Digital marketers looking for automated creative content

What It Does

  • Triggers 3x daily at 7:00, 11:00, and 17:00 (local time)
  • Generates random AI image prompts in a retro-futuristic, cinematic, or surreal style using Google Gemini
  • Fetches images from Pollinations AI using custom prompts
  • Posts images automatically to your Facebook Page with hashtags

Requirements

  • n8n self-hosted or desktop (workflow uses schedule trigger)
  • Pollinations API (no auth needed)
  • Facebook Page with Facebook Graph API token:
  • Required scopes: pages_manage_posts, pages_read_engagement, pages_show_list
  • Google Gemini API Key (used via LangChain node)

How to Customize

  • Change the prompt style in the Basic LLM Chain node (promptType: define) to suit your theme.
  • Adjust Set The Generator Image node if you want:
  • Different image sizes (width / height)
  • Different seed randomness
  • Other Pollinations models (&model=kontext)
  • Add Telegram/Twitter nodes if you want cross-posting
  • Use Set node to allow easy user-level configuration of models, hashtags, times, etc.

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 - Sticky Note

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

Block 2 - Set The Schedule

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

Block 3 - Google Gemini Chat Model

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

Block 4 - Sticky Note1

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

Block 5 - Sticky Note2

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

Block 6 - Log Schedule Time

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

Block 7 - Generate Image Prompt (Gemini)

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 8 - Create Pollinations URL

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

Block 9 - Fetch AI Image

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

Block 10 - Post Image to Facebook

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

3. Summary Table

Workflow Auto-generate & post AI images to Facebook using Gemini & Pollinations AI
Complexity intermediate
Nodes 10
Categories Content Creation, Multimodal AI
Author Fahmi Oktafian
Published 30 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5486/5486.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 Auto-generate & post AI images to Facebook using Gemini & Pollinations AI do?

This workflow is designed for content creators or AI artists who want to automate posting unique AI generated images to their Facebook Page multiple times a day. It uses Google Gemini via LangChain...

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.