FlowMind AI is an AI-first automation builder. Users describe an automation in plain English, Gemini turns it into structured workflow nodes, React Flow renders the workflow, and the backend can save, run, export, or create the workflow in a self-hosted n8n instance.
- Gemini workflow generation with
GEMINI_MODEL=gemini-3.1-pro - React Flow visual workflow canvas
- Conversational editing for generated workflows
- Dashboard metrics, workflow history, and execution logs
- Express API with JWT demo auth
- MongoDB-ready data models
- Local JSON storage fallback for quick portfolio demos
- n8n workflow JSON export and optional n8n API creation
npm install
cp .env.example .env
npm run devOpen http://localhost:5173.
The app runs without MongoDB or n8n. If GEMINI_API_KEY is missing, it uses a deterministic local generator so the product still works during development.
PORT=4000
CLIENT_ORIGIN=http://localhost:5173
JWT_SECRET=change-this-secret
GEMINI_API_KEY=your-gemini-api-key
GEMINI_MODEL=gemini-3.1-pro
MONGODB_URI=mongodb://localhost:27017/flowmind-ai
N8N_BASE_URL=http://localhost:5678
N8N_API_KEY=your-n8n-api-keydocker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8nCreate an API key in n8n, add it to .env, then use the n8n button in FlowMind.
POST /api/auth/democreates a demo sessionPOST /api/ai/workflows/generategenerates a workflow from a promptPOST /api/ai/workflows/editedits an existing workflow conversationallyPOST /api/workflowssaves a workflowPOST /api/workflows/:id/runsimulates an executionPOST /api/workflows/:id/n8ncreates or previews an n8n workflowGET /api/workflows/:id/exportexports n8n-compatible JSON
For a production deployment, add real Google/GitHub OAuth handlers, encrypt third-party credentials, replace simulated execution with n8n webhook execution tracking, and configure a managed MongoDB database.