What Is The Main Function Of Robot?

What is the most important part of a robot?

.

How do robots perform a function?