Optimize classroom schedules and resolve conflicts with GPT-4o and Google Calendar
Ready for 3.0What 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).
- Workflow Configuration (Edit Fields (Set)): sets 8 fields: slackChannelId, schedulingTeamEmail, maxClassroomCapacity…
- Prepare Scheduling Data (Edit Fields (Set)): sets 3 fields: classrooms, faculty, timetableRequests
- Resource Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Resource Agent; output parser: Resource Analysis Output Parser
- Calculate Historical Patterns (Code): runs custom JavaScript code
- Operations Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Operations Agent; output parser: Operations Output Parser
- Merge: merges the data from its input branches
- Route by Severity (Switch): routes items into 2 branches
- 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
- Notify Critical Conflicts (Slack): uses Slack
- Email Scheduling Recommendations (Send Email): sends an email over SMTP
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other Google Calendar + OpenAI templates (184) · Other Google Calendar + Slack templates (98)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (14)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Code
n8n-nodes-base.code - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if
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…