ChatGPT API - sort incoming messages

Hello, I’m trying to sort incoming messages by descriptions through an API, but I can’t get a consistent response from the API.
Array of Description Messages and task to match text with description and response format (shown below)
Can you help me with this. This is the model I’m trying to achieve.
public long DescriptionIDs { get; set; }
public string Locations { get; set; }
public string Companies { get; set; }
public string Keywords { get; set; }