A modern React + TypeScript frontend for the Agentic Sales System, built with Vite, Tailwind CSS, and shadcn/ui components.
- Dashboard - Monitor agent status and system health
- Lead Search - Search for business leads by location and type
- SDR Workflow - Execute complete sales development workflows
- Email Management - Send professional outreach emails
- Agent Status - View real-time status of all AI agents
- React 18 with TypeScript
- Vite for fast development and building
- Tailwind CSS for styling
- shadcn/ui components
- React Router for navigation
- Axios for API calls
- Lucide React for icons
- Node.js 20.19.0+ or 22.12.0+
- npm or yarn
- Backend API running on
http://localhost:8000
- Install dependencies:
npm install- Create
.envfile from example:
cp .env.example .env- Update
.envwith your backend API URL (default:http://localhost:8000)
npm run devThe app will be available at http://localhost:5173
npm run buildnpm run previewsrc/
βββ components/ # React components
β βββ ui/ # Reusable UI components (Button, Card, etc.)
β βββ layout/ # Layout components (Navbar, Layout)
β βββ features/ # Feature-specific components
βββ pages/ # Page components
β βββ Dashboard.tsx
β βββ LeadSearch.tsx
β βββ SDRWorkflow.tsx
β βββ EmailManagement.tsx
β βββ AgentStatus.tsx
βββ services/ # API service layer
β βββ api.ts
βββ types/ # TypeScript type definitions
β βββ index.ts
βββ hooks/ # Custom React hooks
βββ utils/ # Utility functions
βββ lib/ # Library configurations
β βββ utils.ts
βββ App.tsx # Main app component with routing
βββ main.tsx # App entry point
- Overview of all agents and their status
- System configuration status
- Quick action links
- Search for business leads by location
- Filter by business type, radius, and limit
- View detailed lead information with contact details
- Execute complete sales workflow
- Steps: Research β Proposal β Call β Email
- View results for each workflow stage
- Send emails to leads
- Email templates for quick start
- Support for HTML emails
- Monitor all AI agents
- View environment configuration
- System information and health checks
The frontend connects to the backend API through the apiService in src/services/api.ts.
Available endpoints:
GET /health- Health checkPOST /api/v1/leads/search- Search leadsPOST /api/v1/email/send- Send emailPOST /api/v1/workflow/execute- Execute SDR workflowGET /api/v1/agents/status- Get agent status
Customize colors, spacing, and other design tokens in tailwind.config.js.
Set your backend API URL in .env:
VITE_API_URL=http://localhost:8000The project uses custom UI components inspired by shadcn/ui:
Button- Various button styles and sizesCard- Card container with header, content, footerInput- Form input fieldsBadge- Status badgesLayout- Main layout wrapperNavbar- Navigation bar
VITE_API_URL- Backend API base URL (default:http://localhost:8000)
- Create page component in
src/pages/YourPage.tsx - Add route in
src/App.tsx - Add navigation link in
src/components/layout/Navbar.tsx
- Add types in
src/types/index.ts - Add service method in
src/services/api.ts - Use in your page component
- Ensure backend server is running on
http://localhost:8000 - Check CORS settings in backend
- Verify
.envfile has correctVITE_API_URL
- Clear
node_modulesand reinstall:rm -rf node_modules && npm install - Update Node.js to version 20.19.0 or higher
MIT License
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request