1. A method for automatic revision of an automation script, the method comprising: obtaining a sequence of classified recorded actions, wherein each action included in the sequence is classified as either relevant or irrelevant to attaining a result; obtaining an automation script, the automation script including a sub-sequence of said sequence of classified recorded actions, wherein each action included in the automation script is classified as relevant; executing at least a portion of the automation script; in response to a failure of a first action included in the automation script to execute: reclassifying at least one action of said sequence of classified recorded actions; and in response to a determination that the first action execute executes successfully after the reclassifying, revising the automation script based on the reclassifying.