If you wanted to build an intelligent robot from scratch, how would you do it? The answer is to give it genes, just like humans have!
Humans have many types of genes, which function at different levels. (Clearly, I'm using a more abstract definition of "gene" here, than just a simple piece of DNA). Each level builds on the previous levels, and can be affected by higher levels:
Structure-building genes - The robot's body needs form. These "genes" would take the form of blueprints for mechanical parts, like bones, limbs and muscles.
Effector genes - These genes would monitor the position and stresses upon the body's structure, and develop a "model" of how the parts fit together. The effector genes are self-tuning, based on the movement and position of the body's structures. These genes also have to "advertise" their capabilities in some way, so that the "higher" genes can discover them. For example, the "limb effectors" must advertise any stresses they are feeling.
Sense genes - These genes are specialists in detecting changes in the environment, and may include "camera genes" and "touch sensor genes". They are carried upon the robot body's structure, and may have a close relationship with the effector genes. For example, the "camera genes" may work in conjunction with the muscles, to form a movable eye. The sense genes advertise their stream of outputs (raw images, touch, smells, etc), and make them available to the higher genes.
Map genes - These genes take the inputs of the sense genes, and try to make some sense of them, using various approaches. One approach is to identify features in the inputs, by determining which inputs occur at the same time. For example, if the robot's right hand rubs its left arm in a straight line, the sense gene outputs on the skin will be triggered sequentially. That sequential timing information can help the genes build a "map" of how the senses are arranged.
Pattern training genes - These genes are most active early in the robot's existence, to train the robot's cognitive powers. For example, these genes may direct the robot to focus its eyes on objects within 1-3 feet which have a roughly circular shape and small contrasting features. Once this pattern is located, the pattern training genes develop the capability of recognizing that circular shape in more detail. This is analogous to how a baby learns to recognize his mother in the first month of life. Humans can recognize faces quickly in a crowd, but can also quickly lose that ability if a specific part of the brain is damaged.
Motion genes - These genes set the body in systematic motion. The robot flails its limbs around somewhat randomly at first. Using this motion, the map genes can begin to understand how the senses fit together, and how the sense and effector genes interact. The motion genes can later be controlled and overridden by the higher genes.
Let's skip a few levels, so now we come to...
Context-establishing genes - Using all the powers of the "lower genes", the robot can recognize its context. Is it home with its parents, or in a social context with strangers? That sets the stage for how it will act differently, depending on the context.
Motivation genes - Once the robot has trained itself to recognize patterns, and has associated motions with changes in its environment, it needs a sense of focus and purpose. The motivation genes exploit the patterns and motions that have been developed, and lead it to prefer certain situations over others. This leads to increased "time-on-task" (and thus greater skill) in certain situations over others.
Social behavior genes - The robot must specialize to fill a specific niche in society. Will it be a follower or a leader? A "social hierarchy" behavior gene may exploit the fact that the robot can detect, for example, the face pattern of another robot whose eyes are not averted after 5 seconds. Depending on the social context, this may signal that the robot is standing in front of another (highly confident) robot (or in front of a mirror). The social behavior genes can be highly variable across the robot population. Some robots may feel stress when in this situation, yet other robots may feel highly motivated upon seeing other robots looking at them.
Consciousness genes - A robots has the illusion of free will when its programming runs according to its design. A robot designed to climb mountains will think it is choosing to climb mountains of its own free will. However, sometimes a robot's programmed desires are in conflict. A desire to climb mountains may be in conflict with a desire to nurture children who cannot climb. Since the robot can only be in one place at a time, another set of programs -- consciousness -- are required to negotiate among competing desires for bodily resources.