[BUG] OpenAI Agent tools problems

Describe the problem/error/question

OpenAI assistant with tools do wrong queries for tools.

OpenAI returns right inputs but it doesn’t affect on tool input and stuck with first result.

What is the error message (if any)?

Please share your workflow



image

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Mark_S,

could you provide more context regarding the workflow setup or share additional details? Would be great if you can also share your workflow.

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


I have simple node with Message to OpenAI assistant and tool - creating record in Supabase. The problem is that Assistant generates multiple tools input, but tool use only first result. I tested it multiple times.

Hi @Mark_S Faced the same issue
Have already reported here on community.
Workaround for now what i did is created a sub workflow for each of my tools and called the sub workflow using Trigger workflow tool.
As i can see in your screenshot,you have multiple tools so this workaround will be a hassle.Compared i had only 2 tools with connected to my agent.

Hope n8n team fixes this soon.

1 Like

I replaced Supabase node with PostgreSQL and it worked but now the same but - check on screenshot the output is the same for first and all other runs - input isn’t.


@Mark_S have you tried what @AasimK suggested? Also, just fyi I think this is the related post that @AasimK is referring to: Issue with Node as Tools calling several times with the same arguments - #13 by Baptiste_JACQUEMET

Yes, my problem is related to this topic.
I know that I can use sub-workflows but the thing is to use tools for AI agent.

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