{
  "openruna_format": "flow-graph-v1",
  "title": "Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API",
  "slug": "create-animated-stories-using-gpt-4o-mini-midjourney-kling-and-creatomate-api",
  "source_filename": "1395_Wait_Code_Create_Webhook.json",
  "nodes": [
    {
      "id": "output1",
      "name": "output1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "output2",
      "name": "output2",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Prompt",
      "name": "Get Prompt",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Basic Params",
      "name": "Basic Params",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Task ID of the First Image",
      "name": "Get Task ID of the First Image",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Midjourney Generator of the First Image",
      "name": "Midjourney Generator of the First Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Wait for the First Image Generation",
      "name": "Wait for the First Image Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Verify the first image generation status",
      "name": "Verify the first image generation status",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get the First Image URL",
      "name": "Get the First Image URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Midjourney Generator of the Second Image",
      "name": "Midjourney Generator of the Second Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Midjourney Generator of the Third Image",
      "name": "Midjourney Generator of the Third Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get the First Image Generation Status",
      "name": "Get the First Image Generation Status",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Second Image Generation Status",
      "name": "Get the Second Image Generation Status",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Third Image Generation Status",
      "name": "Get the Third Image Generation Status",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Second Image URL",
      "name": "Get the Second Image URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get the Third Image URL",
      "name": "Get the Third Image URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Wait for the Second Image Generation",
      "name": "Wait for the Second Image Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Get Task of the First Image",
      "name": "Get Task of the First Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get Task of the Second Image",
      "name": "Get Task of the Second Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Verify the second image generation status",
      "name": "Verify the second image generation status",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Verify the third image generation status",
      "name": "Verify the third image generation status",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get Task of the Third Image",
      "name": "Get Task of the Third Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Wait for the Third Image Generation",
      "name": "Wait for the Third Image Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Get three Image URLs",
      "name": "Get three Image URLs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Generate the First Video",
      "name": "Generate the First Video",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Generate the Second Video",
      "name": "Generate the Second Video",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Generate the Third Video",
      "name": "Generate the Third Video",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Final Video Combination",
      "name": "Final Video Combination",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get the Third Video URL",
      "name": "Get the Third Video URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Video Task IDs",
      "name": "Get Video Task IDs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get the First Video Task",
      "name": "Get the First Video Task",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Verify the First Video Generation",
      "name": "Verify the First Video Generation",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Verify the Second Video Generation",
      "name": "Verify the Second Video Generation",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Verify the Third Video Generation",
      "name": "Verify the Third Video Generation",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Wait for Video Generation for at Least 4 min",
      "name": "Wait for Video Generation for at Least 4 min",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Wait for the First Video Generation",
      "name": "Wait for the First Video Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Wait for the Second Video Generation",
      "name": "Wait for the Second Video Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Wait for the Third Video Generation",
      "name": "Wait for the Third Video Generation",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Get the First Video Generation",
      "name": "Get the First Video Generation",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Second Video Generation",
      "name": "Get the Second Video Generation",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Third Video Generation",
      "name": "Get the Third Video Generation",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get the Second Video Task",
      "name": "Get the Second Video Task",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get the Third Video Task",
      "name": "Get the Third Video Task",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "When clicking Test workflow",
      "name": "When clicking Test workflow",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "GPT-4o-mini Generate Image Scenario Prompt",
      "name": "GPT-4o-mini Generate Image Scenario Prompt",
      "integration": "httpRequest",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "output1",
      "to": "Get the Second Video Task"
    },
    {
      "from": "output2",
      "to": "Get the Third Video Task"
    },
    {
      "from": "Get Prompt",
      "to": "Midjourney Generator of the First Image"
    },
    {
      "from": "Basic Params",
      "to": "GPT-4o-mini Generate Image Scenario Prompt"
    },
    {
      "from": "Get Video Task IDs",
      "to": "Wait for Video Generation for at Least 4 min"
    },
    {
      "from": "Get three Image URLs",
      "to": "Generate the First Video"
    },
    {
      "from": "Get the First Image URL",
      "to": "Midjourney Generator of the Second Image"
    },
    {
      "from": "Get the Third Image URL",
      "to": "Get three Image URLs"
    },
    {
      "from": "Get the Third Video URL",
      "to": "Final Video Combination"
    },
    {
      "from": "Generate the First Video",
      "to": "Generate the Second Video"
    },
    {
      "from": "Generate the Third Video",
      "to": "Get Video Task IDs"
    },
    {
      "from": "Get the First Video Task",
      "to": "Verify the First Video Generation"
    },
    {
      "from": "Get the Second Image URL",
      "to": "Midjourney Generator of the Third Image"
    },
    {
      "from": "Get the Third Video Task",
      "to": "Verify the Third Video Generation"
    },
    {
      "from": "Generate the Second Video",
      "to": "Generate the Third Video"
    },
    {
      "from": "Get the Second Video Task",
      "to": "Verify the Second Video Generation"
    },
    {
      "from": "Get Task of the First Image",
      "to": "Verify the first image generation status"
    },
    {
      "from": "Get Task of the Third Image",
      "to": "Verify the third image generation status"
    },
    {
      "from": "When clicking Test workflow",
      "to": "Basic Params"
    },
    {
      "from": "Get Task of the Second Image",
      "to": "Verify the second image generation status"
    },
    {
      "from": "Get Task ID of the First Image",
      "to": "Wait for the First Image Generation"
    },
    {
      "from": "Get the First Video Generation",
      "to": "output1"
    },
    {
      "from": "Get the Third Video Generation",
      "to": "Get the Third Video URL"
    },
    {
      "from": "Get the Second Video Generation",
      "to": "output2"
    },
    {
      "from": "Verify the First Video Generation",
      "to": "Get the First Video Generation"
    },
    {
      "from": "Verify the First Video Generation",
      "to": "Wait for the First Video Generation"
    },
    {
      "from": "Verify the Third Video Generation",
      "to": "Get the Third Video Generation"
    },
    {
      "from": "Verify the Third Video Generation",
      "to": "Wait for the Third Video Generation"
    },
    {
      "from": "Verify the Second Video Generation",
      "to": "Get the Second Video Generation"
    },
    {
      "from": "Verify the Second Video Generation",
      "to": "Wait for the Second Video Generation"
    },
    {
      "from": "Wait for the First Image Generation",
      "to": "Get Task of the First Image"
    },
    {
      "from": "Wait for the First Video Generation",
      "to": "Get the First Video Task"
    },
    {
      "from": "Wait for the Third Image Generation",
      "to": "Get Task of the Third Image"
    },
    {
      "from": "Wait for the Third Video Generation",
      "to": "Get the Third Video Task"
    },
    {
      "from": "Wait for the Second Image Generation",
      "to": "Get Task of the Second Image"
    },
    {
      "from": "Wait for the Second Video Generation",
      "to": "Get the Second Video Task"
    },
    {
      "from": "Get the First Image Generation Status",
      "to": "Get the First Image URL"
    },
    {
      "from": "Get the Third Image Generation Status",
      "to": "Get the Third Image URL"
    },
    {
      "from": "Get the Second Image Generation Status",
      "to": "Get the Second Image URL"
    },
    {
      "from": "Midjourney Generator of the First Image",
      "to": "Get Task ID of the First Image"
    },
    {
      "from": "Midjourney Generator of the Third Image",
      "to": "Wait for the Third Image Generation"
    },
    {
      "from": "Midjourney Generator of the Second Image",
      "to": "Wait for the Second Image Generation"
    },
    {
      "from": "Verify the first image generation status",
      "to": "Get the First Image Generation Status"
    },
    {
      "from": "Verify the first image generation status",
      "to": "Wait for the First Image Generation"
    },
    {
      "from": "Verify the third image generation status",
      "to": "Get the Third Image Generation Status"
    },
    {
      "from": "Verify the third image generation status",
      "to": "Wait for the Third Image Generation"
    },
    {
      "from": "Verify the second image generation status",
      "to": "Get the Second Image Generation Status"
    },
    {
      "from": "Verify the second image generation status",
      "to": "Wait for the Second Image Generation"
    },
    {
      "from": "GPT-4o-mini Generate Image Scenario Prompt",
      "to": "Get Prompt"
    },
    {
      "from": "Wait for Video Generation for at Least 4 min",
      "to": "Get the First Video Task"
    }
  ]
}