How to use the 'DateNow!' component in wolkvox Studio
Table of Contents
Introduction
The “FechaYA!” component allows you to immediately obtain system date and time information based on a specific time zone. Upon activation, wolkvox Studio automatically creates a set of variables containing the current year, month, day, hour, minute, second, and day of the week.
These variables can subsequently be used in other components of the flow for validations, conditions, routing, or logical operations.
This component is available in all routing types (Voice, Interaction, Chat, and CRM + Webhook) and in Agent Scripting.
Configuration
-
“GMT” Field: Choose the time zone corresponding to the operation.
- This ensures that the generated variables correspond to the real-time of the desired location.
- The on-screen box will display all the variables that the component loads automatically:
- $wolkvox_year → Current year (1976 - 2099)
- $wolkvox_month → Current month (1 = January, 12 = December)
- $wolkvox_day → Day of the month (1 - 31)
- $wolkvox_hour → Hour (0 - 23)
- $wolkvox_min → Minute (0 - 59)
- $wolkvox_sec → Second (0 - 59)
- $wolkvox_day_week → Day of the week (1 = Monday, 7 = Sunday)
- These variables are automatically loaded into the flow once the component is executed.

Once configured, you can use any of the “FechaYA!” variables in other components, such as:
- Switch Case (for routing by day or hour).
- Conditionals (to validate if it is a weekend, if a time is within a range, etc.).
- Play Audio, WhatsApp, SMS, CRM, among others (to personalize messages).
For example, if you want to play an audio only if today is Monday: $wolkvox_day_week == 1
Click the “Save” button to apply the changes and activate the availability of the variables within the flow.
Important
If this component is not placed in the flow before the first component that attempts to read these variables, the variables will be empty, and your logic might fail. Therefore, always place “FechaYA!” at an early stage of the diagram.