Skip to content

About

Audition Agent turns an AI-generated character into a human casting workflow, creating auditions, organizing applicants, and handling follow-up while keeping casting decisions human.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Audition Agent

From an AI-generated character to a human casting conversation.

Audition Agent helps independent filmmakers turn a finished film into an audition, organize the incoming self-tapes, and follow up with performers. A producer can ask questions, find supporting dialogue, record a shortlist, and prepare a phone call from one workspace.

The agent handles casting administration. The producer makes the casting decisions.

Built for Agents for Humans — Professional Agents — and CALL-E: Your Code Is Calling.

Audition Agent concept

What it does

  1. Understand the film. Upload an MP4. Transcription and video analysis produce a structured film brief with characters, story beats, and timestamped dialogue.
  2. Create and publish the audition. A Strands writer produces a role brief, three directed takes, reference moments, and prescreen questions. The producer can edit the package and publish an unlisted application page.
  3. Work through submissions. Review profiles and tapes, search transcripts, and record notes, shortlist/pass decisions, and reviewed state. Agent actions update the workspace through server-sent events.
  4. Explain the role over the phone. The agent prepares a CALL-E plan with the producer's disclosure, a masked destination, and offered times. After the producer presses Call, CALL-E explains the role, asks whether the performer wants to continue, records questions for the producer, and seeks a callback time.

The demo follows I Recommend: Yes, an 86-second short, and the role of Vivi. Carla's written response asks to discuss working with AI. Her follow-up call explains that Vivi is currently generated, what the producer has decided, and what remains open. The result brings her interest, callback time, and unanswered question back into her profile.

Example requests:

What did Carla say about working with AI?

Shortlist Carla.

Call Carla and tell her where Vivi stands. 15 minutes tomorrow between 2:30 and 5 if she's still in.

Architecture

Audition Agent architecture

One Python process serves the API, built frontend, event stream, and background jobs. The Producer Agent chooses tools; the Audition Writer is a separate Strands agent with structured output. Film ingestion normally goes through an agent turn, with a service fallback if the agent does not complete it.

Component Responsibility Code
Producer Agent Tool selection, grounded answers, producer-directed actions producer_agent.py
Audition Writer Structured generation, validation, and repair writer.py
Media analysis Transcription, vision, speaker mapping, and grounded references services/
CALL-E Call task, result schema, polling, and verification calle.py
Callback tools Plan persistence and producer-confirmed execution callback.py
Repository Shared reads/writes and transcript search queries.py
Frontend Film, audition, applicant board, profiles, and agent drawer frontend/src/

Amazon Nova Lite handles agent reasoning, audition writing, and analysis merging; Nova Micro maps speaker labels to characters. Video analysis uses Gemini when a key is set, otherwise the configured Nova video model. Both films and self-tapes use that vision path. Gemini failures fall back to Bedrock. Model IDs are configurable in .env.example; access depends on your provider account and region.

Run locally

Requires Python 3.12, Node.js 20.19+ or 22+, npm, and AWS credentials for live features. uv is recommended; the launcher also supports python3.12 -m venv and pip.

cp .env.example .env
# Set your S3 bucket and configure AWS credentials before using live features.
./start.sh

Open http://localhost:8000. The launcher installs Python dependencies, installs the locked frontend dependencies, type-checks and builds the frontend, then starts the app. The database is created automatically; a new workspace starts empty.

Stop with Ctrl+C or ./stop.sh. The stop script targets the process saved by the launcher. The default bind address is 127.0.0.1; PORT and AA_HOST can override it.

AWS setup

Use your own credentials through the standard boto3 chain: an AWS profile, environment variables, or a deployment role. Do not put access keys in source control.

  • Set AWS_REGION and AA_S3_BUCKET for an existing private S3 bucket.
  • Allow the application to read/write media in that bucket, invoke the configured Bedrock models (including streaming and inference-profile access where applicable), and start/read Amazon Transcribe jobs.
  • For browser uploads and playback, configure bucket CORS for your frontend origin. A local example is in docs/s3-cors.json.
  • If the media bucket belongs to a different AWS account, set AA_S3_ACCOUNT_ID to its owner and configure the corresponding cross-account access.

Uploads go directly from the browser to S3 using presigned POSTs, with a 200 MiB limit. Playback uses presigned GETs. Bedrock calls pass through a Nova model allowlist by default. Nova, Transcribe, S3, optional Gemini, and live CALL-E usage can incur charges.

CALL-E setup

The default is DEMO_MODE=mock: confirmation runs the simulated callback workflow without placing a call. For a live demonstration, configure:

CALLE_API_KEY=your-call-e-api-key
DEMO_PHONE_E164=your-own-phone-in-E164-format
DEMO_MODE=live
AA_TIMEZONE=America/Los_Angeles

Restart after changing configuration. AA_CALLE_MODE, if set, takes precedence over DEMO_MODE. The demo redirects calls to DEMO_PHONE_E164, and the plan labels it as a demo number. Follow CALL-E's integration guide to obtain API access.

The call reads producer-written lines from audition_focus.json. The supplied disclosure belongs to Vivi; a different role needs its own disclosure. These lines describe the demo production and should be reviewed before any live use.

Rehearse the demo

make seed-offline
./scripts/reset_demo.sh --save
./scripts/reset_demo.sh

Then open http://localhost:8000/?demo=1. See the demo walkthrough for a suggested three-minute recording.

seed-offline loads the committed film brief, audition package, nine applicant profiles, portraits, and handwritten AI-role answers. It makes no cloud calls and leaves other prescreen answers and self-tapes absent. It replaces applicants in the configured workspace, so use it for a demo database.

The application as a whole is not an offline simulator: agent chat uses Bedrock, video playback needs accessible S3 media, and guided ingestion attempts the real pipeline. Guided mode reuses the seed film's S3 key, caches model responses, primes the writer cache from the committed package, and falls back to the seed film analysis if ingestion fails. Publishing releases parked demo records; these are simulated arrivals.

For the full media-backed demonstration, supply permitted film and tape files, configure AWS, and run make seed. This may upload tapes and generate answers with paid models. Upload the demo film with:

.venv/bin/python scripts/ingest_film.py --file media/film.mp4 --title "I Recommend: Yes"

The original film and tapes are not distributed in this repository. A fresh clone cannot reproduce their playback or tape-transcript evidence without those assets. Upload your own film through / to exercise live ingestion.

Reset options:

Command Effect
./scripts/reset_demo.sh Clear film/audition state and park demo applicants
./scripts/reset_demo.sh --save Save the current database as a local snapshot
./scripts/reset_demo.sh --hard Restore that snapshot, then reset to the opening
./scripts/reset_demo.sh --seeded Restore the populated snapshot

Snapshots, model caches, and agent sessions live under ignored data/; they are not committed seed databases. Resetting also clears agent sessions. Stop active jobs/calls before a reset; the reset helper uses the default data/ layout for snapshot saving.

Development and checks

make install             # Python environment + frontend dependencies (requires uv)
make api                 # API with reload on :8000
make web                 # Vite dev server on :5173, in another terminal
make check               # Isolated backend regression tests + type-check + production build

Python dependencies are defined in pyproject.toml; requirements.txt is a compatibility entry point. Frontend dependencies are locked in frontend/package-lock.json.

Useful optional commands:

Command Purpose
make seed Rebuild the full demo data; may call cloud APIs
make ingest Analyze the seed film already in S3 and update its committed analysis
.venv/bin/python scripts/check_audition.py Exercise the live audition writer
.venv/bin/python scripts/demo_check.py Print real agent turns; changes demo state and uses Bedrock
make cost Account-wide billing diagnostic, with additional AWS permissions
make headshots Generate missing synthetic portraits; requires Gemini and the portraits extra

To regenerate portraits, install uv pip install --python .venv/bin/python -e '.[portraits]'. Existing portraits are sufficient for seeding; seeding does not regenerate them. FFmpeg is optional for extracting demo stills when preparing local media.

backend/app/
  agent/        Strands agents, prompts, guards, tools
  ai/           Gemini client
  api/          Workspace, chat, public submissions, film, demo routes
  aws/          Bedrock, S3, Transcribe, media headers, response cache
  models/       SQLModel tables
  repo/         Shared database operations
  seed/         Committed demo descriptions and profiles
  services/     Analysis, authoring, callbacks, events, demo lifecycle
frontend/src/   React components, routes, API client, Zustand store
scripts/        Setup-independent seed, ingest, rehearsal, and cost utilities
tests/          Isolated regression tests; no live calls
docs/           Demo, submission checklist, and archived development notes
media/          Bundled demo images; private video files are ignored

Boundaries and known limitations

  • Human casting decisions. There is no ranking tool. A guard rejects ranking-shaped tool arguments; ratings and notes record producer decisions. The seeded descriptive tags/highlights are demo data, not validated measures of acting ability.
  • Producer-confirmed calls. Agent tools can prepare, display, or cancel a plan; they cannot dial. The Call button executes a saved intent with an idempotency key. Ambiguous submission failures are not automatically redialed.
  • Evidence before confirmation. A callback is confirmed only when the result records the disclosure, continued interest, an offered time, adequate confidence, and evidence. Questions remain visible for the producer. No calendar event is created.
  • Grounded references. Quoted dialogue is matched to transcript timestamps. Silent visual references are bounded to the film runtime; they still need human review.
  • Local, single-producer prototype. There is no authentication or tenant isolation. Unlisted audition links are not authentication. Producer, reset, upload, and call APIs need access control before a public deployment.
  • In-process work. Background media jobs do not survive restarts; interrupted analyses are marked for retry. Calls can outlive polling or a server restart and may need manual reconciliation in CALL-E. There is no durable job queue.

Demo assets and license

Source code is licensed under MIT. This does not grant rights to private or third-party films, self-tapes, or linked portfolios.

The nine profiles are composite demo fixtures with synthetic portraits. Some local fixtures use actual tape material and transcript-derived answers; those performers are not the people depicted in the generated portraits. Handwritten AI-role answers and visual tags are illustrative. Use only media you have permission to demonstrate, and review bundled stills and external profile links before publishing a submission.

For each hackathon's remaining deliverables, see the submission checklist. Earlier plans and experiments are preserved under docs/archive/.

About

Audition Agent turns an AI-generated character into a human casting workflow, creating auditions, organizing applicants, and handling follow-up while keeping casting decisions human.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages