1. A humanoid robot, comprising: i) at least one sensor selected from a group comprising audio sensors and visual sensors of events generated by at least one user of said robot, ii) at least one event recognition module at the output of said at least one sensor and, iii) at least one module for generating events towards said at least one user, a module for dialog with said at least one user, said dialog module receiving as input the outputs of said at least one recognition module and producing outputs to said event generation module selected from a group including speech, movements, expressions and emotions, wherein said robot further includes an artificial intelligence engine configured for controlling the outputs of the event generation module according to a context of dialog and variables defining emotions of the robot as a series of expressions between a neutral state and a terminal state, an evolution between said neutral state and said terminal state being triggered by a pulse generated as a function of time and of one or more of the outputs of the at least a sensor, the event recognition module, the dialog module and the event generation module.