Inspiration

Freelancing platforms often suffer from a massive communication gap. Clients know what they want to achieve, but they struggle to write detailed, structured project briefs. This leads to scope creep, misaligned expectations, and unpaid work for freelancers. I wanted to build a platform where AI acts as a project manager, extracting the client's vision and turning it into a structured, fundable project plan secured by PayPal.

What it does

TrustTask is an AI-powered freelancer marketplace.

AI Briefing: Clients chat with an AI assistant (powered by Groq) that asks targeted questions to understand the project scope.

Milestone Generation: The AI automatically generates a structured project brief, including deliverables and milestone pricing in USD.

Secure Payments: Clients can fund the project using the PayPal Sandbox API. The backend securely creates the PayPal order and verifies the capture before marking the project as paid.

How I built it Frontend: React, Vite, React Router, and custom CSS. Hosted on Vercel.

Backend: Node.js, Express.js. Hosted on Render.

Database: MongoDB Atlas with Mongoose.

AI Integration: Groq API (using the openai/gpt-oss-120b model) via the OpenAI SDK to generate JSON project briefs.

Payments: PayPal REST API (v2/checkout/orders). The backend computes the amount, creates the order, and verifies the capture with PayPal before updating the database.

Challenges I ran into

Deploying a full-stack application with multiple third-party APIs is always a challenge. I ran into complex CORS issues connecting the Vercel frontend to the Render backend, and I had to carefully manage environment variables across both platforms. I also had to ensure the AI consistently returned valid JSON by using response_format: { type: "json_object" } and implementing a fallback generator in case the AI service was down.

Accomplishments that I'm proud of

I am incredibly proud of the end-to-end flow. Taking a user from a blank chat window, generating a fully structured project brief with milestones, and successfully capturing a real payment through the PayPal Sandbox is a massive achievement. The seamless integration between the React frontend, the Express backend, MongoDB, Groq, and PayPal works beautifully.

What I learned

I learned a tremendous amount about serverless deployment, CORS management, and securing third-party API keys. I also learned how to prompt-engineer LLMs to return strict JSON formats for database insertion.

What's next for TrustTask

Next, I plan to implement full escrow functionality where funds are held until milestones are approved, add a real-time chat feature between clients and freelancers, and integrate PayPal Webhooks to automatically update project statuses when payments are captured in the background.

Built With

Share this project:

Updates

Submission history