Developer & DevOps

Create dynamic animated stories using APIs and custom code

51 nodes 295 155 Automatic trigger
Download

Workflow Description

Advanced automation to generate animated stories by calling external APIs and executing custom JavaScript code, with full control over workflow logic, conditional routing, and timed delays between processing stages for seamless execution and rate limit compliance.

How it works

  1. 1.Trigger the workflow manually or via scheduled automation to initiate story creation
  2. 2.Call external APIs to fetch data or generate content for the story
  3. 3.Execute custom JavaScript code to process data and construct story elements
  4. 4.Implement timed delays between workflow steps to prevent API rate limit violations
  5. 5.Apply conditional logic to route the workflow based on data validation or status checks
  6. 6.Store or pass final data to subsequent steps for further processing or delivery

Use cases

  • Generate dynamic narrative content for digital platforms and mobile applications
  • Produce personalized stories that adapt based on user data or preferences
  • Automate animation production with variable and customizable story content

Requirements

  • Basic JavaScript knowledge to write and modify custom code blocks
  • API keys and access credentials for any external services integrated into the workflow
  • Understanding of n8n workflow architecture and data mapping between nodes

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Set Code HTTP Request Wait If Note Manual Trigger

Details

Trigger Automatic trigger
Nodes 51
Apps 7
Views 295
Downloads 155

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (51)

/

output1

Set

#1

output2

Set

#2

Get Prompt

Code

#3

Basic Params

Set

#4

Get Task ID of the First Image

Set

#5

Midjourney Generator of the First Image

HTTP Request

#6

Wait for the First Image Generation

Wait

#7

Verify the first image generation status

If

#8

Get the First Image URL

Set

#9

Midjourney Generator of the Second Image

HTTP Request

#10

Midjourney Generator of the Third Image

HTTP Request

#11

Get the First Image Generation Status

Switch

#12

Get the Second Image Generation Status

Switch

#13

Get the Third Image Generation Status

Switch

#14

Get the Second Image URL

Set

#15

Get the Third Image URL

Set

#16

Wait for the Second Image Generation

Wait

#17

Get Task of the First Image

HTTP Request

#18

Get Task of the Second Image

HTTP Request

#19

Verify the second image generation status

If

#20

Verify the third image generation status

If

#21

Get Task of the Third Image

HTTP Request

#22

Wait for the Third Image Generation

Wait

#23

Get three Image URLs

Set

#24

Generate the First Video

HTTP Request

#25

Generate the Second Video

HTTP Request

#26

Generate the Third Video

HTTP Request

#27

Final Video Combination

HTTP Request

#28

Get the Third Video URL

Set

#29

Get Video Task IDs

Set

#30

Get the First Video Task

HTTP Request

#31

Verify the First Video Generation

If

#32

Verify the Second Video Generation

If

#33

Verify the Third Video Generation

If

#34

Wait for Video Generation for at Least 4 min

Wait

#35

Wait for the First Video Generation

Wait

#36

Wait for the Second Video Generation

Wait

#37

Wait for the Third Video Generation

Wait

#38

Get the First Video Generation

Switch

#39

Get the Second Video Generation

Switch

#40

Get the Third Video Generation

Switch

#41

Get the Second Video Task

HTTP Request

#42

Get the Third Video Task

HTTP Request

#43

Sticky Note

Sticky Note

#44

When clicking Test workflow

Manual Trigger

#45

GPT-4o-mini Generate Image Scenario Prompt

HTTP Request

#46

Sticky Note1

Sticky Note

#47

Sticky Note2

Sticky Note

#48

Sticky Note3

Sticky Note

#49

Sticky Note4

Sticky Note

#50

Sticky Note5

Sticky Note

#51