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:
- A recommended or official way to inject system time so AI Agents always rely on it?
- Any limitation where AI does not treat prompt variables as authoritative inputs?
- A best practice for enforcing date usage in AI Employee instructions?
Any guidance would be appreciated. Thanks!
Picture:

