1. An accessory device comprising one or more non-transitory computer-readable storage media encoding computer-executable instructions for executing a computer process comprising: collecting contextual information by at least one sensor, wherein the contextual information reflects a state of a user of the accessory device or a state of the environment of the user at a particular time; storing the contextual information in memory; determining by a processor whether an action should be performed based on the stored contextual information; and transmitting by a network interface information relating to the action to an external device.