AgentSaaS-Pro is a modern, AI-powered SaaS website built with:
- β Next.js (Frontend)
- β FastAPI (Backend)
- β PostgreSQL (Database)
- β AI Agent (MCP-ready for dynamic logic)
- β Docker Compose (for local & production deployment)
- β Persistent storage for data and media
- β Admin panel & chatbot interface powered by the AI agent
project/
βββ frontend/ # Next.js frontend
β βββ pages/ # Homepage, contact, services
β βββ components/ # Hero, Services, Chatbot, AdminPanel
β βββ lib/ # agentClient.ts for API calls
β βββ public/assets/ # Cloned media assets
β
βββ backend/ # FastAPI backend
β βββ main.py # Application entry
β βββ agent/ # MCP/Aider integration
β βββ api/ # REST APIs for agent/content
β βββ models.py # SQLAlchemy models
β βββ database.py # DB session config
β
βββ docker/ # Dockerfiles
β βββ frontend/
β βββ backend/
β
βββ docker-compose.yml # Docker deployment
βββ .env # Environment variables
βββ volumes/ # Persistent volumes
- Generate or edit web pages dynamically
- Modify frontend layouts and backend logic
- Receive instructions via chatbot or admin UI
- Leverages Gemini Function Calling for robust command processing
- Works with Gemini or Aider-based models using MCP
| Layer | Technology |
|---|---|
| Frontend | Next.js + Tailwind CSS |
| Backend | FastAPI (Python) |
| Database | PostgreSQL |
| DevOps | Docker Compose |
| AI Agent | MCP + Aider-ready |
| Storage | Volume-mapped |
git clone https://github.com/YOUR_REPO/AgentSaaS-Pro.git cd AgentSaaS-Pro cp .env.example .env # Update secrets and DB info
docker compose up --build
| Service | URL |
|---|---|
| Website | http://localhost:3000 |
| API Server | http://localhost:8000 |
| Admin Panel | http://localhost:3000/admin |
.env example:
DATABASE_URL=postgresql://postgres:postgres@db:5432/saas GEMINI_API_KEY=... JWT_SECRET=your_jwt_secret
POST /api/agent
{
"text": "Create a new pricing page with three tiers"
}{
"response": "Page created and added to the menu"
}- Manage pages
- Send commands to the AI
- View logs
- Requires JWT authentication
PostgreSQL and uploads are stored outside Docker:
volumes: postgres_data: driver: local driver_opts: type: none device: /srv/saas-db-data o: bind
Update device: to your preferred mount point.
- Clone existing site design
- AI chat widget with FastAPI (now with Function Calling!)
- Admin panel with JWT
- Docker Compose with volume mounts
- Auto-deploy via Coolify
- Multi-language support
- WebRTC support
This project is maintained by a senior AI developer and powered by MCP-compatible agents.
For advanced integrations, contact your Alpha Agent or add more tools via the backend.