Current Date and Time Integration
Overview
The Current Date and Time Integration is an out-of-the-box Integration within the ai12z Copilot suite that allows you to retrieve the current date, time, timezone, and day of the week for a specified timezone. By providing a simple parameter, you can access accurate and up-to-date time information, enhancing your application's functionality that depends on time-sensitive data. This Integration simplifies the integration of time and date features into your applications, requiring no customization
Key Features
- Time Zone Specification: Retrieve the current date and time for any specified timezone.
- Comprehensive Time Data: Access the current date, time, timezone, and day name.
- Easy Integration: As an out-of-the-box Integration, it requires no customization and integrates seamlessly with your applications.
Purpose
If the LLM needs the time of a paticular region it can call this Integration:
- Enhance Application Functionality: Provide accurate time and date information
- Simplify Integration: Eliminate the need for complex time zone conversions and date-time handling
- Save Time: Automate the retrieval and formatting of time and date data
How It Works
- Input Parameter: The LLM provide the desired timezone using the
time_zone
parameter. If not specified, the default timezone is'UTC'
. - Time Retrieval: The Integration uses the specified timezone to retrieve the current date and time.
- Data Formatting: It formats the date and time information into a structured JSON format, including the date, time, timezone, and day name.
- Output Delivery: Returns the formatted data to the LLM
Parameters
When invoking the Current Date and Time Integration, the LLM can specify the following parameter:
- time_zone (string, optional): The timezone for which you want to retrieve the current date and time. This should be a valid timezone string (e.g.,
"America/New_York"
,"Europe/London"
). The default value is'UTC'
.
Note: For a reference to the current time in the system prompt, you can use {tz=America/New_York}
.
Enabling the Integration
To enable the Current Date and Time Integration in your ai12z Copilot:
- Access the Integration Settings: Log in to your ai12z Copilot dashboard and navigate to the Integrations section.
- Locate the Integration: Find the Current Date and Time Integration in the list of available Integrations.
- Enable the Integration: Click on the Integration and select Enable to activate it for your Agents.
- Set Parameters: When using the Integration, specify the
time_zone
parameter as needed for your application.
Benefits
- User Engagement: LLM will be updated with accurate time and date information, improving user experience for time-sensitive functionalities.
- Global Reach: Cater to users in different time zones by providing localized time information.