Question about real time monitoring in AI

Describe the problem/error/question

Hello. I`m constucting simple telegramm asisstant and cannot integrate to AI Agent real time understandig. I just need to my bot can answer on questions like “What time rn” or “What time in London?”. After pasting two one after one nodes “Set time” and “Edit time”, he answers correctly but only one time, then he answers not correct.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

with data transformations, please also share your expected output. →
The current time in your timezone (UTC +5) is 3:11:46 PM. If you need help with anything else, feel free to ask!

I`ve expected 14:11

Information on your n8n setup

  • **n8n version: 1.90.2
  • **Database (default: SQLite): no db
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:
1 Like

Hi @DeepDive,

You can use a system message and pass the time into the prmpt or system message.

Here’s an example.

Thank you very much for your time, but when i put it into my scheme, bot started paste information about time in every answer, and corrention in system massage doesnt affects. But it doesnt purposed only for time saying)) Maybe i can modify your example as a tool and connect it to main bot as tool?

2 Likes

ok @DeepDive

Are you copying the whole workflow and pasting it into an n8n workflow? Does it not work?

My system prompt looks next way rn:

{{ $(‘Autorization’).item.json.message.text }}, You also know real current time but dont use, if user dont asks about it.Current Time: {{ $json[‘Current time’] }} Current Time Formatted: {{ $json[‘Current time formatted’] }}

and it works correct.

Thank you! :handshake:

1 Like

Glad to help! Did you intend to mark your reply as the solution or another one?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.