If you want to learn improvisation it helps to also investigate "why" - why this particular rhythmic figure (e.g as shown in the OP article), why this chord voicing (e.g. block chords? Quartal harmony? Drop-2?), why this melody (e.g. ascending or descending? Arpeggiating the chords or "playing outside"?) etc etc
Edit: One more thing: it's OK to improvise with the help of something like iReal Pro, but nothing replaces improvising with real humans, find a group of like minded people that would like to play with you
As an aside, music skill (and many other skills) can be divided into Reading and Writing. Reading consists of either actually reading sheet music, or Playing by Ear. Writing is executing what is in your mind. In the context of improvisation, it's coming up with those things to execute in the first place.
To be honest, I am a good Reader, but a poor Writer myself, and still in the beginning of this part of my journey. I love listening to jazz, and playing along, but devising my own melodies is almost beyond the current me. But what's great about music is that every day you practice is one that you get better.
(Okay, technically a song is a pattern. But it's a really nice one.)