Hello!
I’m trying to automate this flow:
- A document is created on a folder
- The document info is read automatically and,
- Sent to Chat GPT with a prompt (make a summary).
The first two modules (watch text and extract content are working perfectly)
But can’t make the HTTP module work: the one that takes the text to the Chat GPT through the API. Everything is correctly configured: the API adress, the key, methods, headers, body type, content type…apparently the problem is the JSON. But the same code in Postman and jsonlint.com verifications says it’s ok! I’ve been here for HOURS, please help…
This is my code:
{
“model”: “gpt-3.5-turbo”,
“messages”: [
{
“role”: “system”,
“content”: “Act as an assistant that generates meeting minutes based on transcriptions. I need you to make a summary of the transcription”
},
{
“role”: “user”,
“content”: “{{3.text}}”
}
]
}
{3.text} is the text that is on the document. I verified it’s all correct.
Just in case, I modified the code to have a different thing instead of the 3.text:
{
“model”: “gpt-3.5-turbo”,
“messages”: [
{
“role”: “system”,
“content”: “Act as an assistant that generates meeting minutes based on transcriptions. I need you to make a summary of the transcription”
},
{
“role”: “user”,
“content”: “This is a test transcription to verify the functioning of the flow.”
}
]
}
Neither works, I’m getting this error the whole time:
DataError
Error: 400 Bad Request
- {“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}}
Origin
HTTP
Could you please help me?
I’m sort of desperate…can’t understand why this is happening.
Attached also the screen captures.
Thank you so, so much for some light on this…
Best wishes!