← All N8N workflows
Automation & utilitiesCodeHTTP RequestIfManual TriggerEdit Fields

Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API

Configured with HTTP Request, Switch, Wait. Review the connections and setup before adapting this template.

Workflow preview
Transformoutput1Edit FieldsTransformoutput2Edit FieldsCodeGet PromptCodeTransformBasic ParamsEdit FieldsTransformGet Task ID of theFirst ImageEdit FieldsWeb / APIMidjourney Generator ofthe First ImageHTTP RequestWaitWait for the FirstImage GenerationWaitRoutingVerify the first imagegeneration statusIfTransformGet the First Image URLEdit FieldsWeb / APIMidjourney Generator ofthe Second ImageHTTP RequestWeb / APIMidjourney Generator ofthe Third ImageHTTP RequestRoutingGet the First ImageGeneration StatusSwitchRoutingGet the Second ImageGeneration StatusSwitchRoutingGet the Third ImageGeneration StatusSwitchTransformGet the Second ImageURLEdit FieldsTransformGet the Third Image URLEdit FieldsWaitWait for the SecondImage GenerationWaitWeb / APIGet Task of the FirstImageHTTP RequestWeb / APIGet Task of the SecondImageHTTP RequestRoutingVerify the second imagegeneration statusIfRoutingVerify the third imagegeneration statusIfWeb / APIGet Task of the ThirdImageHTTP RequestWaitWait for the ThirdImage GenerationWaitTransformGet three Image URLsEdit FieldsWeb / APIGenerate the FirstVideoHTTP RequestWeb / APIGenerate the SecondVideoHTTP RequestWeb / APIGenerate the ThirdVideoHTTP RequestWeb / APIFinal Video CombinationHTTP RequestTransformGet the Third Video URLEdit FieldsTransformGet Video Task IDsEdit FieldsWeb / APIGet the First VideoTaskHTTP RequestRoutingVerify the First VideoGenerationIfRoutingVerify the Second VideoGenerationIfRoutingVerify the Third VideoGenerationIfWaitWait for VideoGeneration for at Least…WaitWaitWait for the FirstVideo GenerationWaitWaitWait for the SecondVideo GenerationWaitWaitWait for the ThirdVideo GenerationWaitRoutingGet the First VideoGenerationSwitchRoutingGet the Second VideoGenerationSwitchRoutingGet the Third VideoGenerationSwitchWeb / APIGet the Second VideoTaskHTTP RequestWeb / APIGet the Third VideoTaskHTTP RequestTriggerWhen clicking TestworkflowManual TriggerWeb / APIGPT-4o-mini GenerateImage Scenario PromptHTTP Request

Node categories in this workflow

  • Transform
  • Code
  • Web / API
  • Wait
  • Routing
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
output1TransformEdit FieldsSee node parameters
output2TransformEdit FieldsSee node parameters
Get PromptCodeCodeSee node parameters
Basic ParamsTransformEdit FieldsSee node parameters
Get Task ID of the First ImageTransformEdit FieldsSee node parameters
Midjourney Generator of the First ImageWeb / APIHTTP RequestPOST
Wait for the First Image GenerationWaitWaitSee node parameters
Verify the first image generation statusRoutingIfSee node parameters
Get the First Image URLTransformEdit FieldsSee node parameters
Midjourney Generator of the Second ImageWeb / APIHTTP RequestPOST
Midjourney Generator of the Third ImageWeb / APIHTTP RequestPOST
Get the First Image Generation StatusRoutingSwitchSee node parameters
Get the Second Image Generation StatusRoutingSwitchSee node parameters
Get the Third Image Generation StatusRoutingSwitchSee node parameters
Get the Second Image URLTransformEdit FieldsSee node parameters
Get the Third Image URLTransformEdit FieldsSee node parameters
Wait for the Second Image GenerationWaitWaitSee node parameters
Get Task of the First ImageWeb / APIHTTP RequestSee node parameters
Get Task of the Second ImageWeb / APIHTTP RequestSee node parameters
Verify the second image generation statusRoutingIfSee node parameters
Verify the third image generation statusRoutingIfSee node parameters
Get Task of the Third ImageWeb / APIHTTP RequestSee node parameters
Wait for the Third Image GenerationWaitWaitSee node parameters
Get three Image URLsTransformEdit FieldsSee node parameters
Generate the First VideoWeb / APIHTTP RequestPOST
Generate the Second VideoWeb / APIHTTP RequestPOST
Generate the Third VideoWeb / APIHTTP RequestPOST
Final Video CombinationWeb / APIHTTP RequestPOST
Get the Third Video URLTransformEdit FieldsSee node parameters
Get Video Task IDsTransformEdit FieldsSee node parameters
Get the First Video TaskWeb / APIHTTP RequestSee node parameters
Verify the First Video GenerationRoutingIfSee node parameters
Verify the Second Video GenerationRoutingIfSee node parameters
Verify the Third Video GenerationRoutingIfSee node parameters
Wait for Video Generation for at Least 4 minWaitWaitSee node parameters
Wait for the First Video GenerationWaitWaitSee node parameters
Wait for the Second Video GenerationWaitWaitSee node parameters
Wait for the Third Video GenerationWaitWaitSee node parameters
Get the First Video GenerationRoutingSwitchSee node parameters
Get the Second Video GenerationRoutingSwitchSee node parameters
Get the Third Video GenerationRoutingSwitchSee node parameters
Get the Second Video TaskWeb / APIHTTP RequestSee node parameters
Get the Third Video TaskWeb / APIHTTP RequestSee node parameters
When clicking Test workflowTriggerManual TriggerSee node parameters
GPT-4o-mini Generate Image Scenario PromptWeb / APIHTTP RequestPOST

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Basic Setting Instruction

Basic Setting Instruction

Fill in Basic Params based on user's need. The node concludes three section: style, character and situation_keyword. GPT-4o-mini will generate image description based on basic params mentioned above.

Generate the first image

Generate the first image

This workflow section is uesd to generate the first Midjourney image.

Generate the second image

Generate the second image

This workflow section is uesd to generate the second Midjourney image.

Generate the third image

Generate the third image

This workflow section is uesd to generate the third Midjourney image.

Generate three Kling videos

Generate three Kling videos

This section is used to generate three Kliong videos.

Combine Videos in Creatomate

Combine Videos in Creatomate

Set a video template in Creatomate, then set the node with instruction.

Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API

Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API

Purpose and structure

This folder contains the Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API workflow. Its executable nodes use code, httpRequest, if, manualTrigger, set, switch, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking Test workflow

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/1395_Wait_Code_Create_Webhook.json MIT; preserve source notices.

More in Automation & utilities