Skip to main content
Question

Webhooks app getting "We could not parse the JSON body of your request" error

  • May 27, 2025
  • 1 reply
  • 41 views

Failed to create a request in Webhooks by Zapier

The app returned "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...". 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.)

Hi this is the error that I got once I put this datat : 

{
  "model": "gpt-3.5-turbo",
  "temperature": 0.7,
  "messages": [
    {
      "role": "system",
      "content": "You are a real estate agent named Nick. You buy properties with cash. Respond to the client politely, without pressure, and guide them towards sending a draft purchase agreement."
    },
    {
      "role": "Dir Diran",
      "content": "Hi, how are you Nick? Yes, I will sell my property but it depends on your offer..."
    }
  ]
}

I’m trying to build an AI agent that will automatically respond to my leads.


Please help .

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Sync9-Solutions
Forum|alt.badge.img+1

Hello ​@diran ,

I noticed in your messages array that the value of “role” in the second item is “Dir Diran”. I believe the role value can only be “system”, “user”, or “assistant”. Custom names like “Dir Diran” are not valid for the role field.

Let me know if it will work after you change it. Hope this helps!