AI Agent + OpenAI node don't create a usable format... what can i do?


I am trying to build a personal assistant that has a few tools and all of the tools work fine, but the problem arises, that at the attempt of calling one of the tools (in the screenshot the “create_document_on_drive”-tool) the input is a nested query, that isn’t processable by the “call n8n workflow tool” as seen in the log on the right…
I don’t know where this problem originates from.
Is it the input schemata i defined for my tools?
Is it the output of the OpenAI node?
Is it the AI Agent node?
→ where does the nested { query: { query:content } } format come from, and how does it need to change in order for it to be passed to the tool(s)?
n8n version: 1.65.2

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 @Bruno_Exler,

Welcome to the community :tada: Could you share your workflow or parts of it (especially the tool that the Agent is attempting to call that’s causing this issue?)

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!


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