Templates / Optimize classroom schedules and resolve conflicts with GPT-4o and Google Calendar

Optimize classroom schedules and resolve conflicts with GPT-4o and Google Calendar

Ready for 3.0

by Cheng Siong Chin ✓ · 89 views · created 2026-02-12 · Project Management, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 27 nodes and runs on a schedule (every day at 06:00). Along the way it connects OpenAI Chat Model, Slack and Google Calendar.

How it runs

Trigger: On a schedule (every day at 06:00).

  1. Workflow Configuration (Edit Fields (Set)): sets 8 fields: slackChannelId, schedulingTeamEmail, maxClassroomCapacity…
  2. Prepare Scheduling Data (Edit Fields (Set)): sets 3 fields: classrooms, faculty, timetableRequests
  3. Resource Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Resource Agent; output parser: Resource Analysis Output Parser
  4. Calculate Historical Patterns (Code): runs custom JavaScript code
  5. Operations Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Operations Agent; output parser: Operations Output Parser
  6. Merge: merges the data from its input branches
  7. Route by Severity (Switch): routes items into 2 branches
  8. Master Orchestrator Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Master Orchestrator; 3 tools (Google Calendar Tool, Conflict Score Calculator Tool, Schedule Optimization Agent Tool); output parser: Master Orchestrator Output Parser
  9. Notify Critical Conflicts (Slack): uses Slack
  10. Email Scheduling Recommendations (Send Email): sends an email over SMTP

…plus 5 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelSlackGoogle Calendar

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (14)

From the author

How It Works This workflow automates competitive intelligence gathering and market analysis for businesses needing real-time insights on competitors, industry trends, and market positioning. Designed for marketing teams, strategy analysts, and business…

Excerpt from Cheng Siong Chin's description on n8n.io.

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.