Processes
How AI Videos discovers, reviews and publishes videos, with the decisions and dependencies along the way.
Hover, focus or tap a step to see its details and highlight the matching view. Numbered arrows show branches and loops. This describes the workflow, not a live run.
Flowchart
Pseudocode
Automation instruction. Read the current instructions and recover actual saved state. A previous completed batch is not the result of this new invocation. An owner pause or stop takes precedence.Instruction and code. Resume the unfinished batch with its original targets. A new ordinary batch targets ten new and five historical videos. A deferred, rejected or excluded video opens a slot. Look for a replacement in the same group, new or historical. If none is available, report the shortfall. A requested source campaign keeps its fixed selection.Code enforced. The read-only recovery command recommends exact pending publication before new work. Preserve its result and ownership when uncertain. The automation must execute the recommended action; recovery does not run it automatically.Instruction and code. Ready packets and packet creation for reviewed images take priority over unrelated preparation. A complete profile may go live before its source video. A ready group can contain just one item; five is a maximum, not a waiting target.Code enforced. Use the existing local inventory and published catalogue directly. Save discovered IDs before metadata requests. After a temporary rate limit, discovery is eligible again in one minute or at the later time YouTube requests. Keep one current source checkpoint, retain unfinished progress and clear completed pagination-token lists. Discovery alone does not publish videos.Code enforced. Requests use server-side workflow key access and existing budgets. Only a successful API response that omits an ID proves unavailability. Access or transport failure preserves records. Unavailable and upcoming videos stay out of processing. Unknown duration allows private review; verified eligible duration is required before publication. Eligible duration is 2 minutes through 2 hours 30 minutes.Instruction and code. The automation reads the existing verified private transcript directly, reviews the evidence and supplies the summary, people, topics and publication metadata. Confirmed members-only denial holds only that video until access changes, without timed retries. A temporary caption limit waits one minute before one retry. A longer or repeated limit leaves the video eligible at the reported time while metadata and ready videos proceed. Submission validates the record before image work. Correct saved chapter timings, missing profile records or editorial text through the existing amendment command; preserve accepted evidence and valid images. Missing evidence stays incomplete; a title alone is not a review. Rejected or deferred slots may be filled from eligible same-lane inventory.Instruction and code. An unidentified narrator or interviewer needs no person record, profile or portrait and does not hold publication. Retain any verified participants. Existing verified originals supply likeness without repeated appearance research. Diffused images are never generation inputs. Only people actually depicted in a thumbnail require portrait references before that thumbnail. Retain other verified relationships without broken profile links or placeholders. Optional social links never block publication; use a verified link or null.Automation instruction. Use the concurrency the tools actually support, without sub-agents. A first portrait feeds only its dependent thumbnails. Do not wait for every candidate to finish analysis, and do not lose successful siblings when one call fails. Retain handles for uncertain calls.Instruction and code. Review identity, readable headline, image quality and provenance under the current image rules. Use the existing targeted retry for a hard failure. Soft warnings alone do not block a serviceable thumbnail. A reviewed video always needs its passing thumbnail and verified eligible duration; optional unfinished profiles do not hold it.Instruction and code. Recovery names an independent candidate before returning to a pending image or identity request. If its result cannot be obtained in this invocation, defer only affected candidates with the existing command, preserve the request and refill missing same-lane slots in ordinary batches. Fixed source and maintenance batches cannot refill. Never mark an unknown result failed or successful, or blindly repeat it. An ordinary batch may finish with explicitly deferred candidate operations retained. Later batches keep those videos and required portraits held until the exact outcomes are reconciled. Shared publication uncertainty follows the shared hold branch instead.Instruction and code. The caller requests publication as items become ready; code validates each release and serializes the publisher. Save media locally, register it and activate the website changes. Profiles do not consume video quotas. Keep the exact pending release if its outcome is uncertain.Instruction and code. A replacement keeps its new original visible while the exact previous original and derivative are removed. Temporary local cleanup needs no new Hosting grant. Keep references until all dependent calls finish, and retain evidence needed by unresolved work.Instruction and code. Continue the current batch: publish ready items first, finish preparation, resolve candidate work and settle or explicitly defer scoped operations. Recovery and handover use the latest catalogue availability. Permanently unavailable videos are excluded, and upcoming videos stay queued for their scheduled retry. Finalization refuses unfinished preparation, undeferred candidates, unscoped operations or unresolved publication ownership. Deferred candidate image work remains recorded without holding an ordinary batch open.Instruction and code. The code checks terminal run state. The automation is instructed to stop after this invocation’s batch and report truthfully, including quota shortfalls. The next scheduled invocation can resume unfinished work or start its own new batch.Instruction and code. Whole-run stops are for owner direction or shared problems that prevent further safe work, such as uncertain publication or a conflicting publisher. They are not the response to an isolated failed candidate. Do not restart or change schedules to work around a blocker.Code enforced. AI Videos does not wait for this separate workflow. Display the original until its one verified derivative is available. Each image has only its current original and at most one derivative. Replacement removes the previous pair; a failed generation leaves the currently served image intact.