Templates / Plan daily study schedules with GPT-4o-mini, Google Calendar, Sheets and Gmail

Plan daily study schedules with GPT-4o-mini, Google Calendar, Sheets and Gmail

Needs changes

by Incrementors ✓ · 175 views · created 2026-05-30 · Personal Productivity, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
2. AI Agent — Generate Study Schedule (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

AI AgentOpenAI Chat ModelGoogle CalendarGoogle SheetsGmail

What it does

Quick overview This workflow collects exam details via an n8n Form, uses OpenAI (GPT-4o-mini) to generate a day-by-day study plan, creates one Google Calendar event per study session, logs all sessions to Google Sheets, and emails the full schedule to the student via Gmail. How it works 1. Receives study details (name, exam date, subjects, available hours, start time, email) from an n8n Form submission. 2. Uses OpenAI (GPT-4o-mini) to generate a strict-JSON daily study plan with topics, session types, durations, and start/end times. 3. Parses the JSON plan, flattens it into individual study sessions, and iterates through them one-by-one. 4. Creates a Google Calendar event for each session, using the session’s date/time and adding session metadata in the description. 5. After all events are created, compiles rows for Google Sheets and generates a formatted HTML email containing the full schedule and study tips. 6. Appends one row per session to a Google Sheets tab and sends the confirmation email to the student via Gmail. Setup 1. Open the OpenAI — GPT-4o-mini Model step and connect your OpenAI API credential. 2. Open node 5. Google Calendar — Create Study Event, connect your Google Calendar OAuth2 credential, and replace YOURCALENDARID with your actual calendar ID. To find it: open Google Calendar → Settings → click your calendar name → scroll to Calendar ID. For most users it is your Google account email address. 3. Create a Google Sheet tab named exactly Study Planner with these 12 column headers: Student Name, Exam Date, Subject, Topic, Date, Day, Start Time, End Time, Duration (hrs), Session Type, Priority, Status. 4. Open node 7. Google Sheets — Log Study Plan, connect your Google Sheets OAuth2 credential, and replace YOURGOOGLESHEETID. Find the Sheet ID by opening your spreadsheet in a browser and copying the string between /d/ and /edit in the URL. 5. Open node 8. Gmail — Send Confirmation Email and connect your Gmail OAuth2 credential. The email is sent automatically to whatever address the student submits in the form. 6. Activate the workflow and copy the form URL from node 1. Form — Study Planner Input to share with students. Requirements - Active n8n instance (self-hosted or cloud) - OpenAI account with GPT-4o-mini API access - Google Calendar connected via OAuth2 - Google Sheets with a tab named Study Planner - Gmail account connected via OAuth2 for sending confirmation emails Customization - Change the session duration range — in the system prompt of node 2. AI Agent — Generate Study Schedule, change "between 1.5 and 3 hours" to a different range to generate shorter or longer study blocks depending on your preference - Change the new learning vs revision split — in the same system prompt, change "First 60% of days: New Learning" to a different percentage — for example 50/50 for a more balanced plan or 70/30 for exams that are further away - Add a Slack notification when the schedule is ready — after node 8. Gmail — Send Confirmation Email, add a Slack step that posts the student name, exam date, total sessions, and a confirmation message to a study group channel - Change the calendar event color per session type — in node 5. Google Calendar — Create Study Event, expand the additional fields and add a colorId value — Google Calendar supports color IDs 1 through 11, which you can map to each session type using an IF check before the calendar step - Add reminder alerts to calendar events — in node 5. Google Calendar — Create Study Event, add a reminders field in the additional fields section to set a popup reminder 30 or 60 minutes before each study session Additional info The calendar event loop in this workflow uses SplitInBatches to process one study session at a time. Output 0 creates the next calendar event. Output 1 fires only when all sessions have been processed — this is what triggers the Sheets logging and email. Do not modify the SplitInBatches connections or the loop will break. GPT-4o-mini generates the

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.