See llms.txt for all machine-readable content.

Back to Templates

Validate and time video shot briefs with a JSON webhook

Quick overview

Turn a JSON shot brief into a timed shot list, prompts, and WebVTT review cues. Invalid requests return field-specific errors to the form or production tool that sent them.

How it works

  1. Accepts a POST request from a storyboard, spreadsheet automation, or production tool with a project name and an ordered shots array.
  2. Validates the project and shot count, checks that each shot contains a subject, movement and camera direction, and checks that its duration is an integer from 1 to 60 seconds.
  3. Calculates cumulative start and end times and assembles one copy-ready prompt from the subject, movement and camera direction for each shot.
  4. Returns the prompts, total duration, timed shots and a WebVTT cue track as JSON. Invalid requests receive HTTP 422 with field-specific messages.

Setup

  1. Import the workflow and open Shot Brief Webhook. Use its Test URL during setup. Configure webhook authentication before publishing the workflow for a shared endpoint.
  2. Send a JSON POST with project and shots. Each shot needs subject, movement, camera and durationSeconds. The example request is included on the workflow canvas.
  3. Read the returned shots and totalSeconds fields in your calling tool. Save the webVtt value as shots.vtt and open it in a compatible editor or media player to review the timing.

Requirements

  • An n8n instance with the built-in Webhook, Code and Respond to Webhook nodes. No third-party API credentials are required.

Customization

  • Adjust field limits in Validate and Time Shots if your source application uses a different brief format.

Additional info

For manual video generation, copy a shot prompt into VidFomo Video Studio and add a reference image if the shot has one. VidFomo is an optional handoff and this workflow makes no calls to it. https://vidfomo.com/video