Generate and schedule themed social posts with Notion, OpenAI, Fal.ai and Postiz
Needs changesWhat this workflow does
This AI workflow has 44 nodes and runs on a schedule (every day at 12:00). Along the way it connects Google Drive, OpenAI Chat Model and Notion. It also calls fal.run and api.postiz.com over HTTP.
How it runs
Trigger: On a schedule (every day at 12:00).
- Get Post Theme (Notion): get many (database page)
- Get Brand Guidelines (Notion): get many (block)
- Merge: merges the data from its input branches
- Format Brand Text (Code): runs custom JavaScript code
- Route by Theme (Switch): routes items into 3 branches
- Gen Prompt (Expert) (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Gen Prompt (System) (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Gen Prompt (Activity) (AI Agent): runs an AI agent, with model: gpt-4o LLM
- Gen Image (Expert) (HTTP Request): calls fal.run (POST)
- Gen Image (System) (HTTP Request): calls fal.run (POST)
…plus 21 more steps. See the full node list below.
Services it uses
HTTP calls to: fal.run, api.postiz.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Gen Prompt (System) (v1.7), Gen Prompt (Expert) (v1.7), Gen Prompt (Activity) (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Gen Prompt (System) (v1.7), Gen Prompt (Expert) (v1.7), Gen Prompt (Activity) (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Google Drive
n8n-nodes-base.googleDrive - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Notion Tool
n8n-nodes-base.notionTool - Google Drive Tool
n8n-nodes-base.googleDriveTool - Code
n8n-nodes-base.code
From the author
This workflow automates your daily social media content creation by generating unique, on-brand posts based on specific themes stored in Notion. It creates images using Fal.ai, writes captions with OpenAI, and schedules them to multiple platforms via Postiz.…