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

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

Ready for 3.0

by Fahmi Oktafian ✓ · 10,552 views · created 2025-06-30 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 7 nodes and runs on a schedule (every day at 07:00). Along the way it connects Google Gemini Chat Model and Facebook Graph API.

How it runs

Trigger: On a schedule (every day at 07:00).

  1. Log Schedule Time (Code): runs custom JavaScript code
  2. Generate Image Prompt (Gemini) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  3. Create Pollinations URL (Code): runs custom JavaScript code
  4. Fetch AI Image (HTTP Request): calls an HTTP API
  5. Post Image to Facebook (Facebook Graph API): uses Facebook Graph API

Services it uses

Google Gemini Chat ModelFacebook Graph API

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

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…

Excerpt from Fahmi Oktafian's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.