You should have four flow variables :
peopleAmount (string type) peopleAction (string type) imageStyle (string type) outputUrls (array type)
After creating your prompt (which saves the answers to the first three variables), add this code to the next node to get the urls of the images. They will be stored to outputUrls.