Default Variables

Time-based variables use the local time of the host machine running AnythingLLM.

VariableDescriptionAvailability
{date}Current dateAll versions
{time}Current timeAll versions
{datetime}Current date and timeAll versions
{user.name}User nameAnythingLLM Docker (Multi-user mode enabled)
{user.bio}User bio fieldAnythingLLM Docker (Multi-user mode enabled)
{os.name}Operating system nameAnythingLLM Desktop
{os.arch}OS architectureAnythingLLM Desktop

Configuration & Usage

Custom Variables

  • Navigation: Settings -> Tools -> System Prompt Variables
  • Action: Click Add Variable to define static custom variables.

Implementation

  1. Insert variables using {variable_name} syntax within any workspace System Prompt field.
  2. Valid variables highlight in blue in the UI after editing. Invalid variables fail silently (do not expand, no error thrown).

Prompt Example

You are a helpful assistant.
Today is {date} and the current time is {time}.
The user's name is {user.name}, they work at {company_name} and this is what we know about them:
{user.bio}