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: