Start a routine
start_routineStart a routine; for a whole new edit made from the person's uploads, start edit_prep first, before you read any footage: it reads the uploads, plans and cuts the film, writes it and hands you the rest to build. A routine is a long process that runs on Vidova's servers by itself and hands you its result. It answers with a Job ID at once or within a minute; call wait_for_jobs with it, again and again, until it is done: each wait shows the steps done so far and what they found, and the last gives its result and the credits it used. Keep talking to the person while it runs. Do not start it again while it runs, and do not do its work yourself meanwhile. The routines:
edit_prep: Makes the base of a new edit from the person's uploads: it reads every upload closely, a director ranks the moments and plans the story beat by beat, each beat's exact first and last frame is found, the cut is made, then its polish (transitions, speed, effects, looks, sound, captions, music) is planned and the base film is written into main.film. When: A whole new edit made from the person's uploads: the first edit of a project with uploads, or a request to start the edit over from the footage. Never: A change to a film already built (a trim, a swap, a new title, music, a graphic or any other layer), or a request with no uploads to cut from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes | edit_prep: the person's request for this edit, word for word as they wrote it, with every fact, name, length and must-have they gave. | |
| routine | Yes | The routine to start: edit_prep. | |
| seconds | Yes | edit_prep: the film's length in seconds when the person gave one; null when they named none. | |
| assetIds | Yes | edit_prep: the Asset IDs of the uploads to make the edit from. null takes every video and photo the person uploaded to the project. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| resumeJobId | Yes | The Job ID of a run of this routine that failed, to carry on from the step it failed at, keeping the steps it finished: only when its failure says to. null starts afresh. |