🚀 About the Project

What Inspired MarketSonar

As someone who closely follows financial markets, I found it increasingly difficult to cut through the noise. Every day brings a flood of headlines, analysis, and opinions, but little clarity. I wanted something smarter and more efficient: a tool that would deliver only the market insights I care about, with the context I need, when I need it. That’s what led to the creation of MarketSonar - a personalized, AI-driven market assistant that simplifies the daily information overload.

What I Learned

Prompt engineering is key when working with advanced AI APIs like Perplexity's Sonar - small changes in instruction structure can significantly impact the quality of results.

Building an intuitive multi-step onboarding flow is crucial to making the product feel personal from day one.

Email automation with scheduled delivery required careful timing and error handling to ensure reliability.

How I Built It

Frontend: Built using Next.js and Tailwind for a fast, responsive user experience.

Backend: Convex for database, API calls, and scheduling newsletters. Clerk for user management.

AI Integration: Used Perplexity’s Sonar API to generate daily market overviews based on user-selected sectors and custom prompts.

Email Delivery: Integrated scheduled email automation via Resend to send personalized reports.

User Flow: A 3-step onboarding process collects: Market sectors of interest Custom user instructions for the AI Preferred delivery time for the newsletter

Challenges Faced

Context-aware AI results: It was challenging to ensure the AI generated accurate, personalized content that was still readable and concise.

Trust & Transparency: Users need to trust the insights. Implementing source citations and making them accessible in the UI was critical.

Newsletter timing: Building a reliable system to trigger content generation and email delivery exactly at user-specified times took extra effort and testing.

Balancing customization vs simplicity: Designing an interface that was powerful but not overwhelming required thoughtful UX decisions.

MarketSonar was built to make staying informed easy, efficient, and trustworthy.

Built With

  • clerk
  • convex
  • nextjs
  • perplexity
  • tailwind
Share this project:

Updates