Had the privilege of attending a talk given by one of the MS researchers behind Clippy. They were using some very sophisticated ML behind the scenes (Bayes Nets) to interpret intent and guide troubleshooting. The magic of that often goes unappreciated with all of the vitriol / hype around the character.