Website Environments
Task Transform (Calendr only)
Convert absolute dates to variable-based dates
POST
Transform prompts with absolute dates into variable-based prompts. Variable dates use the session’s base Monday as an anchor point, keeping scenarios relevant over time.
Request Body
string
required
Text containing absolute dates to transform (e.g., “Schedule a meeting on 2025-01-15”)
string
required
Session identifier (used to determine the base Monday)
Response
string
The original prompt with absolute dates
string
The transformed prompt with variable dates
Supported Date Formats
The endpoint automatically detects and converts:- ISO dates:
YYYY-MM-DD(e.g., 2025-01-15) - Month names: Full month names with year (e.g., January 2025)