What you need to know when you start automation testing from scratch?

Can anyone please provide me some knowledge regading points to be taken on account when you start automation testing from scratch.