12. The non-transitory computer readable medium of claim 10 , wherein the instructions cause the processor to determine the best-match template by applying a set of logic rules to the set of templates.
10. A non-transitory computer readable medium having instructions recorded thereon which, when executed by a processor, cause the processor to perform a method comprising: periodically sampling a user environment via a set of environmental sensors integrated into a communication device; deriving a set of environmental circumstances based at least partially on an output of the set of environmental sensors; and comparing the derived set of environmental circumstances to a set of templates to determine if there is a matching template, wherein if more than one of the templates matches the derived set of environmental circumstances, a best-match template is determined, and wherein if there is a matching template, an action script is executed.