rexlead is a lead intake and qualification system built around a real client acquisition workflow.
It started as a practical way to improve my own inbound process for AI systems, workflow automation, and software engineering work. The project grew into a full stack exercise in CRM integration, workflow orchestration, structured LLM output, and production deployment.
rexlead captures project briefs from a public site, enriches and scores them, routes them through an orchestration layer, syncs the result into HubSpot, and sends a branded first reply for qualified leads.
The system is split across five layers.
- A Next.js application serves the public site, protected admin views, and internal workflow endpoints.
- Supabase handles authentication, persistence, audit records, and workflow state.
- Ollama Cloud provides structured lead analysis with a bounded tool calling loop.
- n8n coordinates intake, analysis, routing, replay, and scheduled digest execution.
- HubSpot acts as the CRM layer for contacts, companies, deals, tasks, and notes.
- Next.js 16
- TypeScript
- Supabase
- Ollama Cloud
- n8n
- HubSpot
- Nodemailer and Resend
- Vercel
- A visitor submits a project brief.
- The application validates and stores the lead.
- n8n dispatches analysis and routing.
- The analysis layer produces structured signals and a reply draft.
- The routing layer updates HubSpot and logs delivery state.
- The admin surface remains available for monitoring, resend actions, and visibility into workflow traces.
npm install
npm run devOpen http://localhost:3000.
npm run preflight:ollama
npm run lint
npm run typecheck
npm test
npx next build --webpack