{
  "name": "Generate and schedule themed social posts with Notion, OpenAI, Fal.ai and Postiz",
  "nodes": [
    {
      "id": "50392aec-73c6-49fb-8b81-be0a80debe4c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2848,
        3888
      ],
      "parameters": {
        "width": 540,
        "height": 468,
        "content": "## How it works\n1. **Daily Trigger:** Starts automatically every day at 12 PM.\n2. **Context Gathering:** Fetches your 'Brand Guidelines' and the specific 'Post Theme' for the day from Notion.\n3. **Ima"
      }
    },
    {
      "id": "4514098e-918c-4744-a752-bca09da809bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2288,
        3936
      ],
      "parameters": {
        "width": 860,
        "height": 416,
        "content": "### 1. Data & Strategy\nFetches your brand voice and the specific theme for today's post from Notion."
      }
    },
    {
      "id": "8f12ae0f-4dfe-46f2-8052-224c16f66b95",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        3664
      ],
      "parameters": {
        "width": 1460,
        "height": 1000,
        "content": "### 2. AI Content Generation\nThree parallel paths handle different content styles (System, Activity, Expert). Each path generates a prompt via OpenAI and an image via Fal.ai."
      }
    },
    {
      "id": "6138e205-d4c5-48d2-93d9-25255f66f7c0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        3680
      ],
      "parameters": {
        "width": 2180,
        "height": 1024,
        "content": "### 3. Captioning & Publishing\nGenerates the final caption, updates Notion history, and pushes the content to Postiz for distribution."
      }
    },
    {
      "id": "3164b75f-d1ac-4f8e-891c-2680510bdcd6",
      "name": "Post to Facebook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        4016
      ]
    },
    {
      "id": "f3806ca5-5916-4b92-b21a-0ff55c92d092",
      "name": "Post to Linkedin",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        4208
      ]
    },
    {
      "id": "77bc02ec-936d-4331-b6d2-be1ba4f36a95",
      "name": "Post to X",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        4400
      ]
    },
    {
      "id": "33541032-55da-4261-9dd8-54265bb9c87c",
      "name": "Merge Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1552,
        4064
      ]
    },
    {
      "id": "bfecd998-00e8-4efd-9541-6daaf918920f",
      "name": "Route by Theme",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1296,
        4048
      ]
    },
    {
      "id": "c77e90f3-a99c-448a-8af4-aed61180c8ee",
      "name": "Gen Image (System)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        4064
      ]
    },
    {
      "id": "2c5d2382-ec81-462d-a1fd-d49c80fb54f2",
      "name": "Get Image URL (System)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        4064
      ]
    },
    {
      "id": "fe255cb7-64ef-4f8d-bdd2-367cdb53b4b0",
      "name": "Save to Drive (System)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -16,
        4064
      ]
    },
    {
      "id": "25ca8cbc-aab7-4ede-9252-5f5790c12c94",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -832,
        4240
      ]
    },
    {
      "id": "13b96316-763d-4cd5-a143-d0a41472a1f6",
      "name": "Gen Prompt (System)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -832,
        4064
      ]
    },
    {
      "id": "d35ce96d-9c09-45f0-b8c9-b9717ae2f55d",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -864,
        3904
      ]
    },
    {
      "id": "24c31601-bb36-4cb8-8a8b-ac639b2e7be5",
      "name": "Gen Prompt (Expert)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -832,
        3744
      ]
    },
    {
      "id": "3df2ab4d-c7e2-4835-b592-abe4b402f673",
      "name": "Gen Image (Expert)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        3744
      ]
    },
    {
      "id": "eaee5bfb-a9fa-4684-aa18-11257493f75c",
      "name": "Save to Drive (Expert)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -16,
        3744
      ]
    },
    {
      "id": "4256728f-cf1b-4859-af04-5fc53520b22a",
      "name": "gpt-4o LLM2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -816,
        4592
      ]
    },
    {
      "id": "c5d40711-bd14-4946-bf55-75b3ae3c2d28",
      "name": "Gen Prompt (Activity)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -832,
        4416
      ]
    },
    {
      "id": "969b9a69-7222-447e-871e-6b7bbcda3341",
      "name": "Gen Image (Activity)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        4416
      ]
    },
    {
      "id": "d42fc00b-9f13-493c-95eb-ae5c76ebbe2f",
      "name": "Get Image URL (Activity)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        4416
      ]
    },
    {
      "id": "583cf905-bd3b-4636-8f2c-01a16ecbf571",
      "name": "Save to Drive (Activity)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -16,
        4416
      ]
    },
    {
      "id": "b8c52330-642f-4fc5-b35a-bd8a7c3e5572",
      "name": "Daily Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2224,
        4192
      ]
    },
    {
      "id": "f53aa932-164c-412f-b274-5ee77ba6164c",
      "name": "Generate Caption (Expert)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        608,
        3744
      ]
    },
    {
      "id": "a972a716-1bcc-405c-9d77-b987e93db8b6",
      "name": "Update Notion (System)",
      "type": "n8n-nodes-base.notion",
      "position": [
        304,
        4064
      ]
    },
    {
      "id": "65e3e19b-466b-4711-9a73-36e6f1e30284",
      "name": "Update Notion (Activity)",
      "type": "n8n-nodes-base.notion",
      "position": [
        320,
        4416
      ]
    },
    {
      "id": "084938f5-5ea2-4c65-9280-f5b3e3d5d87a",
      "name": "Download for Upload",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1152,
        3744
      ]
    },
    {
      "id": "7215d71c-7e02-4d81-a867-2fbf523ec342",
      "name": "Generate Caption (System)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        592,
        4064
      ]
    },
    {
      "id": "c4fd84f1-6743-4109-a8ca-14cc14fafd45",
      "name": "Generate Caption (Activity)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        592,
        4416
      ]
    },
    {
      "id": "cb5992b5-8ccf-41b0-8030-4f545ff5b0f3",
      "name": "Download from Drive (System)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1184,
        4064
      ]
    },
    {
      "id": "d442e5a6-dc18-4c91-989c-58f9a36de0a6",
      "name": "Download from Drive (Activity)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1184,
        4416
      ]
    },
    {
      "id": "ca4baa47-4257-4cd8-ad71-fa202a0f4d88",
      "name": "notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        784,
        3872
      ]
    },
    {
      "id": "f4a17088-e25c-4543-9753-ad2cf6e62eee",
      "name": "drive2",
      "type": "n8n-nodes-base.googleDriveTool",
      "position": [
        688,
        3872
      ]
    },
    {
      "id": "958d0bc3-2084-464e-b7be-f985dc5f40e0",
      "name": "openai",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        592,
        3872
      ]
    },
    {
      "id": "11ddb4eb-f6b3-445e-8c0c-6ad94feace9d",
      "name": "notion1",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        800,
        4208
      ]
    },
    {
      "id": "502a5038-1900-44d4-b2f4-cb7a5fca6e75",
      "name": "drivefile",
      "type": "n8n-nodes-base.googleDriveTool",
      "position": [
        688,
        4208
      ]
    },
    {
      "id": "c943b560-8189-4bf7-852d-32fa29952c5d",
      "name": "openai1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        592,
        4208
      ]
    },
    {
      "id": "5762c255-67d3-429b-b5de-30e6b0f8712f",
      "name": "notion2",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        784,
        4576
      ]
    },
    {
      "id": "28c20336-528c-4a9d-94f1-606fbbec5a6d",
      "name": "drive1",
      "type": "n8n-nodes-base.googleDriveTool",
      "position": [
        688,
        4560
      ]
    },
    {
      "id": "93240bc8-54f7-4763-8c37-cc1c46dce4d9",
      "name": "openai2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        592,
        4576
      ]
    },
    {
      "id": "c95b0428-31be-4c50-a94c-e05699ee9d0f",
      "name": "Post to Instagram",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        3792
      ]
    },
    {
      "id": "a33b36d9-ddfa-4edd-b82f-0259db28cf38",
      "name": "Get Brand Guidelines",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1968,
        4192
      ]
    },
    {
      "id": "1935479f-3794-4541-ad1e-680c8bd3a575",
      "name": "Get Post Theme",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1984,
        4032
      ]
    },
    {
      "id": "3b8b046b-b74c-4d31-9755-253b82481bf8",
      "name": "Format Brand Text",
      "type": "n8n-nodes-base.code",
      "position": [
        -1728,
        4192
      ]
    },
    {
      "id": "cb93fe57-87ae-4283-ac33-f2ee59ef97bc",
      "name": "Update Notion (Expert)",
      "type": "n8n-nodes-base.notion",
      "position": [
        320,
        3744
      ]
    },
    {
      "id": "e0a181ff-af8d-4f7c-9fff-e937ae7c7ff8",
      "name": "Get Image URL (Expert)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        3744
      ]
    },
    {
      "id": "d0f7d925-0bdf-4a24-b215-959a57c9b28b",
      "name": "Upload to Postiz",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        4064
      ]
    }
  ],
  "connections": {
    "drive1": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (Activity)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "drive2": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (Expert)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "notion": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (Expert)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "openai": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Caption (Expert)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "notion1": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (System)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "notion2": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (Activity)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "openai1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Caption (System)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "openai2": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Caption (Activity)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "drivefile": {
      "ai_tool": [
        [
          {
            "node": "Generate Caption (System)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge Data": {
      "main": [
        [
          {
            "node": "Route by Theme",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4o LLM2": {
      "ai_languageModel": [
        [
          {
            "node": "Gen Prompt (Activity)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger": {
      "main": [
        [
          {
            "node": "Get Post Theme",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Brand Guidelines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Post Theme": {
      "main": [
        [
          {
            "node": "Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Theme": {
      "main": [
        [
          {
            "node": "Gen Prompt (Expert)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gen Prompt (System)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gen Prompt (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Postiz": {
      "main": [
        [
          {
            "node": "Post to X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Brand Text": {
      "main": [
        [
          {
            "node": "Merge Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Gen Image (Expert)": {
      "main": [
        [
          {
            "node": "Get Image URL (Expert)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gen Image (System)": {
      "main": [
        [
          {
            "node": "Get Image URL (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Gen Prompt (System)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Gen Prompt (Expert)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download for Upload": {
      "main": [
        [
          {
            "node": "Upload to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gen Prompt (Expert)": {
      "main": [
        [
          {
            "node": "Gen Image (Expert)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gen Prompt (System)": {
      "main": [
        [
          {
            "node": "Gen Image (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gen Image (Activity)": {
      "main": [
        [
          {
            "node": "Get Image URL (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand Guidelines": {
      "main": [
        [
          {
            "node": "Format Brand Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gen Prompt (Activity)": {
      "main": [
        [
          {
            "node": "Gen Image (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image URL (Expert)": {
      "main": [
        [
          {
            "node": "Save to Drive (Expert)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image URL (System)": {
      "main": [
        [
          {
            "node": "Save to Drive (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Drive (Expert)": {
      "main": [
        [
          {
            "node": "Update Notion (Expert)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Drive (System)": {
      "main": [
        [
          {
            "node": "Update Notion (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion (Expert)": {
      "main": [
        [
          {
            "node": "Generate Caption (Expert)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion (System)": {
      "main": [
        [
          {
            "node": "Generate Caption (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image URL (Activity)": {
      "main": [
        [
          {
            "node": "Save to Drive (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Drive (Activity)": {
      "main": [
        [
          {
            "node": "Update Notion (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion (Activity)": {
      "main": [
        [
          {
            "node": "Generate Caption (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Caption (Expert)": {
      "main": [
        [
          {
            "node": "Download for Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Caption (System)": {
      "main": [
        [
          {
            "node": "Download from Drive (System)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Caption (Activity)": {
      "main": [
        [
          {
            "node": "Download from Drive (Activity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Drive (System)": {
      "main": [
        [
          {
            "node": "Upload to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Drive (Activity)": {
      "main": [
        [
          {
            "node": "Upload to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}