Fixed error handling when getting replies.
Added conversion of knowledge base.