A platform to build custom AI agents with visual frontend builders and powerful backend integration. Generate both frontend interfaces and AI agent backends from simple text descriptions.
🎨 Dynamic Frontend Generation - Automatically generate beautiful agent interfaces
🤖 AI Agent Generation - Automatically generate backend code using Vercel AI SDK
🛠️ Tool Integration - Built-in Composio integration for agent capabilities
⚡ Live Preview - Test your agents in real-time
📱 Responsive Design - Mobile and desktop optimized interfaces
💻 Code Export - Download generated frontend and backend code
-
Clone and Install
git clone ComposioHQ/lovable-for-ai-agents cd lovable-for-ai-agents npm install -
Environment Setup
# Copy environment template cp .env.example .env # Add your API keys (server-side only; do not expose secrets to the browser) OPENAI_API_KEY=your_openai_key_here COMPOSIO_API_KEY=your_composio_key_here
-
Run Development Server
npm run dev
-
Open Browser Navigate to
http://localhost:3000
Write a description of the AI agent you want to build:
- "Create a customer support agent that handles refunds and tracks orders"
- "Build a data analysis agent that processes CSV files and generates reports"
- "Make a social media agent that schedules posts and analyzes engagement"
The platform uses AI to generate:
- Frontend: Complete HTML interface with required input fields
- Backend: Next.js API route with Vercel AI SDK and Composio integration
The system automatically generates:
- Modify the generated frontend
- Add custom styling and components
- Adjust layout and responsiveness
- Enter your API keys (LLM + Composio)
- Input prompts to test agent functionality
- View real-time responses
┌─ Frontend (Next.js + React + TailwindCSS)
│ ├─ Dynamic Frontend Generation
│ ├─ Code Preview (Monaco Editor)
│ └─ Agent Testing Interface
│
├─ Backend (Next.js API Routes)
│ ├─ /api/generate-agent (AI Code Generation)
│ ├─ /api/run-agent (Agent Execution)
│ └─ /api/route (Base Agent Endpoint)
│
└─ Integrations
├─ Vercel AI SDK (LLM Integration)
├─ Composio (Tool Integration)
└─ OpenAI (Code Generation)
Generates frontend and backend code for AI agents.
{
"agentIdea": "Your agent description"
}Executes a generated AI agent with streaming response.
{
"prompt": "User prompt",
"agentCode": "Generated backend code"
}Each generated agent includes:
Frontend Features:
- No API key fields in the browser
- Prompt textarea
- Run Agent button
- Response display area
- Modern, responsive design
Backend Features:
- Vercel AI SDK integration
- Composio tool access
- Streaming responses
- Error handling
- TypeScript support
Modify the tools array in /api/run-agent/route.ts:
const tools = await composio.tools.get('default', {
tools: [
'mcp-shell',
'web_search',
'your_custom_tool'
]
});The visual builder supports:
- Custom CSS classes
- Responsive breakpoints
- Component libraries
- Theme customization
npm run build
vercel --prodOPENAI_API_KEY=your_production_openai_key
COMPOSIO_API_KEY=your_production_composio_key
APP_URL=https://your-domain.com
Create a customer support agent that can:
- Handle refund requests using Stripe API
- Track order status via Shopify
- Answer FAQ questions from knowledge base
- Escalate complex issues to human agents
Build a data analyst agent that:
- Processes CSV and Excel files
- Generates charts and visualizations
- Performs statistical analysis
- Creates summary reports
Make a content creator agent that:
- Generates blog posts and articles
- Creates social media content
- Optimizes for SEO
- Schedules posts across platforms
- Frontend: Next.js 15, React 19, TailwindCSS
- Backend: Next.js API Routes, TypeScript
- AI: Vercel AI SDK, OpenAI GPT-4
- Tools: Composio Integration Platform
- Editor: Dynamic Frontend Generation
- Icons: Lucide React
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
MIT License - see LICENSE file for details
Built with ❤️ for the AI Agent ecosystem