Error when ai completes placeholders with arrays inside http request tool

Describe the problem/error/question

When ai tries to complete the placeholder inside the body of a http request with an array as a string it fails

Body looks something like this:

{
args: {
{placeholder}
}
}

while the ai tryes to fill it with:

{
query: {
“[[“field”, “operator”, “value”]]”
}
}
When manually replacing the results the json is valid and the request gives the expected result
I believe it is related to the schema not supporting arrays AI tool schema doesn't permit arrays - #5 by Giovanni_Segar
So if @Niklas_Hatje has an update in this issue greatly apreciated

What is the error message (if any)?

Could not replace placeholders in body: Expected ‘,’ or ‘]’ after array element in JSON at position 287

Please share your workflow

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:

Hey @Leandro_Espinoza, this is a separate issue, as the schema topic is only relevant for using workflow tools. The HTTP request tool uses a completely different paradigm right now. Do you have an example workflow for us to reproduce this?

I’ve updated the question with the workflow. Srry in advance for spanish.

Hey @Leandro_Espinoza, thanks for the update. I see that in your prompt you sometimes used quotation and somtimes not. Have you tried being consistent there and always use quotation?

I’m having the same issue with no logs or any way to debug why this is failing

Hey @Danilo_Alonso would you mind trying to update to the new version of that tool? You should be able to use our $fromAI there to let AI choose over inputs