Automate University Term Dates with n8n, AI & ICS Export

Tired of manually entering university term dates? This n8n workflow automates fetching term dates Excel, uses AI to extract key events, and creates an ICS calendar. Save hours by automating event extraction and calendar sharing.
manualTrigger
httpRequest
set
+6
Workflow Identifier: 2110
NODES in Use: Manual Trigger, HTTP Request, Set, Information Extractor, Langchain Chat Model Chromium, Code, Sort, Convert To File, Gmail
Automate term dates with n8n and AI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This n8n workflow gets an Excel file of university term dates, turns it into a calendar file, and sends it by email automatically.
It solves the problem of manually entering many dates from Excel into a calendar and missing important events.
The result is a ready-to-use ICS calendar file sent by email, which users can import easily into Google Calendar, Outlook, or iCal.

The input is an official university Excel sheet from a URL.
The process converts the sheet into markdown, uses AI to read key dates, fixes dates, and makes an ICS file.
Finally, it sends the ICS file as an email attachment.


Tools and services used

  • n8n nodes: HTTP Request, Code, Gmail, Set, SplitOut.
  • Cloudflare Markdown Conversion Service: Converts Excel sheets to markdown format.
  • Google Gemini AI: Extracts structured events from markdown tables.
  • Gmail OAuth2: Sends email with calendar attachment.

Beginner step-by-step: How to use this workflow in n8n production

Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and choose “Import from File”.
  3. Select the downloaded workflow file to import.

Configure credentials and inputs

  1. Add your Cloudflare API Key and Account ID to the HTTP Request node calling the Markdown Conversion Service. Update the URL:
    https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/tomarkdown
    
  2. Set Google Gemini API credentials in the “Extract Key Events and Dates” node.
  3. Update the Gmail OAuth2 credentials in the Gmail node.
  4. Check recipient email address (e.g., [email protected]) in the Gmail node.
  5. Confirm the Excel URL in the HTTP Request “Get Term Dates Excel” node is correct.

Test the workflow

  1. In n8n editor, trigger the workflow manually using the “Test workflow” button.
  2. Review the nodes’ output to ensure the Excel file downloads, markdown conversion succeeds, AI extraction returns JSON events, and email sends.

Activate for production

  1. After confirming all steps succeed, enable the workflow to run on demand or schedule.
  2. Optionally, for privacy or control, deploy the workflow on a server with self-host n8n.

Inputs, processing steps, and outputs

Inputs

  • Official university term dates Excel file from a fixed URL.
  • Cloudflare API credentials for markdown conversion.
  • Google Gemini API credentials for AI data extraction.
  • Gmail OAuth2 credentials for sending email.

Processing steps

  • Download Excel using the HTTP Request node.
  • Convert Excel to markdown format using the Cloudflare Markdown Conversion Service.
  • Extract the target sheet markdown using a Set node.
  • Run the markdown through the Google Gemini AI model to get structured JSON of week numbers, dates (as Excel serial numbers), and event titles.
  • Split extracted events into separate items with SplitOut node.
  • Fix Excel serial dates to ISO date strings in a Set node.
  • Sort all events by date for order.
  • Convert structured events into ICS calendar format using a Python Code node.
  • Encode ICS text and convert it to a binary file.
  • Send the ICS file as an attachment in an email via the Gmail node.

Outputs

  • ICS file with term dates and events.
  • Email sent to configured address containing ICS attachment.

Customizations

  • Change the Excel file URL in the HTTP Request node to another source.
  • Add fields (like description or location) by updating the Google Gemini node’s extraction schema.
  • Send the ICS calendar file to Google Drive or other storage services instead of email.
  • Replace Google Gemini AI with other supported language models if desired.
  • Improve the “Fix Dates” node to handle different date formats or timezones.

Troubleshooting common issues

  • HTTP Request node download failure: Check URL correctness and network.
  • Cloudflare API authentication failure: Verify API Key and Account ID credentials.
  • Google Gemini AI returns empty or bad JSON: Adjust the system prompt or verify markdown data input.
  • Gmail sending fails: Re-authorize OAuth2 credentials and check email API permissions.

Summary

✓ Automatically download and convert university term dates Excel files.
✓ Use AI to extract structured event information without manual reading.
✓ Produce a ready ICS calendar file instantly.
✓ Email the calendar file automatically to users.
✓ Save time and reduce errors in academic planning.


Automate term dates with n8n and AI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Open the HTTP Request node named “Markdown Conversion Service”. Insert the Cloudflare API Key and Account ID in the node’s credentials fields and update the URL with the account ID.
Check the markdown table input to the AI node for correct format. Adjust the system prompt or extraction schema to match the markdown data.
Edit the Gmail node called “Send Email with Attachment”. Replace the recipient address with the desired email.
Yes, after importing and testing, add a scheduling trigger or webhook to activate the workflow periodically or on events.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.