Did the emperor of china have help with his or her job and if so who helped him or her ie slaves and advisers?

Emperors had an army of advisors and servants to help them out. There was a very structured civil service they relied on.