⚡ Parse natural language dates with OpenAI GPT-4o for smart scheduling

691 views · ⚡ Personal Productivity

Description

This n8n workflow demonstrates how to transform natural language date and time expressions into structured data with 96%+ accuracy. Parse complex expressions like “early next July”, “2 weeks after project launch”, or “end of Q3” into precise datetime objects with confidence scoring, timezone intelligence, and business rules validation for any automation workflow.

Good to know

How it works

How to use

Use Cases

Requirements

Customizing this workflow

Sample Input/Output

Input Examples:

“early next July” “2 weeks after Thanksgiving” “next Wednesday evening” “Q3 2025” “mañana por la mañana” (Spanish) “first thing Monday”

Rich Output:

{
  "parsed": [{
    "start": "2025-07-01T00:00:00Z",
    "end": "2025-07-10T23:59:59Z",
    "timezone": "America/New_York"
  }],
  "confidence": 0.95,
  "method": "custom_rules",
  "business_insights": [{
    "type": "business_warning",
    "message": "Selected date range includes July 4th holiday"
  }],
  "predictions": [{
    "type": "time_preference",
    "suggestion": "You usually schedule meetings at 10 AM"
  }],
  "ambiguities": [],
  "alternatives": [{
    "interpretation": "Early July 2026",
    "confidence": 0.15
  }],
  "performance": {
    "cache_hit": true,
    "response_time": "0.8ms"
  }
}

Why This Workflow is Unique

Transform your scheduling workflows from rigid form inputs to natural, conversational date requests that your users will love!

🔗 Nodes Used

AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup