I use the same approach to automate processes. The first time, I do it manually. The second time, I still do it manually, but I think "Hey, I did this once before. This is looking like something I maybe ought to automate."
The third time I automate it. By then, I understand it well enough to have good odds on being able to do the automation successfully.