Describe the problem/error/question
I am trying the new AI Beta locally
My aim is to classify input and get a JSON structure out of it.
I figured out, that the AI node already predefines a quite elaborate prompt to get JSON output in such a format:
{ “action”: “Final Answer”, “action_input”: <the actual output" }
I don’t need tools, so actually I would be fine with a plain JSON output to my question
I tried to manipulate the prompts, but ran into different problems.
My idea was to specify the JSON output I want to the LLM, but I need to escape the curly braces.
I found this idea: Escape brackets
but when I use the following plain input (not an expression)
Please Use the following JSON Format
{{ '{' }}
"action": "Final Answer",
"action_input": {{ '{' }}
"classification": "your classification result";
{{ '}' }}
{{ '}' }}
What is the error message (if any)?
I am getting
Problem in node ‘Agent‘
Single ‘}’ in template.
So it looks like the escaping is not working?
Additional question
The N8N Engine tries to check for this action_input JSON and retry the LLM call - can I disable this check and check the output for myself?
Information on your n8n setup
- **n8n version: (docker.n8n.io/n8nio/n8n:ai-beta), sha 0ae27a0f0799453edaa0ef1b8e0723b85998c6ebd36b79d437cec21428bd66fc from today