Hi Team,
I am facing issue in getting the message details from the genie conversation API. I have created the conversation, which returns the message ID and conversation ID. But I am unable to see the message. I am getting error, when hitting the Get conversation message API. Request details below:
Request:
curl --request GET \ --url https://<instance-url>/api/2.0/genie/spaces/01f02373ddca138c8fba681fbdbc6048/conversations/01f02d59328d15a0bff50c404a402104/messages/01f02d59329e1cfd994ada581f5a90d1 \ --header 'authorization: Bearer <redacted>'
Response:
{
"id": "01f02d59329e1cfd994ada581f5a90d1",
"space_id": "01f02373ddca138c8fba681fbdbc6048",
"conversation_id": "01f02d59328d15a0bff50c404a402104",
"user_id": 4005002501632047,
"created_timestamp": 1746852157309,
"last_updated_timestamp": 1746852201368,
"status": "FAILED",
"content": "Give me the top five open opportunities from the Opportunity table ",
"error": {
"error": "INTERNAL_ERROR: AI service did not respond with a valid answer. Message-ID: 01f02d59329e1cfd994ada581f5a90d1. Code: 22.",
"type": "FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"
},
"auto_regenerate_count": 0,
"message_id": "01f02d59329e1cfd994ada581f5a90d1"
}
What am I doing wrong? Any suggestions will be helpful.