π GCP Billing Agent - Web Interface for Agent Engine
π GCP Billing Agent - Web Interface for Agent Engine
Welcome! This is the web interface for interacting with your deployed Vertex AI Agent Engine agents.
π Whatβs Here
web/
βββ backend/ # FastAPI server (Python)
β βββ main.py # Main API server
β βββ requirements.txt
β
βββ frontend/ # React UI (Vite + React)
β βββ src/
β β βββ App.jsx # Main React component
β β βββ ...
β βββ package.json
β
βββ README.md # Full documentation
βββ START_HERE.md # This file!
β‘ Quick Start
Option 1: Local Development (Recommended First) β
Test everything locally before deploying:
# 1. Configure agent IDs
make list-deployments AGENT_NAME=bq_agent_mick
# 2. Start backend (Terminal 1)
cd web/backend
pip install -r requirements.txt
python main.py
# 3. Start frontend (Terminal 2)
cd web/frontend
npm install
npm run dev
# 4. Open http://localhost:3000
Option 2: Deploy to Cloud Run
Deploy directly to Cloud Run with Firestore authentication:
# Makefile helper (recommended)
make deploy-web-simple PROJECT_ID=your-project-id
# Or use the deployment script
cd web/deploy
export PROJECT_ID="your-project-id"
./deploy-web.sh
See GETTING_STARTED.md and AUTOMATED_DEPLOYMENT.md for detailed instructions.
π― What You Can Do
- β Chat with your agents - Select an agent and ask questions
- β See streaming responses - Watch responses appear in real-time
- β Switch between agents - Use the dropdown to change agents
- β Clear conversation - Start fresh anytime
- β Modern UI - Clean, modern chat interface
π Documentation
- GETTING_STARTED.md - Local development & deployment guide
- AUTOMATED_DEPLOYMENT.md - End-to-end Cloud Run pipeline
- README.md - Full documentation with API details
π Troubleshooting
Backend wonβt start?
- Run:
gcloud auth application-default login - Check:
pip list | grep fastapi
Frontend shows errors?
- Make sure backend is running on port 8000
- Check browser console for details
βAgent not configuredβ?
- Verify
REASONING_ENGINE_IDin agent.envfiles - Restart backend after updating
.env
π¨ Customization
- Add more agents: Edit
web/backend/main.pyβload_agent_configs() - Change UI colors: Edit
web/frontend/src/index.css - Modify layout: Edit
web/frontend/src/App.jsx
π Next Steps
- Try asking your agents questions!
- Read the full documentation
- Customize the UI to your liking
- Deploy to Cloud Run (see README.md)
Questions? Check GETTING_STARTED.md or README.md for more details!