Need help with Openai API and workflow







I want the speech ai to say what the text ai writes, then I want it to say that. Can anyone help? This is what I’ve done, and it works for some messages, but not for others. (I removed the API keys temporarilt, I put them back afterwards)
Here’s the error message:



It’s really weird, sometimes it works and others it dosen’t. It works most of the time, but not when I tell it to sing something.

"The service Dogwo’s ai - Doggo ai just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:

{
“error”: {
“message”: “We could not parse the JSON body of your request. (HINT: This likely means you aren’t using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
}"

In the body JSON of the API call, remove “” brackets that wraps the dynamic values, and use JSON safe operator in the workflows