- Triggering the agent
- Poll for status and retrieve clips
- Preview and display subtitles over video using
<Subtitles /> - Re-render the clip after changes
- Return the file result to the user
When creating initial clipping agents, lean on your Overlap team to support you.Each clipping agent will need to include every desired editable field as a node. For example, if you ever want to control the subtitles via the trigger API, then you will need to include a Subtitles node in your agent.
1. Trigger an Agent (Start Clip Generation)
Before triggering an agent (a.k.a a Workflow), you’ll need to find theworkflowId. This is most easily obtained from the URL when you are looking at a clipping agent. The URL will be structured as follows:
https://portal.overlap.ai/workflows/<Workflow ID>/trigger

POST /trigger-template to start the clipping process from a long-form video URL.
Required fields:companyId,workflowId,url
This will launch a clipping agent with the exact same settings as what appears in the clipping agent in Overlap, except with B Roll turned ON.
triggerId — you will use it in the next step.
2. Poll for Status and Retrieve Clips
UseGET /workflow-results/{triggerId} to check the status every 5–10 seconds until clips are ready.
clips[0]) to preview and edit.
3. Preview Video With <Subtitles />
An overlay component to display on top of therenderedUrl to simulate and edit subtitles
Font sizing now uses standard dimensions, not your video size
4. Re-render After Edits
Once the user adjusts subtitles or trims, you can re-render the clip by callingPOST /render with clipId.
- Endpoint runs synchronously
- Approximate runtime:
clip_duration_seconds * 0.75
Summary
- Trigger
POST /trigger-templatewithcompanyId,workflowId,url - Poll
GET /workflow-results/{taskId}untilstatus === "completed" - Preview video + subtitles using
<Subtitles />and the transcript fromtranscriptUrl - Re-render with
POST /renderafter edits are made - Display final
urlin your Brandlive experience