1. A method for aligning document actions specified in a documented procedure with demonstrated user actions, comprising the steps of: computing an alignment between the document actions and the demonstrated user actions based on at least one similarity metric, wherein the demonstrated user actions are performed with respect to a user interface and the at least one similarity metric is based on common strings in the user interface and the documented procedure, and identifying a next step in the documented procedure based on the alignment.