Rules are pieces of logic that have a trigger and responses. Using rules, you can control what your actors do under certain conditions, and in response to specific events.