Skip to main content
AI Chatbots

Worktime configuration function

The worktime configuration function is available in virtual assistants that have automatic text generation enabled.

When this function is active, it appears in the Functions view under the name worktime. The related data file is located in the Resources view as worktime_config.json. If the function or file is missing, please contact Tilde Support to enable it.

When enabled, the virtual assistant can inform clients whether the company is open on specific days and at specific times.

The assistant’s trainer can adjust working hours for holidays, transferred workdays, and other exceptional cases.

Daylight saving time changes are applied automatically – no manual adjustments are required.


How to update working hours

  1. Open the Resources view in the virtual assistant management site and download the file worktime_config.json.
  2. Edit the file to update working hours or specify changes for particular dates, then save your changes.
  3. Upload the modified file back to the Resources view, keeping the original file name.

Weekly standard working hours

The weekly schedule is defined in the worktime_config.json file under the Resources view. It consists of two parts.

The first part contains the standard schedule with working hours for each day of the week.

Example

"defaults": {
"01-mon": ["08:00", "19:00"],
"02-tue": ["08:00", "19:00"],
"03-wed": ["08:00", "19:00"],
"04-thu": ["08:00", "19:00"],
"05-fri": ["08:00", "19:00"],
"06-sat": ["09:00", "16:00"],
"07-sun": []
}

Explanation

The company is open Monday to Friday from 8:00 AM to 7:00 PM. On Saturdays, it operates from 9:00 AM to 4:00 PM, and on Sundays it is closed.

To change the weekly schedule, update the time values for the relevant day as shown in the example.

Defining holidays and shortened hours

The second part of the file lists all calendar days for the year. This section is used to define holidays and special days when working hours differ from the standard schedule.

Example

"custom": {
"01-jan": {
"01": "-",
"02": null,
"03": ["10:00", "15:00"]
}
}

Explanation

  • "01-jan" – Indicates the month (January in this example).
  • "01": "-" – January 1: the company is closed.
  • "02": null – January 2: the company follows the standard weekly schedule.
  • "03": ["10:00", "15:00"] – January 3: the company operates shortened hours from 10:00 AM to 3:00 PM.
To set custom hours for a specific day, find the date in the file and add the time range as shown.
To mark a day as closed (holiday or day off), use "-" for that date.