It’s a challenge for the most strong-willed of us. But tools and agents of artificial intelligence can assist us. Instead of general nudges, they offer specific advice—based on a close reading of ...