Hi,
JSON Parsers is driving me crazy. I don’t understand why.
So I have this workflow to create optimized blog posts and 90% of the times when I run the scenario, the JSON Parser modules fail, 10% they work just fine.
What I have at the end of the first ChatGPT:
OUTPUT FORMAT
The output should be provided in the following JSON format:
{
“title”: “”,
“description”: “”,
“seo_description”: “”,
“content”: “”
}
What I have at the end of the second ChatGPT:
OUTPUT FORMAT
The output should be provided in the following JSON format:
{
“optimized_title”: “”,
“optimized_description”: “”,
“optimized_seo_description”: “”,
“optimized_content”: “”,
“custom_url”: “”,
“feedback”: “”
}
The error I am getting (attached)
)
What am I doing wrong?
Would it be better to ask ChatGPT to output in JSON, instead of TEXT?
If I do that, I cannot ask it to check its knowledge base to retrieve knowledge though.
EDIT: A new problem arose.Now it seems that the JSON works 90% of the time, although it fails 10% of the time, but when writing on the Google DOC, it says:
[400] Invalid value at 'requests[8].replace_all_text' (replace_text), Starting an object on a scalar field
Thanks for the help and support!