Correctly , tool , configuration

Guys , i have a postgres node tool (exceute query ) connectectd to my agent , i wanna know how i do correct configuration of the tool , because the agent didn’t use the tool , he ignores it why


I don’t understand that language but the reason why the AI isn’t using the tool is because it doesn’t think it needs to do so.

You have to specify it in a system message or in the prompt: ‘Call Name of the tool in these cases: …’

If you already did so and the Agent is not calling the tool anyways, change the AI model to a smarter one. Works for me both ways.

Take your user prompt and use it as system prompt, or split if necessary into a system and a user prompt. But normally user prompts are send via chat trigger or webhook request. Additionally, explicitely advice the AI Agent to search for specific information in the database. Best way is to tell it the tool name to use.

Another thing I noticed is, prompts work better if they are written in english.
Simply tell the AI Agent in the system prompt to respond in the same language as the user asks or as the data are in the file.

1 Like

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