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.
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. 16. The non-transitory computer readable medium of claim 10 , wherein the instructions further cause the processor to receive information from a central telecommunications server, and the processor uses the information from the central telecommunications server for deriving the set of environmental circumstances.