Inspiration
Freelance software development is plagued by operational friction. Projects often stall not because of a lack of technical skill, but due to a breakdown in trust. Static schedules shatter on contact with reality, milestone verifications turn into subjective debates, and payments are frequently delayed.
ConsultAI was born from a desire to build a "trustless" operational workflow. We wanted to replace subjective arguments with data-driven workflows: let an AI handle dynamic scheduling, let GitHub webhooks provide empirical proof of delivery, and let mathematical trust scores gate financial escrow.
What it does
ConsultAI is an enterprise AI-powered project management and Pay on Delivery platform. It takes freelance work from brief to verified payout:
- AI plans the work: A Planning Copilot generates Work Breakdown Structures (WBS) and timelines.
- AI vets the talent: A Talent Agent evaluates consultants using real GitHub signals to generate objective Trust Scores.
- Data verifies the delivery: GitHub Pull Requests are deterministically evaluated against milestone acceptance criteria.
- PayPal handles the escrow: Escrow funds are captured and automatically released only after the AI verifies the delivery and a human approves the transaction.
Everything is orchestrated by a Central Supervisor Agent that delegates tasks and enforces strict human-in-the-loop approval gates for sensitive scheduling and financial actions.
How we built it
ConsultAI is an end-to-end full-stack application leveraging a robust, modern enterprise stack:
- Infrastructure (Render): We deployed our Python FastAPI multi-agent backend as a web service on Render. Render provides the enterprise-grade PaaS stability required to securely manage API secrets, ingest GitHub/PayPal webhooks, and orchestrate real-time AI workflows around the clock.
- Frontend Architecture: Built on Next.js 16 (App Router) with React 19 and TypeScript. We dynamically imported our heavy enterprise UI components to run purely client-side while keeping data fetching secure on the server.
- Enterprise UI Engines:
- Bryntum Gantt powers our interactive scheduling engine, visualizing WBS, dependencies, and critical paths.
- AG Grid acts as our Operational Command Center, empowering managers to sort, filter, and edit massive datasets (consultant pipelines, escrow ledgers, and agent execution logs) with zero latency.
- AI Architecture: We used Groq LLMs via the Vercel AI SDK, structured around a multi-agent topology (Supervisor, Planning, Vetting, Delivery, and Reschedule agents).
- Payments & Escrow: We integrated the PayPal Sandbox (Orders and Payouts APIs). Escrow is captured upfront, and payouts are triggered automatically by server-side webhook policies once the GitHub PR passes the AI Trust Score threshold.
- Database: Neon Postgres via Drizzle ORM ensures robust, serverless relational state management. ## Challenges we ran into
- The SSR vs. CSR Boundary: Integrating heavy, DOM-manipulating enterprise libraries like Bryntum Gantt and AG Grid into Next.js required strict architectural discipline to prevent hydration mismatches and ensure peak performance.
- Taming Non-Deterministic AI: Large Language Models are inherently unpredictable, but financial ledgers and schedules require absolute precision. We solved this by forcing the AI to output strict JSON tool calls and implementing deterministic server-side policies. The AI only proposes changes; the system halts at a strict Human Approval Gate before mutating the database or moving money.
- Orchestrating Asynchronous State: Keeping the Bryntum Gantt chart, the AG Grid command center, and the Neon PostgreSQL database perfectly synced in real-time while processing asynchronous GitHub and PayPal webhooks required rigorous cache invalidation and idempotent state-machine design. ## Accomplishments that we're proud of
- The Trust Score Algorithm: We successfully engineered a system that shifts freelance vetting and milestone approval from subjective arguments to objective, data-driven math based on empirical GitHub signals.
- Flawless Enterprise UI: Combining Bryntum Gantt for visual scheduling and AG Grid for high-speed data operations resulted in a dashboard that feels like a native desktop application.
- Secure Pay-on-Delivery Escrow: We built a highly secure, six-stage financial policy pipeline utilizing PayPal Sandbox that protects both the company's funds and the freelancer's payout.
- Multi-Agent Orchestration: Building a true Central Supervisor Agent that autonomously delegates intents to specialist agents (Planning, Talent, Reschedule, Finance) while securely logging token telemetry and execution times. ## What we learned
- AI Guardrails are Everything: We discovered that in a B2B financial context, AI autonomy is a liability. True value comes from structured outputs, deterministic tool-calling, and mandatory human-in-the-loop (HITL) authorization.
- Trust is a Data Problem: Friction in freelance management isn't caused by a lack of communication tools, but a lack of verifiable proof. Tying schedule updates and financial escrow to cryptographic evidence (GitHub PRs) solves the trust gap.
- Cloud Stability Matters: Relying on Render to host our AI orchestrator and webhook listeners taught us the importance of having a robust, scalable PaaS when dealing with external financial and developer APIs. ## What's next for ConsultAI: AI-Powered Project Management
- Native CI/CD Integration: Upgrading our GitHub webhook integration into a full-fledged GitHub App to analyze CI/CD pipeline telemetry, test coverage, and automated security scans for deeper Trust Scores.
- Expanded Payout Rails: Moving beyond the PayPal Sandbox to live production environments, and exploring smart-contract-based stablecoin wallets for instant, low-fee global payouts.
- Predictive Risk Modeling: Training a specialized, lightweight machine learning model deployed on Render that analyzes historical AG Grid project data to predict budget overruns and timeline delays before they happen.
Built With
- bryntum
- groq
- neon
- next.js
- render
- typescript