Technical Issue Report: Leonardo AI + n8n Automated Image and Video Production Pipeline
Date: October 26, 2026
Project: Automated AI Image and Video Production for a Korean YouTube Channel
Current Status: Image generation and Google Drive delivery confirmed; character consistency and reliable end-to-end production remain unresolved.
1. Project Objective
I am building an automated content production system for a Korean YouTube channel serving audiences primarily in their 50s and 60s.
My goal is not merely to generate individual AI images.
I need a production pipeline that can consistently generate multiple scenes featuring the same character, save and validate the resulting assets, and ultimately assemble those scenes into finished videos with synchronized narration and subtitles.
The system currently uses:
-
Leonardo AI for AI image generation and Character Reference
-
n8n Cloud for API orchestration and automation
-
Google Drive for reference images, generated assets, and evidence files
-
Python and FFmpeg for video assembly and rendering
-
ChatGPT and ChatGPT Work for implementation, automation, quality assurance, and troubleshooting
The Leonardo-to-n8n integration is already operational. I do not want to rebuild the entire system from scratch.
I need the existing successful integration to produce consistent, usable visual assets and support reliable automated video production.
2. What Has Already Worked
On October 26, 2026, I successfully completed one paid image-generation workflow through n8n Cloud.
The workflow performed the following operations:
-
Downloaded the reference image from Google Drive.
-
Uploaded the reference image to Leonardo AI.
-
Obtained a Leonardo reference image ID.
-
Submitted an image-generation request containing Character Reference settings.
-
Received a completed generation response.
-
Retrieved one newly generated image.
-
Uploaded the generated image to Google Drive.
-
Uploaded an evidence JSON file to Google Drive.
The associated execution details are:
| Parameter |
Value |
| Run key |
V15_REF_PROOF_20261026_C |
| Scene ID |
V15_REF_PROOF_NEW01 |
| Model |
Leonardo Phoenix 1.0 |
| Generation ID |
d7390442-a0a4-43d8-a95b-400cb47d8614 |
| Reference init image ID |
6879f6bc-d658-4c46-b6ce-1dcd47029119 |
| Generated image ID |
06ef1a8e-8ade-4a7e-b919-22375e6fac04 |
| Reference filename |
V15_S03_CLEAN_REPLACEMENT.png |
| Reference SHA256 |
4be4d0fd331ee2615db223f420e62c9d68d2ec9d49810da279097e051563045c |
| Character Reference preprocessor |
397 |
| Reference strength |
Mid |
| Requested quantity |
1 |
| Returned quantity |
1 |
| Paid generation API calls |
1 |
| Automatic retry |
Disabled |
| Provider status |
COMPLETE |
Both the generated image and its evidence JSON were located and retrieved successfully from Google Drive.
This demonstrates that the basic API integration and file-delivery workflow are functioning.
The principal failure is therefore not connectivity or the ability to generate an image. The failure is the quality and consistency of the generated character.
3. Critical Issue: Character Identity Is Not Preserved
The reference image features a Korean middle-aged woman with her hair pulled back and distinctive facial proportions.
However, the newly generated image depicts a woman with noticeably different visual characteristics.
The differences include:
-
Different facial outline and jaw shape
-
Noticeably different overall facial appearance
-
Changes in the eyes, nose, and mouth
-
Different hairstyle and hair volume
-
Overall identity drift significant enough that the images do not convincingly depict the same character
The two actual image files were retrieved and visually compared.
The result was marked VISUAL_HOLD — insufficient character consistency.
This makes the generated asset unsuitable for use as a continuous scene featuring the established character.
This is a critical business requirement. My videos rely on recurring characters appearing across many scenes. If the face changes between scenes, the audience will perceive different people, reducing realism and production quality.
Questions for Leonardo Technical Support
-
Can you confirm whether the reference image was actually consumed by the generation associated with Generation ID d7390442-a0a4-43d8-a95b-400cb47d8614?
-
Was the combination of preprocessorId: 397, initImageType: UPLOADED, and strengthType: Mid processed as intended with Leonardo Phoenix 1.0?
-
What is the most likely reason for the identity drift: reference composition, reference strength, prompt instructions, model limitations, or some other setting?
-
Should the original wide-scene reference be replaced or supplemented with a tightly cropped facial reference?
-
Is High strength the appropriate next step, or is another reference mechanism recommended?
-
Is there a more suitable Leonardo model or API configuration for generating many distinct scenes while maintaining one visually consistent character?
I need an exact, actionable configuration recommendation rather than generic advice to add phrases such as “same person” to the prompt.
4. Current API Request Structure
The n8n workflow is configured to submit Character Reference through the following payload structure:
{
"controlnets": [
{
"initImageId": "<uploaded_reference_image_id>",
"initImageType": "UPLOADED",
"preprocessorId": 397,
"strengthType": "Mid"
}
]
}
The workflow also specifies the model ID, prompt, image dimensions, and num_images: 1.
Although the workflow configuration references the uploaded image correctly, I need a reliable way to confirm which reference settings the provider actually processed for the completed generation.
A configured request field and an independently verified provider-side reference application are not necessarily the same thing.
Please provide a method for verifying the effective reference inputs and guidance settings associated with a completed generation.
5. n8n Reliability and Evidence-Tracking Issues
Several operational issues also need to be addressed.
A. Evidence records may not reflect actual generation settings
A revised workflow candidate was created to change Character Reference strength from Mid to High.
However, its evidence-generation code still contained a hard-coded Mid value.
This creates a serious traceability problem: the stored evidence could describe settings that differ from those actually submitted.
The workflow should record the actual resolved request payload and relevant provider response data rather than duplicating configuration values in independent code.
B. Paid request duplication must be prevented
A successful generation must not be charged again because of a manual workflow restart, retry, execution interruption, or incorrectly selected queue entry.
The automation needs persistent idempotency protection that can associate:
-
A unique scene or job key
-
Its authorization state
-
The request-submitted state
-
The Leonardo Generation ID
-
The completed result and file IDs
-
The final visual QA result
A retry must never silently result in an additional paid generation for the same approved job.
C. Failed visual QA must not stall the entire production system
An individual scene that fails character consistency checks should be placed on HOLD.
Other eligible, authorized jobs should continue without creating duplicate requests or automatically accepting failed images.
The workflow needs a clear separation between technical generation completion and visual quality approval.
D. Actual storage verification is required
A successful API response alone is insufficient.
The system must verify that image assets and their associated evidence files have actually been persisted and can be retrieved from Google Drive.
File checksums and provider IDs should be preserved to establish a reliable asset history.
6. Additional Metadata Issue
The evidence JSON for the completed generation contains:
{
"provider_status": "COMPLETE",
"nsfw": true
}
The actual generated image depicts an ordinary Korean middle-aged woman seated indoors with a smartphone and open notebooks.
There is no obvious sexually explicit content in the visible image.
Please clarify the exact meaning of the nsfw field in this response, whether the value indicates classification or restriction, and whether it affects downstream usage or automated processing.
This field did not prevent the image from being returned and stored successfully.
7. End-to-End System Requirements
The intended production pipeline is:
Approved script and scene plan → character reference validation → scene-by-scene image generation → asset storage → quality verification → scene approval → Python/FFmpeg assembly → synchronized narration and subtitles → validated MP4 output.
The finished system must meet the following requirements:
-
Preserve the visual identity of recurring characters across different scenes.
-
Generate one independent image file per scene, without collage or split-screen layouts.
-
Produce realistic Korean everyday environments and culturally appropriate characters.
-
Detect or flag facial inconsistencies, malformed hands, unwanted text, logos, and repeated visual compositions.
-
Prevent duplicate paid API submissions.
-
Store and verify generated files, provider IDs, hashes, and execution evidence.
-
Isolate failed scenes without causing indefinite workflow blockage.
-
Minimize manual intervention for each scene.
-
Support production of finished MP4 videos with properly synchronized audio and captions.
8. Current Constraints and Safety Requirements
The successful October 26 generation must remain preserved.
The workflow’s paid-generation authorization has been returned to false.
No additional paid generation should be triggered without explicit authorization.
A revised High-strength configuration exists as an unverified candidate, but it has not yet demonstrated improved image consistency.
Installing a modified n8n workflow is not, by itself, proof that the underlying image-quality issue has been resolved.
I want to retain the working integration and make targeted changes supported by evidence.
9. Specific Assistance Requested
I am looking for direct technical support with the following deliverables:
For Leonardo AI:
-
Diagnosis of the observed identity drift using the provided Generation ID
-
Verification of the applied Character Reference input
-
A concrete recommended API payload for higher character consistency
-
Guidance on reference image composition, cropping, strength, and model selection
-
Clarification of the nsfw: true metadata
For n8n / automation engineering:
-
A workflow implementation that records the exact effective request configuration
-
Persistent protection against duplicate paid generation
-
Reliable association of scene IDs, provider job IDs, images, and Drive asset IDs
-
Safe handling of visual QA failures
-
Continued processing of other authorized scenes without unnecessary manual intervention
-
A practical integration path from approved images to automated MP4 production
10. Expected Outcome
The objective is not another architectural proposal or a fresh installation of software that is already working.
I need an implementable fix to the real remaining problems, starting with reliable character consistency.
Once character consistency has been demonstrated on a controlled test, I intend to expand to multiple scenes and ultimately to fully assembled videos.
Please provide specific technical changes, an explanation of why they should address the observed failure, and a clear verification procedure.
I want to distinguish between three outcomes:
-
Successful API connectivity
-
Successful generation of visually consistent and usable images
-
Reliable end-to-end automated video production
The first has been demonstrated. The second and third are not yet complete.