AI Event Text to Calendar Entry Generation - n8n Workflow

Automate calendar entry creation using n8n and AI. This robust n8n workflow converts unstructured event text into structured data and instantly creates events in NextCloud, Google, or Zoho Calendar.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Individuals or teams seeking to automate tedious calendar entry from emails, messages, or text captured from images.
Users of self-hosted solutions like NextCloud who require specific CalDAV formatting.
Technical users looking for advanced n8n templates integrating LangChain Agents and custom code.
Developers needing a reliable n8n workflow trigger mechanism for third-party systems (like iOS shortcuts).

Overview

Manually translating event details from emails, screenshots, or chat messages into a structured calendar entry is time-consuming and prone to errors. This specialized n8n workflow solves this by utilizing a sophisticated AI Agent combined with a custom date manipulation n8n node.

The core value provided by this n8n template is its ability to handle messy, real-world input. It extracts critical fields—title, description, start time, end time, and location—while reliably converting local time contexts into the precise UTC format required for stable calendar services like NextCloud (via CalDAV). The workflow also provides built-in integration pathways for Google Calendar and Zoho Calendar, ensuring maximum flexibility for the end user.

By deploying this n8n workflow, you establish a powerful automation endpoint capable of receiving raw data from any source (like a mobile phone shortcut) and delivering a perfectly formatted calendar event.

How it Works

This automation begins with a custom n8n trigger, awaiting input data via a Webhook POST request.


  1. Inbound n8n Trigger: The Inbound Event Info webhook acts as the starting n8n trigger, listening for a JSON payload containing the event description under the property eventInfo.

  2. AI Parsing Agent: The input text is sent to the Parse Event Info LangChain Agent (an n8n node). This agent is instructed to use contextual time data ($now) and a specialized tool to produce a strict JSON output schema.

  3. Custom Code Tool: The Agent utilizes the to_UTC custom n8n node. This code tool reliably converts local datetimes found in the event text into the standardized UTC format required by calendar protocols (like ICS).

  4. Structured Output: The AI output is passed through the Structured Output n8n node to ensure the data strictly conforms to the expected calendar schema, handling error cases by outputting an error key if no valid event details are found.

  5. Flow Control: The Good Parse If n8n node checks for the presence of the error key. If an error is detected, the flow terminates with a Fail Response (HTTP 400).

  6. Calendar Creation (Success Path): If the parse is successful, the workflow executes the NextCloud Cal Event Creation HTTP Request. This n8n node dynamically constructs the iCalendar (.ics) payload using the AI-parsed data and sends it to the specified CalDAV endpoint.

  7. Final Response: The workflow concludes by returning a Success Response (HTTP 201) back to the original calling system, completing the end-to-end n8n workflow execution.

Installation Guide

To install this n8n template and run the n8n workflow, follow these steps:


  1. Import the n8n workflow: Copy the entire JSON provided and paste it into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Webhook Setup (n8n trigger): Note the webhook URL displayed in the Inbound Event Info n8n node. You will use this URL in your source application (e.g., an iOS Shortcut or external system).

  3. OpenAI Credentials: Ensure your LangChain nodes (Brain, Parse Event Info) are correctly configured with your OpenAI API credentials.

  4. NextCloud Configuration: Edit the NextCloud Cal Event Creation n8n node parameters:

Update the URL with your specific NextCloud path (https://your.nextcloudurl.com/remote.php/dav/calendars/YOUR_USER/personal/newEvent.ics).
Set up Basic Authentication credentials (user/password). Use an app-specific password generated within your NextCloud security settings for best practice.

  1. Testing: Manually trigger the n8n trigger (webhook) with a POST request containing a simple event text object to test the full n8n workflow execution.

Node Details

This n8n workflow relies on several powerful n8n nodes:

Inbound Event Info (Webhook): The essential n8n trigger. Its purpose is to initiate the automation upon receiving a POST request, primarily expecting event data in body.eventInfo.
Parse Event Info (LangChain Agent): The central AI processing n8n node. It orchestrates the large language model (Brain), the custom date tool (toUTC), and the structured output parser to transform unstructured text into clean JSON data.
toUTC (Code Tool): A custom JavaScript n8n node specifically designed to reliably parse complex datetime strings (including local time zone information) and output them in the strict ICS UTC format (YYYYMMDDTHHmmssZ). This is crucial for cross-platform calendar compatibility.
Good Parse (If n8n node): A logic n8n node that checks the AI output for a predefined error string. It directs the flow either to the calendar creation steps or to the failure response.
NextCloud Cal Event Creation (HTTP Request): This critical n8n node handles the integration with NextCloud. It uses expressions derived from the AI output to dynamically generate a valid iCalendar (ICS) PUT request, effectively creating the event.
Success Response / Fail Response (Respond to Webhook): These n8n nodes handle communication back to the source system, confirming whether the calendar event was successfully created (HTTP 201) or if the input failed (HTTP 400).

Related n8n Workflows

Free

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by

Automation Wizard bzzt Years of experience as a digital marketer. Honed skill in JS, web dev, email mktg. All about the value to the client. Value, baby, it's everything.

Featured*