Automations - moving completed tasks to a completed tab

New user here, how do you set up an automation to move completed projects from a main view tab to a completed tab?