Getting '''json and ''' syntax in AI Agent response

Describe the problem/error/question

I am getting the following syntax inserted into my output from my AI Agent; it using an openai chat model and a auto-fixing output sparser. the parser gets the following input and throws an error

(‘’‘json\n{\n “keyword”: “Siamese cat graphic tee”,\n “status”: “pass”,\n “reason”: “meets all criteria”\n}\n’‘’

how do i get rid of ‘’‘json at the beginning and ‘’’ at the end?

Here are the instructions in the parser:

Instructions:

{take in the input and return a pass or fail for the value of the object status. Provide a reason for passing or failing for the value of reason. }

Completion:

{completion}

Above, the Completion did not satisfy the constraints given in the Instructions.
Error:

{error}

Please try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:
]

What is the error message (if any)?

[

{

“action”: “parse”,

“response”: {

}

}

]

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the 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:

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:

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