How mu3uf/finalmovieai works
This is a movie recommendation assistant with a browser UI, FastAPI API, authenticated user features, and an AI chat workflow. A user sends a request through chat; the API authenticates the user, passes the request and user context to the agent, and the agent selects movie-search, trending, or unwatched recommendations. Tool results return through chat as movie cards and a concise response. Separate movie endpoints support trending and user likes/watched actions. Source excerpts show the backend relationships; frontend-to-API behavior and the role of the TMDB service are not established, so those links are omitted or marked unverified.
Main entry points: agent.py AI Agent · movies.py Movie Endpoints · main.py FastAPI Application · chat.py Chat Endpoint
Components 17
User Interface
- Web Interface
frontend/js/app.js
API and Identity
- FastAPI Application
app/main.py - Chat Endpoint
app/api/chat.py - Auth Endpoints
app/api/auth.py - Movie Endpoints
app/api/movies.py - User Verification
app/services/auth.py
Assistant and Discovery
- AI Agent
app/agent/agent.py - Routing Instructions
app/agent/prompts.py - Movie Search
app/tools/search_movie.py - Trending Movies
app/tools/trending_movies.py - Unwatched Picks
app/tools/recommend_unwatched_movies.py
Data Integrations
- TMDB Service
app/services/tmdb.py - Supabase Client
app/services/supabase.py - Supabase
- TMDB API
- Gemini Model
Other components
- Movie Seeker
Connections 26
- Movie Seeker → Web Interface: uses
- Web Interface → FastAPI Application: requests
- FastAPI Application → Chat Endpoint: routes
app/main.py - FastAPI Application → Auth Endpoints: routes
app/main.py - FastAPI Application → Movie Endpoints: routes
app/main.py - Chat Endpoint → User Verification: verifies user
app/api/chat.py - Auth Endpoints → User Verification: verifies user
app/api/auth.py - User Verification → Supabase Client: validates token
app/services/auth.py - Auth Endpoints → Supabase: signs in users
app/api/auth.py - Chat Endpoint → AI Agent: invokes
app/api/chat.py - Chat Endpoint → Unwatched Picks: sets user context
app/api/chat.py - AI Agent → Routing Instructions: uses instructions
app/agent/agent.py - AI Agent → Gemini Model: queries model
app/agent/agent.py - AI Agent → Movie Search: dispatches
app/agent/agent.py - AI Agent → Trending Movies: dispatches
app/agent/agent.py - AI Agent → Unwatched Picks: dispatches
app/agent/agent.py - Movie Endpoints → User Verification: verifies user
app/api/movies.py - Movie Endpoints → Trending Movies: invokes
app/api/movies.py - Movie Endpoints → Movie Search: gets poster
app/api/movies.py - Movie Endpoints → Supabase Client: reads and writes
app/api/movies.py - Movie Search → Supabase Client: queries movies
app/tools/search_movie.py - Movie Search → TMDB API: looks up posters
app/tools/search_movie.py - Unwatched Picks → Supabase: filters watched movies
app/tools/recommend_unwatched_movies.py - Unwatched Picks → TMDB API: looks up posters
app/tools/recommend_unwatched_movies.py - Trending Movies → TMDB API: fetches trending
app/tools/trending_movies.py - Supabase Client → Supabase: connects
app/services/supabase.py