How does chat diagnose?