Create Facebook posts and images with Google Gemini and Facebook Graph API
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model, Google Gemini and Facebook Graph API.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Context (Edit Fields (Set)): sets 5 fields: raw_content, fanpage_name, content_style…
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: JSON Output Parser
- Select Image Mode (If): checks a condition and branches into true / false
- Download Image to Edit (HTTP Request): calls an HTTP API
- Generate New Image (Google Gemini): work with image
- Edit Original Image (Google Gemini): edit (image)
- Post to Facebook (Facebook Graph API): uses Facebook Graph API
- Post Result (Edit Fields (Set)): sets 5 fields: status, facebook_post_id, post_text_preview…
Services it uses
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 (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
This n8n template automates the creation of professional Facebook posts and visually striking illustrations directly from simple raw text. If you want to maintain a consistent social media presence without spending hours writing copy and designing images,…