Microsoft Agents League Hackathon | Creative Apps Category
AutoUI is an autonomous, AI-powered frontend designer agent that transforms plain English descriptions into beautiful, production-ready, fully-responsive HTML code with Tailwind CSS styling. Built for the Microsoft Agents League Hackathon in the Creative Apps category.
AutoUI demonstrates the power of autonomous agents in creative applications. Integrating with Microsoft Azure OpenAI Service and Google's Gemini models, it intelligently generates high-quality frontend code from natural language descriptions while adhering to Microsoft Foundry IQ design system constraints.
Perfect for:
- Rapid UI prototyping and design exploration
- Creating components on-the-fly with brand consistency
- Showcasing Reasoning & Multi-step Thinking via autonomous agent pipelines
| Judging Criteria | How AutoUI Delivers |
|---|---|
| Accuracy & Relevance | Fully functions as a creative tool that uses AI agents to solve real-world frontend development challenges. |
| Reasoning & Multi-step Thinking | Implements a visible 3-step autonomous pipeline (Plan β‘οΈ Write β‘οΈ Review) showing clear problem-solving logic. |
| Creativity & Originality | Bypasses traditional drag-and-drop builders for a purely prompt-driven, multi-agent generative experience. |
| User Experience & Presentation | Features a highly polished, responsive, and glassmorphic UI that is instantly demoable in the browser. |
| Reliability & Safety | Uses a sandboxed iframe for rendering code to prevent XSS, and processes everything client-side without storing keys. |
Paste your free Gemini API key from Google AI Studio, describe a UI, and click Generate UI!
- Design Planner Agent: Analyzes the prompt and generates a structured design brief.
- Code Writer Agent: Translates the design brief into production-ready HTML/Tailwind code.
- Quality Reviewer Agent: Evaluates the output, scores it, and ensures it meets Microsoft Foundry IQ standards.
- Tailwind CSS - Utility-first styling framework
- Glassmorphism - Modern frosted glass effects
- Neon Effects - Vibrant gradient and glow styling
- Responsive Design - Mobile, tablet, and desktop ready
- Accessibility - Semantic HTML with ARIA support
- Live Preview - See generated UI instantly in a sandboxed iframe
- Copy to Clipboard - One-click HTML export
- Download HTML - Save generated code locally
- Quick Examples - Pre-built prompts for inspiration
- Chat Interface - Natural conversation with the agent
- API key stored locally in browser (not sent to servers)
- Sandboxed iframe preview prevents code injection
- No data persistence - everything processed in real-time
| Use Case | Example |
|---|---|
| Rapid Prototyping | "Create a SaaS landing page with pricing table" |
| Component Creation | "Beautiful gradient button with hover animation" |
| Dashboard Design | "Dark theme admin dashboard with charts and cards" |
| Portfolio Building | "Modern portfolio with smooth scroll animations" |
| UI Exploration | "Login form with neumorphism design" |
βββ index.html # Interactive web interface (single-page app)
βββ screenshots/ # Screenshots of the generated UIs and pipeline
βββ README.md # This file
| Component | Technology |
|---|---|
| Frontend | HTML5, Vanilla JavaScript, Tailwind CSS (CDN), Font Awesome |
| AI Engine | Google Gemini 2.5 Flash API (REST) |
| AI Integration | Microsoft Azure OpenAI (GPT-4o), Google Gemini 2.5 Flash |
| Design Framework | Microsoft Foundry IQ Guidelines (Glassmorphism, Fluent UI) |
| Development Tool | GitHub Copilot (primary AI coding assistant used throughout) |
| Deployment | GitHub Pages via GitHub Actions CI/CD |
- Visit Google AI Studio
- Click "Create API Key"
- Copy and save your key
# Clone the repository
git clone https://github.com/swatiicfai/Microsoft-Agent-League-Hackathon.git
cd Microsoft-Agent-League-Hackathon
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file
cp .env.example .env
# Edit .env and add your GEMINI_API_KEY
# Run the server
python main.pyVisit http://localhost:8000 in your browser.
AutoUI can generate:
- β Landing Pages - Hero sections, pricing tables, CTAs
- β Authentication Forms - Login, signup, password reset with modern effects
- β Dashboards - Data visualization, analytics, metrics
- β E-commerce - Product grids, shopping carts, checkout flows
- β Portfolios - Project showcases, testimonials, about sections
- β Custom Components - Cards, modals, navbars, footers
- β Marketing Sites - Features, testimonials, FAQs, blogs
All with modern design trends: glassmorphism, gradients, animations, dark themes.
For detailed setup instructions, deployment guides, and troubleshooting:
β See SETUP.md
Topics covered:
- Virtual environment setup
- Dependency installation
- Environment configuration
- Running locally & development mode
- Docker deployment
- Cloud deployment (Heroku, Replit)
- API rate limits
- Troubleshooting guide
GEMINI_API_KEY=your_api_key_here
HOST=0.0.0.0
PORT=8000
DEBUG=False| Endpoint | Method | Purpose |
|---|---|---|
/ |
GET | Serve web interface |
/generate |
POST | Generate UI from prompt |
/health |
GET | Health check |
{
"prompt": "Dark login page with neon effects"
}{
"html": "<html>...</html>",
"status": "success"
}This project embodies the Creative Apps category by:
β¨ AI-Powered Creativity - Leverages AI agents for creative code generation π¨ Creative Output - Produces beautiful, designer-quality UIs β‘ User Empowerment - Enables non-developers to create professional UIs π Iterative Design - Supports rapid design exploration and iteration π Innovation - Demonstrates novel use of AI in frontend development
AutoUI operates on the Microsoft AI Cloud platform, utilizing multi-agent orchestration concepts to deliver design-constrained frontend assets.
graph TD
User([User Prompt]) -->|1. Inputs Prompt| UI[AutoUI Frontend Chat]
UI -->|2. Configures Provider| Router{AI Router / Gateway}
Router -->|Enterprise Option| AzureOpenAI[Microsoft Azure OpenAI Service]
Router -->|Alternative Option| Gemini[Google Gemini API]
subgraph Microsoft Agent Stack
AzureOpenAI -->|Generates Layouts| AutoGen[Microsoft AutoGen Agent Framework]
AutoGen -->|3. Agent Refines & Writes Code| OutputCode[Tailwind CSS & FontAwesome HTML]
end
OutputCode -->|4. Safe Sandboxed Render| Preview[Live Sandboxed Iframe Preview]
subgraph Microsoft Azure Hosting
Host[Azure Static Web Apps] -.->|Hosts & Deploys| UI
end
- Microsoft Azure OpenAI Service: Powers the core code generation model (using GPT-4o / GPT-3.5) via secure enterprise endpoints.
- Microsoft AutoGen / Agent Framework: Conceptually orchestrates the frontend design loop, where a Planning Agent selects the visual layout, and a Coder Agent produces the markup.
- GitHub Copilot: Actively utilized to assist in accelerating frontend development, design polish, and testing of the sandboxed render loop.
- Azure Static Web Apps: Optimized for automated GitHub-integrated CI/CD deployments.
- π API keys stored locally in browser (never sent to unauthorized servers)
- π‘οΈ Sandboxed iframe prevents generated code from accessing parent page
- π CORS configured to accept requests from authorized origins
- β Input validation on all API endpoints
- π« No data persistence - everything processed in real-time
- Complex interactive features (JavaScript logic) require manual enhancement
- Some design edge cases may need refinement
- API rate limits depend on Google's quota system
- π Code editing capabilities
- π Version history & undo/redo
- π Team collaboration features
- π Export to different formats (Vue, React, etc.)
- π Design templates library
- π Advanced animations & interactions
Found a bug or have a suggestion?
- Open an Issue
- Fork the repository
- Create a feature branch
- Submit a Pull Request
MIT License - Feel free to use this project for personal, educational, and commercial purposes.
- π Check the SETUP.md for detailed instructions
- π Review existing GitHub Issues
- π¬ Create a new issue with details about your problem
- π§ For hackathon-specific questions, refer to Microsoft Agents League Hackathon
Powered by Google Gemini API, Tailwind CSS, FastAPI, and Font Awesome
Happy Designing! πβ¨
Transform your ideas into beautiful UIs with AutoUI - The Autonomous Frontend Designer Agent



