← Back to Umabot Tools


Lang2Cron - Natural Language to UNIX Cron Generator

A lightweight, zero-backend single-page web application that converts natural language schedule requests into standard 5-field UNIX cron expressions using Google Gemini for grounding, interactive clarification, and multilingual understanding.

Open Lang2Cron Application


Overview

Writing and debugging cron syntax often leads to mistakes or platform discrepancies—especially around 5-field UNIX conventions versus 6-field quartz variants, or day-of-week indexing (where 0 represents Sunday).

Lang2Cron provides an intuitive conversational interface where functional users, sysadmins, and developers can describe when a recurring job should execute in plain words. Lang2Cron clarifies ambiguities and validates the resulting schedule against standard UNIX cron rules directly in the browser.


Key Features

1. Conversational Grounding & Clarification

2. Standard 5-Field UNIX Cron Compliance

Enforces strict 5-field UNIX syntax:

┌───────────── Minute (0 - 59)
│ ┌─────────── Hour (0 - 23)
│ │ ┌───────── Day of Month (1 - 31)
│ │ │ ┌─────── Month (1 - 12)
│ │ │ │ ┌───── Day of Week (0 - 6) (0 = Sunday)
│ │ │ │ │
* * * * *

3. Client-Side Validation & Compilation

4. 1-Click Copy & Productivity

5. Dark & Light Mode

6. Zero-Backend Privacy


Standard UNIX Cron Reference Table

Frequency Cron Expression Explanation
Every 5 minutes */5 * * * * Runs at minutes 0, 5, 10, ..., 55 of every hour
Every 15 minutes */15 * * * * Runs at minutes 0, 15, 30, and 45
Top of every hour 0 * * * * Runs at minute 0 of every hour
Daily at midnight 0 0 * * * Runs at 00:00 server time every day
Daily at 08:30 AM 30 8 * * * Runs at 08:30 server time
Weekdays at 09:00 AM 0 9 * * 1-5 Runs Monday through Friday at 09:00
First day of every month 0 0 1 * * Runs at 00:00 on day 1 of the month

System Clock Reminder: Standard UNIX cron schedules run relative to the host system clock (often configured to UTC). Ensure your server timezone aligns with your scheduled intent.


Usage Guide

  1. Open Lang2Cron: Open lang2cron.html directly in any web browser or via GitHub Pages.
  2. Configure Gemini API Key:
  3. Enter Your Schedule:
  4. Clarify if Prompted:
  5. Copy the Pattern:

Obtaining a Gemini API Key

Lang2Cron uses gemini-3.5-flash-lite, Google's lightweight and cost-effective Flash-tier model.

  1. Go to Google AI Studio.
  2. Sign in with your Google account.
  3. Click Create API Key.
  4. Copy the key, paste it into Lang2Cron, and click Save Key.

Technical Details


License

This project is licensed under the MIT License.

InnovUmabot | https://innovumabot.com

This tool was vibe-coded with AI with strict human supervision.