@nickh For the exercises, for example playing off the triads, I did think about it before playing, but then just played. Normally I look at the changes and play the first chorus or so, then play whatever direction I hear.
I have not been playing soprano for very long, but I have played classical piano since I was a boy, and I also play jazz guitar,.An understanding of the harmony really frees you up to play. I did give some suggestions in an earlier thread regarding using triads over ii V I, but you could also simplify it down to a major seventh arpeggio built on the IV chord for the ii V and then a major seventh arpeggio over the I chord. So in G major, the Bb instrument key of the harmony, you would play C major seventh (B, C, E, G) over A minor 7 and D dominant 7, giving 9, 3, 5 and 7 over A minor 7 and 6, 7, 9, 4 over D7, i.e. A minor 9 without the root, and D 13 sus 4 without the 5 and 3. The G major 7 over the I chord obviously outlines the chord tones. Once you can play this in time, then experiment with changing the rhythm, adding chromaticism and enclosures and you will be surprised how quickly you can construct pretty authentic sounding lines.
After you have been playing this for a while, you will find you just play as Aldevis said,.
Hope this helps, Bill