[AI Employee] Cannot reliably detect current date from system prompt variables ($nDate.today, $nDate.now)

Hi everyone,

I’m configuring an AI Employee (Agent) in NocoBase and running into an issue with date awareness.

Context

  • I pass current time into the system prompt using:
{{ $nDate.today }}
{{ $nDate.now }}
  • The variables are rendered correctly in the prompt (I can see the actual date values).

Problem

When the user asks questions like:

  • “What day is today?”
  • “Today is which date?”
  • “This week / today’s leads”

The AI does not consistently use the provided date values, and instead:

  • guesses the day of week incorrectly
  • or answers based on its internal knowledge
  • sometimes corrects itself manually (“sorry, I was wrong”) instead of re-evaluating from the provided date

Expected behavior

  • The AI should treat {{ $nDate.today }} / {{ $nDate.now }} as the single source of truth
  • All relative date expressions (today, this week, this month) should be derived strictly from those variables
  • No guessing or internal date inference

Question

Is there:

  1. A recommended or official way to inject system time so AI Agents always rely on it?
  2. Any limitation where AI does not treat prompt variables as authoritative inputs?
  3. A best practice for enforcing date usage in AI Employee instructions?

Any guidance would be appreciated. Thanks!
Picture:

Has anyone else experienced a similar situation? I need help.

  1. Why you need to modify the date?
  2. System prompt should be more clear. AI may not be able to fully understand every instruction you give.