The GenMedia for Commerce Agent is an orchestrator designed for retail media generation, including Virtual Try-On (VTO) videos and 360° product spins using Veo 3.1 and Gemini.
Prerequisites
- Python 3.11+
- Node.js 20+
- uv (dependency management)
- Terraform (infrastructure)
- Google Cloud SDK (gcloud)
Setup Steps
- Get the Code:
- Clone the repo:
git clone https://github.com/google/adk-samples.git && cd adk-samples/python/agents/genmedia-for-commerce - OR use the Google Agents CLI:
uvx google-agents-cli setup
agents-cli create genmedia4commerce -a adk@genmedia-for-commerce
(Select None for deployment when prompted).
- Configure Environment:
cp config.env.example config.env
Edit config.env to set PROJECT_ID and IMAGE_NAME (e.g., gcr.io/your-gcp-project-id/genmedia-for-commerce). - Install Dependencies:
make install
- Authenticate:
gcloud auth login
gcloud auth application-default login
gcloud config set project your-gcp-project-id
- Infrastructure Setup:
make setup-infra
Local Development
Run the backend and frontend development servers using:
make dev
# Clone and navigate
git clone https://github.com/google/adk-samples.git
cd adk-samples/python/agents/genmedia-for-commerce
# Configure environment
cp config.env.example config.env
# Install and run
make install
make dev