> For the complete documentation index, see [llms.txt](https://docs-convai.wavy.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-convai.wavy.global/tips-and-best-practices/using-time-in-your-chatbot.md).

# Using time in your chatbot

With Chatlayer.ai, you can use the Get Time plugin to guide your flow based on the current moment in time.

One of our customers, for example, uses this to determine if it is winter or summer, and will recommend tires based on the current season.

To implement this, first create an `Action` bot dialog that contains a Get Time plugin.

![](/files/-MFgECd6K2b-6u1eUGgG)

This plugin saves the current time variables to a variable of your choosing. Determine the name of this variable in the Target field. You can use it in your Go To's and Bot Messages with the following variables:

* (target).year
* (target).month
* (target).days
* (target).hours
* (target).minutes
* (target).seconds

All variables will return a number. You can use them in your flow like this:

![](/files/-MFgECd7G1QhX2V3Govr)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-convai.wavy.global/tips-and-best-practices/using-time-in-your-chatbot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
