refactored a bit, create chatresponse in a factory class