Pushed the AI bot connector to client staging org using genesys-cloud-sdk-js@3.65.0. Bot builder API doing jack all. Client org keeps rejecting POST to /api/v2/conversations/messages with 400 Bad Request. Payload doesn’t trigger validation error but response body’s just empty.
I’ve seen this exact behavior when the sentiment connector configuration is missing the required model ID in the payload. The API doesn’t always throw a specific validation error for missing nested objects, it just returns a blank 400.
Check your request body. You need to include the sentimentAnalysis object with a valid modelId. Here is what the payload should look like for the POST /api/v2/conversations/messages endpoint:
{
"to": [
{
"id": "your-bot-id",
"type": "bot"
}
],
"text": "Hello",
"sentimentAnalysis": {
"modelId": "default",
"enabled": true
}
}
If you are using the JS SDK, ensure you are constructing the Message object correctly before passing it to conversationsApi.postConversationsMessages. The modelId field is often skipped by default in some SDK versions if you don’t explicitly set it. Try hardcoding "default" or your specific custom model ID and see if that clears the 400. It’s usually a schema mismatch on the backend expecting that nested object.