Skip to main content
This guide walks through the full Brandlive → Overlap flow:
  1. Triggering the agent
  2. Poll for status and retrieve clips
  3. Preview and display subtitles over video using <Subtitles />
  4. Re-render the clip after changes
  5. 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 the workflowId. 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
Screenshot2025 11 17at3 54 32PM Pn
Use 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.
Sample Response
Save triggerId — you will use it in the next step.

2. Poll for Status and Retrieve Clips

Use GET /workflow-results/{triggerId} to check the status every 5–10 seconds until clips are ready.
Example (JavaScript, simple polling)
Sample Completed Response (simplified)
Pick a clip (e.g., clips[0]) to preview and edit.

3. Preview Video With <Subtitles />

An overlay component to display on top of the renderedUrl 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 calling POST /render with clipId.
Sample Response
  • Endpoint runs synchronously
  • Approximate runtime: clip_duration_seconds * 0.75

Summary

  1. Trigger POST /trigger-template with companyId, workflowId, url
  2. Poll GET /workflow-results/{taskId} until status === "completed"
  3. Preview video + subtitles using <Subtitles /> and the transcript from transcriptUrl
  4. Re-render with POST /render after edits are made
  5. Display final url in your Brandlive experience