Is there a way to create custom comments?

Do you know the comment feature below each record in doctypes? Now I want to create a new comment feature, similar to Facebook, so what do I need to do? Is it possible?