Use the controls on the Scripts tab to write HScript to execute when various low-level events occur, such as before and after a node is created, and when an input changes. See the help for the Type Properties
Window for more information on the events you can script.