LeadFlow AI is a full-stack business automation platform that processes customer inquiries, qualifies leads using artificial intelligence, manages PostgreSQL records, sends Gmail notifications, and provides operational monitoring through a React dashboard.
- n8n — Workflow orchestration
- Google Gemini — AI lead qualification
- PostgreSQL 17 — Data storage
- Node.js and Express — Backend API
- React and Vite — Management dashboard
- Gmail — Sales notifications
- Docker Compose — Container management
- Nginx — Reverse proxy and local authentication
- Customer form intake
- Data normalization and validation
- AI-generated priorities and summaries
- PostgreSQL lead storage
- Gmail notifications
- Duplicate-notification reservation protection
- Delivery result tracking
- Historical investigation records
- Customer search and filtering
- Lead priority indicators
- Notification monitoring
- n8n execution monitoring
- API, database, and n8n health indicators
- Automatic 30-second refresh
- Functional sidebar navigation
See Architecture Diagram.
backend/— Express API and PostgreSQL integrationfrontend/— React dashboard and Nginx configurationdocs/— Architecture diagrams and screenshotscompose.yml— Docker Compose configuration.env.example— Environment variable template
This application uses an existing Docker network named
lead-crm-network and an existing PostgreSQL/n8n environment.
-
Configure PostgreSQL and n8n.
-
Create a read-only PostgreSQL dashboard account.
-
Copy
.env.exampleto.envand supply private values. -
Create an Nginx Basic Authentication password file.
-
Review
compose.ymland network settings. -
Build the dashboard:
docker compose up -d --build -
Open
http://localhost:3000.
This repository is not a standalone one-command deployment: the n8n workflow, PostgreSQL schema, and required credentials must be provisioned separately.
- Backend credentials stay in server-side environment variables.
- The dashboard uses a read-only PostgreSQL account.
- Nginx provides HTTP Basic Authentication.
- Dashboard ports are bound to localhost.
- Passwords, private keys, database dumps, and real customer records must not be committed.
- Public deployment requires HTTPS and additional security review.
The system has been tested locally for:
- AI qualification and lead persistence
- Successful Gmail notification delivery
- Notification reservation and duplicate-prevention scenarios
- Dashboard authentication
- Notification investigation monitoring
- n8n execution history
- API and service health checks
- Gmail delivery and database updates are not an atomic operation. Some uncertain outcomes require manual reconciliation.
- Monitoring counts are limited to recently retrieved records.
- The local deployment is intended for development and demonstration.
- API/database health checks share a combined connectivity result.
Portfolio Version 1.0 — Locally developed and tested.
Watch my complete LeadFlow AI project walkthrough:
Watch LeadFlow AI Video Demonstration on YouTube
The demonstration covers:
- n8n workflow automation and Google Gemini AI lead qualification
- PostgreSQL database and Gmail notification integration
- React and Node.js CRM dashboard
- Notification and execution monitoring
- System health checks and Docker-based deployment
Viewing tip: Select 1080p (HD) in YouTube's quality settings for clearer dashboard and workflow text.
Note: This project runs in a local Docker environment. The video demonstrates the working application.
Joseph M. Nicolas
Portfolio: https://itguy2024.github.io/portfolio/




