How would you create a playlist for a user after they listen to a single song? (in an app like Spotify)

How would you create a playlist for a user after they listen to a single song? (in an app like Spotify)