Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Build a Multi-Agent Video System: Intent Parsing, Graph Planning, and Tool Routing from Scratch

Build a multi-agent system for video understanding, retrieval, editing and remaking.

MarkTechPost 1 min read

Build a Multi-Agent Video System: Intent Parsing, Graph Planning, and Tool Routing from Scratch

In this tutorial, we demonstrate how to construct a multi-agent system for video understanding, retrieval, editing, and remaking, inspired by the VideoAgent workflow. The system features intent parsing, graph planning, tool routing, and a textual-gradient optimizer to repair missing dependencies. It integrates practical tools like FFmpeg, Whisper transcription, scene detection, keyframe sampling, captioning, cross-modal indexing, retrieval, trimming, beat-synced editing, and rendering. By the end, you'll have a complete system that can answer questions about videos, summarize content, generate news overviews, and produce edited video artifacts from natural language instructions.

Configuring the Runtime and LLM Wrapper

We start by setting up the runtime environment, including an optional LLM backend, working directory, package installation, and dependency fallbacks. The code includes a unified LLM wrapper supporting OpenAI, DeepSeek, Anthropic, and Gemini, with safe fallback to deterministic execution when no API key is available.

Defining Intents, Agent Library, and Graph Planner

The system defines a set of intents such as audio extraction, transcription, rhythm detection, scene detection, keyframe sampling, captioning, cross-modal indexing, shot planning, visual retrieval, trimming, summarization, question answering, news overview, beat-sync editing, concatenation, and rendering. Each agent is defined with its inputs, outputs, and capabilities. The graph planner orchestrates these agents to execute complex video editing tasks based on user instructions.

React