{
  "openruna_format": "flow-graph-v1",
  "title": "0905_Wait_Schedule_Create_Webhook",
  "slug": "0905-wait-schedule-create-webhook",
  "source_filename": "0905_Wait_Schedule_Create_Webhook.json",
  "nodes": [
    {
      "id": "Scheduled Start: Check for New Posts",
      "name": "Scheduled Start: Check for New Posts",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "1. Get Next Post Idea from Sheet",
      "name": "1. Get Next Post Idea from Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "2. Prepare Input Variables (Topic, Audience, etc.)",
      "name": "2. Prepare Input Variables (Topic, Audience, etc.)",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "3a. Generate Content Concept (Gemini)",
      "name": "3a. Generate Content Concept (Gemini)",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "(LLM Model for Concept)",
      "name": "(LLM Model for Concept)",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "(Parse Concept JSON)",
      "name": "(Parse Concept JSON)",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "3b. Generate Image Prompt Options (Gemini)",
      "name": "3b. Generate Image Prompt Options (Gemini)",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "(LLM Model for Prompts)",
      "name": "(LLM Model for Prompts)",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "(Parse Prompts JSON)",
      "name": "(Parse Prompts JSON)",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "3c. Generate Post Caption (Gemini)",
      "name": "3c. Generate Post Caption (Gemini)",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "(LLM Model for Caption)",
      "name": "(LLM Model for Caption)",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "(Parse Caption JSON)",
      "name": "(Parse Caption JSON)",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "4. Generate Image using Prompt 1 (Replicate Flux)",
      "name": "4. Generate Image using Prompt 1 (Replicate Flux)",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "5. Prepare Data for Instagram API",
      "name": "5. Prepare Data for Instagram API",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "6a. Create Instagram Media Container",
      "name": "6a. Create Instagram Media Container",
      "integration": "facebookGraphApi",
      "kind": "action"
    },
    {
      "id": "6b. Wait for Container Processing",
      "name": "6b. Wait for Container Processing",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "6c. Publish Post to Instagram",
      "name": "6c. Publish Post to Instagram",
      "integration": "facebookGraphApi",
      "kind": "action"
    },
    {
      "id": "7. Update Post Status in Sheet",
      "name": "7. Update Post Status in Sheet",
      "integration": "googleSheets",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "6c. Publish Post to Instagram",
      "to": "7. Update Post Status in Sheet"
    },
    {
      "from": "1. Get Next Post Idea from Sheet",
      "to": "2. Prepare Input Variables (Topic, Audience, etc.)"
    },
    {
      "from": "5. Prepare Data for Instagram API",
      "to": "6a. Create Instagram Media Container"
    },
    {
      "from": "6b. Wait for Container Processing",
      "to": "6c. Publish Post to Instagram"
    },
    {
      "from": "3c. Generate Post Caption (Gemini)",
      "to": "4. Generate Image using Prompt 1 (Replicate Flux)"
    },
    {
      "from": "6a. Create Instagram Media Container",
      "to": "6b. Wait for Container Processing"
    },
    {
      "from": "Scheduled Start: Check for New Posts",
      "to": "1. Get Next Post Idea from Sheet"
    },
    {
      "from": "3a. Generate Content Concept (Gemini)",
      "to": "3b. Generate Image Prompt Options (Gemini)"
    },
    {
      "from": "3b. Generate Image Prompt Options (Gemini)",
      "to": "3c. Generate Post Caption (Gemini)"
    },
    {
      "from": "4. Generate Image using Prompt 1 (Replicate Flux)",
      "to": "5. Prepare Data for Instagram API"
    },
    {
      "from": "2. Prepare Input Variables (Topic, Audience, etc.)",
      "to": "3a. Generate Content Concept (Gemini)"
    }
  ]
}