FlowMind is a comprehensive, full-stack application for building, managing, and monitoring AI-driven workflows. It features a modern, drag-and-drop workflow builder interface, real-time logging, and deep integrations with OpenAI for automated task execution.
- Visual Workflow Builder: Drag-and-drop interface to construct complex workflows visually using React Flow.
- AI Integration: Seamlessly integrated with OpenAI to process tasks, analyze data, and generate insights.
- Real-time Monitoring: View live logs and execution status via WebSockets.
- Analytics Dashboard: Track workflow performance, success rates, and execution times with interactive charts.
- Full-stack Architecture: Robust Node.js backend with an embedded SQLite database for zero-config persistence.
- Modern UI/UX: Responsive, dark-mode ready interface built with Tailwind CSS and Framer Motion for smooth animations.
- Framework: React 18 + Vite for lightning-fast development and optimized builds.
- Styling: Tailwind CSS for utility-first, rapid UI styling.
- Animations: Framer Motion for fluid page transitions and micro-interactions.
- State Management: Zustand for lightweight, fast, and scalable global state.
- Routing: React Router DOM for client-side navigation.
- Visuals & Charts:
- React Flow for the interactive node-based workflow editor.
- Recharts for beautiful, responsive analytics dashboards.
- Icons: Lucide React for consistent, customizable iconography.
- Runtime: Node.js
- API Framework: Express.js for RESTful endpoints.
- Database: better-sqlite3 for high-performance, embedded SQLite database.
- Real-time Communication: ws (WebSockets) for streaming live execution logs to the frontend.
- AI/ML: OpenAI Node SDK for interacting with GPT models.
- Utilities:
corsfor cross-origin resource sharing,dotenvfor environment variable management, anduuidfor unique identifier generation.
git clone <repository-url>
cd AI_WorkflowAutomationOpen a terminal and navigate to the backend directory:
cd backendInstall dependencies:
npm installCreate a .env file from the example:
cp .env.example .envAdd your OpenAI API key to the .env file:
PORT=10000
OPENAI_API_KEY=your_openai_api_key_hereStart the backend development server:
npm run devThe backend will run on http://localhost:10000 (and WebSockets on ws://localhost:10000).
Open a new terminal and stay in the root directory (AI_WorkflowAutomation):
Install dependencies:
npm installStart the frontend development server:
npm run devThe frontend will typically run on http://localhost:5173.
- Import the repository into Vercel.
- Set the Framework Preset to Vite.
- Add the following Environment Variables:
VITE_API_URL: URL of your deployed backend (e.g.,https://your-backend.onrender.com)VITE_WS_URL: WebSocket URL of your deployed backend (e.g.,wss://your-backend.onrender.com)
- Deploy!
Due to the embedded SQLite database (better-sqlite3) and WebSocket requirements, serverless platforms like Vercel Functions are not suitable for the backend.
Recommended: Deploy to Render (Web Service)
- Connect the repository to Render.
- Create a new Web Service.
- Set the Root Directory to
backend. - Set Build Command to
npm install. - Set Start Command to
npm start. - Add your
OPENAI_API_KEYto the Environment Variables.
This project is licensed under the MIT License.