Create dynamic animated stories using APIs and custom code
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.Trigger the workflow manually or via scheduled automation to initiate story creation
- 2.Call external APIs to fetch data or generate content for the story
- 3.Execute custom JavaScript code to process data and construct story elements
- 4.Implement timed delays between workflow steps to prevent API rate limit violations
- 5.Apply conditional logic to route the workflow based on data validation or status checks
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (51)
output1
Set
output2
Set
Get Prompt
Code
Basic Params
Set
Get Task ID of the First Image
Set
Midjourney Generator of the First Image
HTTP Request
Wait for the First Image Generation
Wait
Verify the first image generation status
If
Get the First Image URL
Set
Midjourney Generator of the Second Image
HTTP Request
Midjourney Generator of the Third Image
HTTP Request
Get the First Image Generation Status
Switch
Get the Second Image Generation Status
Switch
Get the Third Image Generation Status
Switch
Get the Second Image URL
Set
Get the Third Image URL
Set
Wait for the Second Image Generation
Wait
Get Task of the First Image
HTTP Request
Get Task of the Second Image
HTTP Request
Verify the second image generation status
If
Verify the third image generation status
If
Get Task of the Third Image
HTTP Request
Wait for the Third Image Generation
Wait
Get three Image URLs
Set
Generate the First Video
HTTP Request
Generate the Second Video
HTTP Request
Generate the Third Video
HTTP Request
Final Video Combination
HTTP Request
Get the Third Video URL
Set
Get Video Task IDs
Set
Get the First Video Task
HTTP Request
Verify the First Video Generation
If
Verify the Second Video Generation
If
Verify the Third Video Generation
If
Wait for Video Generation for at Least 4 min
Wait
Wait for the First Video Generation
Wait
Wait for the Second Video Generation
Wait
Wait for the Third Video Generation
Wait
Get the First Video Generation
Switch
Get the Second Video Generation
Switch
Get the Third Video Generation
Switch
Get the Second Video Task
HTTP Request
Get the Third Video Task
HTTP Request
Sticky Note
Sticky Note
When clicking Test workflow
Manual Trigger
GPT-4o-mini Generate Image Scenario Prompt
HTTP Request
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note