Build a content agent
Build a multi-step agent that analyzes video footage and produces structured creative output - combining domain-specific ingestion, instructions, structured output, and multi-turn refinement.
What you’ll build
An agent workflow that analyzes a video collection for narrative elements and produces structured output. This example builds a micro-drama outline with scene breakdowns, character arcs, and clip references. The same pattern applies to any agent that synthesizes from video - training curricula, compliance audits, content plans.
Prerequisites
- Complete the Quickstart to create a knowledge store with at least one item in
readystatus. - Read Create a response to understand the request and response format.
- For best results, configure an ingestion config tailored to your domain.
Step 1: Create a domain-focused knowledge store
Tailor the ingestion config to what your agent needs to extract. This example focuses on narrative elements - characters, emotions, conflicts, and dramatic turning points.
After creating the store, add your video assets and wait for indexing to complete. See the Quickstart for the full upload and indexing workflow.
Step 2: Generate structured output with domain instructions
Combine domain instructions with a schema to extract structured narrative elements. The instructions set Jockey’s creative perspective; the schema defines the output format.
Step 3: Refine in a multi-turn session
Use the session to iterate toward the desired output. Jockey remembers the previous results and adjusts based on your feedback.
The pattern
This workflow demonstrates a reusable agent pattern you can adapt to any domain:
- Domain ingestion config - tell Jockey what to focus on during indexing
- Domain instructions - specialize the response-time behavior
- Structured output - get typed, parseable results
- Multi-turn refinement - iterate toward the desired output
Swap the domain to build different agents:
Variations
- Genre shift: Change instructions to “horror micro-drama”, “comedy sketch”, or “documentary short”
- Character focus: “Build the drama around the most frequently appearing person”
- Multi-episode: Use session continuity to create a series: “Now create episode 2 continuing from this ending”
Jupyter notebook
Download the notebook to run this recipe interactively.
See also
- Structured output - more on JSON Schema responses
- Multi-turn sessions - more on session-based conversations
- Configure ingestion - control what the platform extracts during indexing