DEV Community

Cover image for AI Study Planner — Groq AI + Notion MCP
Sarvesh
Sarvesh

Posted on

AI Study Planner — Groq AI + Notion MCP

Notion MCP Challenge Submission 🧠

This is a submission for the Notion MCP Challenge

What I Built

I built an AI Study Planner that generates personalized day-by-day study schedules using Groq AI and automatically syncs them to Notion via Notion MCP.

Students enter:

  • 📖 Exam name (e.g. JEE Mains, GATE, MBA)
  • 📅 Number of study days
  • ⏰ Hours available per day
  • 🗓 Exam date

The AI (Groq LLaMA 3.3) generates a smart topic-by-topic study plan and pushes it directly into a Notion database — creating structured entries with Task, Date, Exam Date, Hours, and Subject columns filled automatically.

Video Demo

Show us the code

GitHub: https://github.com/sarveshm555/ai-study-planner

1. User fills the form

const res = await fetch("http://localhost:5000/add-task", {
  method: "POST",
  body: JSON.stringify({ subject, days, hours, examDate })
});
Enter fullscreen mode Exit fullscreen mode

2. Groq AI generates the study plan

const aiResponse = await groq.chat.completions.create({
  model: "llama-3.3-70b-versatile",
  messages: [{
    role: "user",
    content: `Create a ${days}-day study plan for ${subject}. 
    Return ONLY a JSON array with day, topic, description.`
  }]
});
Enter fullscreen mode Exit fullscreen mode

3. Notion MCP creates pages automatically

await notion.pages.create({
  parent: { database_id: DATABASE_ID },
  properties: {
    Task: { title: [{ text: { content: `Day ${item.day}: ${item.topic}` } }] },
    Date: { date: { start: taskDate } },
    "Exam Date": { date: { start: examDate } },
    Hours: { number: parseInt(hours) },
    Subject: { rich_text: [{ text: { content: subject } }] }
  }
});
Enter fullscreen mode Exit fullscreen mode

How I Used Notion MCP

Notion MCP is the core output layer of this project:

  1. ✅ Connects to Notion workspace database
  2. ✅ Creates structured pages for each study day
  3. ✅ Fills Task, Date, Exam Date, Hours, Subject columns
  4. ✅ Adds AI-generated descriptions inside each page
  5. ✅ Everything happens automatically — zero manual work!

Tech Stack

Tool Purpose
Groq AI (LLaMA 3.3) Generate smart study topics
Notion MCP Auto-sync plans to Notion
Node.js + Express Backend server
HTML/CSS/JS Beautiful dark UI

What I Learned

  • How to integrate Notion MCP with AI workflows
  • How to structure AI prompts to return clean JSON
  • How to build a full-stack AI automation tool

👨‍💻 Team Details

Solo Submission

Built with ❤️ from India 🇮🇳

Top comments (0)