current-time

AI Agent tool that returns the current date and time

Package Information

Released: 2/21/2025
Downloads: 1 weekly / 6 monthly
Latest Version: 0.1.1
Author: berk

Documentation

n8n-nodes-current-time

This is a demonstration of an n8n community node showcasing the use of custom nodes as AI Agents. It simply returns the current time.
Its creation stemmed from my investigation into why my own custom nodes weren't initially functioning as AI tools.
Thankfully, n8n now supports this functionality via an environment variable.

https://github.com/n8n-io/n8n/releases/tag/n8n%401.79.0
https://github.com/n8n-io/n8n/pull/13075

Until this feature is enabled by default, you can set the environment variable N8N_ALLOW_CUSTOM_TRIGGER_NODES_AS_AITOOLS to true.

$ cd /path/to/n8n
$ pnpm install
$ pnpm build
$ export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true && pnpm start
```	

![workflow.png](docs/workflow.png)


[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

[Installation](#installation)  
[Operations](#operations)  
[Compatibility](#compatibility)  
[Usage](#usage)
[Resources](#resources)  
[Version history](#version-history)

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Operations

Only one operation - return the current date/time.

## Compatibility

This node is compatible with n8n 1.79.0 and above.

## Usage

By the time users are looking for community nodes, they probably already know n8n basics. But if you expect new users, you can link to the [Try it out](https://docs.n8n.io/try-it-out/) documentation to help them get started.

## Resources

* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)

## Version history

Initial release.

Discussion