Usually, (on a good day) I know what I want to try right away after hearing the track for the first time. If this doesn’t work out then a more exploratative process ensues. Multiple takes are always necessary from which a comp can be made. Alternatively, if the track is being programmed then it’s a longer slower process of layering the parts. Often it’s a combination of both.