i´m trying to build my first Agent System and have build a telegram trigger and connected this with a AI Agent, ChatGpt and a memory function. At least also a send message as answer. The workflow is working but i thought i could get some realtime information like the weather by connecting ChatGPT as LLM.
After this doesn´t work, i tried to connect a http request whit google so that ChatGPT can use it for my request. But still not working…
Any easy ideas? I´m looking for a solution to get any realtime information im looking for.
LLMs do not have real time information. If you ask chat gpt what date it is it will have no idea
but you can give them information. In the system prompt you can add current date: {{ $now }} and then that will give the agent up to date info.
For stuff you cant add like that or more complicated information, you can provide it tools. There are a bunch of built in ones, like the Wikipedia tool which lets the agent look stuff up on Wikipedia when needed.
You can also use “Call n8n Workflow Tool” to give it any tool you can make in a workflow.
So you could make a “Call n8n Workflow Tool” named fetch weather, then in the sub workflow have the logic of getting the weather.
Hope that helps
note: in the latest n8n version there is a bug that doesn’t let you pass data to the custom workflow tool. I would guess it will be fixed in the next release