Parse natural language dates with OpenAI GPT-4o for smart scheduling
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
- Achieves 96%+ accuracy on complex natural language date expressions
- At time of writing, this is the most advanced open-source date parser available
- Includes AI learning that improves over time with user corrections
- Supports 6 languages with auto-detection (English, Spanish, French, German, Italian, Portuguese)
- Sub-millisecond response times with intelligent caching
- Enterprise-grade with business intelligence and timezone handling
How it works
- Natural Language Input: Receives date expressions via webhook, form, email, or chat
- AI-Powered Parsing: Your world-class date parser processes the text through:
- 50+ custom rule patterns for complex expressions
- Multi-language auto-detection and smart translation
- Confidence scoring (0.0-1.0) for AI decision-making
- Ambiguity detection with helpful suggestions
- Business Intelligence: Applies enterprise rules automatically:
- Holiday calendar awareness (US + International)
- Working hours validation and warnings
- Business day auto-adjustment
- Timezone normalization (IANA format)
- Smart Scheduling: Creates calendar events with:
- Structured datetime objects (start/end times)
- Confidence metadata for workflow decisions
- Alternative interpretations for ambiguous inputs
- Rich context for follow-up actions
- Integration Ready: Outputs connect seamlessly to:
- Google Calendar, Outlook, Apple Calendar
- CRM systems (HubSpot, Salesforce)
- Project management tools (Notion, Asana)
- Communication platforms (Slack, Teams)
How to use
- The webhook trigger receives natural language date requests from any source
- Replace the MCP server URL with your deployed date parser endpoint
- Configure timezone preferences for your organization
- Customize business rules (working hours, holidays) in the parser settings
- Connect calendar integration nodes for automatic event creation
- Add notification workflows for scheduling confirmations
Use Cases
- Meeting Scheduling: "Schedule our quarterly review for early Q3"
- Project Management: "Set deadline 2 weeks after product launch"
- Event Planning: "Book venue for the weekend before Labor Day"
- Personal Assistant: "Remind me about dentist appointment next Tuesday morning"
- International Teams: "Team standup tomorrow morning" (auto-timezone conversion)
- Seasonal Planning: "Launch campaign in late spring 2025"
Requirements
- Natural Language Date Parser MCP server (provided code)
- Webhook endpoint or form trigger
- Calendar integration (Google Calendar, Outlook, etc.)
- Optional: Slack/Teams for notifications
- Optional: Database for learning pattern storage
Customizing this workflow
- Multi-language Support: Enable auto-detection for global teams
- Business Rules: Configure company holidays and working hours
- Learning System: Enable AI learning from user corrections
- Integration Depth: Connect to your existing calendar and CRM systems
- Confidence Thresholds: Set minimum confidence levels for auto-scheduling
- Ambiguity Handling: Route unclear dates to human review or clarification requests
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
- World-Class Accuracy: 96%+ success rate on complex expressions
- AI Learning: Improves over time with user feedback
- Global Ready: Multi-language and timezone intelligence
- Business Smart: Enterprise rules and holiday awareness
- Performance Optimized: Sub-millisecond cached responses
- Context Aware: Provides confidence scores and alternatives for AI decision-making
Transform your scheduling workflows from rigid form inputs to natural, conversational date requests that your users will love!
Parse Natural Language Dates with OpenAI GPT-4o for Smart Scheduling
This n8n workflow leverages the power of OpenAI's GPT-4o to interpret natural language date and time expressions, making it easier to extract actionable scheduling information from free-form text.
What it does
This workflow takes a natural language input string and uses an AI agent powered by OpenAI's GPT-4o model to parse and extract structured date and time information.
- Manual Trigger: The workflow is initiated manually, allowing you to test it with different input texts.
- Edit Fields (Set): This node is configured to hold the natural language date string you want to parse. By default, it contains an example like "today at 3pm".
- AI Agent: This node acts as an intelligent agent, using a pre-defined prompt to instruct the OpenAI Chat Model to extract date and time information. It's configured to output the parsed date and time in a structured format.
- OpenAI Chat Model: This is the core AI component, utilizing the OpenAI GPT-4o model to perform the natural language understanding and parsing based on the instructions from the AI Agent.
Prerequisites/Requirements
- n8n Instance: A running n8n instance (self-hosted or cloud).
- OpenAI API Key: An API key for OpenAI with access to the GPT-4o model. This key will need to be configured as an n8n credential.
Setup/Usage
- Import the workflow:
- Download the provided JSON file.
- In your n8n instance, click "Workflows" in the left sidebar.
- Click "New" -> "Import from JSON".
- Paste the JSON content or upload the file.
- Configure OpenAI Credentials:
- In the "OpenAI Chat Model" node, select or create a new "OpenAI API" credential.
- Enter your OpenAI API Key when prompted.
- Customize Input:
- In the "Edit Fields (Set)" node, modify the
valuefield to your desired natural language date string (e.g., "next monday at 9am", "in two weeks", "tomorrow evening").
- In the "Edit Fields (Set)" node, modify the
- Execute the workflow:
- Click the "Execute Workflow" button in the "When clicking ‘Execute workflow’" (Manual Trigger) node to run the workflow and see the parsed output.
- Inspect the output of the "AI Agent" node to see the structured date and time information extracted by GPT-4o.
Related Templates
Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4
💥 Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale. --- ⚙️ What problem this workflow solves Manually creating videos for TikTok can take hours — finding trends, writing scripts, recording, and editing. By combining Veed.io, ElevenLabs, and GPT-4, this workflow transforms a simple Telegram input into a ready-to-post TikTok video featuring your AI avatar powered by Veed.io — speaking naturally with your cloned voice. --- 🚀 What this workflow does This automation links Veed.io’s video-generation API with multiple AI tools: Analyzes TikTok trends via Perplexity AI Writes a 10-second viral script using GPT-4 Generates your voiceover via ElevenLabs Uses Veed.io (Fabric 1.0 via FAL.ai) to animate your avatar and sync the lips to the voice Creates an engaging caption + hashtags for TikTok virality Publishes the video automatically via Blotato TikTok API Logs all results to Google Sheets for tracking --- 🧩 Setup Telegram Bot Create your bot via @BotFather Configure it as the trigger for sending your photo and theme Connect Veed.io Create an account on Veed.io Get your FAL.ai API key (Veed Fabric 1.0 model) Use HTTPS image/audio URLs compatible with Veed Fabric Other APIs Add Perplexity, ElevenLabs, and Blotato TikTok keys Connect your Google Sheet for logging results --- 🛠️ How to customize this workflow Change your Avatar: Upload a new image through Telegram, and Veed.io will generate a new talking version automatically. Modify the Script Style: Adjust the GPT prompt for tone (educational, funny, storytelling). Adjust Voice Tone: Tweak ElevenLabs stability and similarity settings. Expand Platforms: Add Instagram, YouTube Shorts, or X (Twitter) posting nodes. Track Performance: Customize your Google Sheet to measure your most successful Veed.io-based videos. --- 🧠 Expected Outcome In just a few seconds after sending your photo and theme, this workflow — powered by Veed.io — creates a fully automated TikTok video featuring your AI avatar with natural lip-sync and voice. The result is a continuous stream of viral short videos, made without cameras, editing, or effort. --- ✅ Import the JSON file in n8n, add your API keys (including Veed.io via FAL.ai), and start generating viral TikTok videos starring your AI avatar today! 🎥 Watch This Tutorial --- 📄 Documentation: Notion Guide Need help customizing? Contact me for consulting and support : Linkedin / Youtube
Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets
This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions