How do I turn on battery saver automatically?

Go to Settings, go to Battery, tap on the Battery saver button (not the toggle button) from there you can set Battery saver mode to enable automatically at 15%, 5% or never.