AI video agents framework for next-gen video interactions and workflows.
AI video agents framework for next-gen video interactions and workflows.
Framework to build video agents that can reason through complex video tasks like search, editing, compilation, generation etc & instantly stream the results.
⭐️ Built on top of the cutting edge 'Video-as-Data' infrastructure, VideoDB
⚡️Watch Agent Demos
✨Try Hosted Version
</a>
<a href="https://railway.app/template/QJbo7o" target="_blank" rel="nofollow">
</a>
</p>
Documentation
New Agent Request
Think of Director as ChatGPT for videos. It is a framework to build video agents that can reason through complex video tasks like search, editing, compilation, generation etc & instantly stream the results.
For example, a simple natural language command like: Upload this video and send the highlights to my Slack, sets everything in motion - Director’s reasoning will orchestrate the different agents intelligently to complete the task for you.
Built on top of VideoDB’s ‘video-as-data’ infrastructure, Director enables you to:
Built with flexibility in mind, Director is perfect for developers, creators, and teams looking to harness AI to simplify media workflows and unlock new possibilities. Watch: Intro video
https://github.com/user-attachments/assets/33e0e7b4-9eb2-4a26-8274-f96c2c1c3a48
Experience a sleek, chat-based interface with built-in video playback and intuitive controls. It’s like having a personal assistant for your media.
Connect seamlessly with powerful AI tools like LLMs, databases, and GenAI APIs, while VideoDB ensures your video infrastructure is reliable and scalable for cloud storage, indexing and streaming your content effortlessly.
Easily add new agents and tools to your workflow. Whether you want to run it locally or on your cloud, The Director adapts to your needs.
Director's architecture brings together:
At the heart of The Director is its Reasoning Engine, a powerful core that drives intelligent decision-making and dynamic workflows. It acts as the brain behind the agents, enabling them to process commands, interact with data, and deliver meaningful outputs.
The Reasoning Engine works in tandem with the chat-based UI, making video interaction intuitive and efficient. For example:
For a closer look, check out the detailed architecture diagram below:
1. Clone the repository:
git clone https://github.com/video-db/Director.git
cd Director2. Run the setup script:
./setup.shThis script will:
- Install Node.js 22.8.0 using nvm
- Install Python and pip
- Set up virtual environments for both frontend and backend.
3. Configure the environment variables:
Edit the .env files to add your API keys and other configuration options.
To start both the backend and frontend servers:
make runBackend: http://127.0.0.1:8000
Frontend: http://127.0.0.1:8080
For specific tasks:
Backend only: make run-be
Frontend only: make run-fe
Checkout hosted documentation at https://docs.director.videodb.io
To create a new agent in Director, follow these steps:
Copy the template:
Duplicate sample_agent.py in Director/backend/director/agents/ and rename it.
Update class details:
agent_name and descriptionImplement logic:
docstringHandle output and status updates:
self.output_message.actions for progress indicatorspush_update() to emit progress eventsImplement error handling:
Finalize the response:
self.output_message.publish() to emit final state and persist sessionAgentResponse with result, message, and dataRegister the agent:
Director/backend/director/handler.pyself.agents list in ChatHandlerRemember to consider creating reusable tools if your agent's functionality could be shared across multiple agents.
Checkout hosted documentation at https://docs.director.videodb.io
To serve the documentation on port 9000:
source backend/venv/bin/activate
make install-be
mkdocs serve -a localhost:9000To build the documentation:
mkdocs buildWe welcome integrations from projects that can make video workflows easy and increase capabilities of the projects. Please check issues and discussions for details.
Any contributions you make are greatly appreciated. Here's the process:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)No open issues yet, or sync has not completed.