The order of actions is the natural. How could it work with a spreadhseet without knowing which one?
But more importantly, its explicitly expained in the demo itself, just above the input where you paste the spreadsheet id.