Random image generation for survey with many parameters | Experience Community
Skip to main content

Random image generation for survey with many parameters

  • March 12, 2026
  • 1 reply
  • 16 views

I am in need of support to program a survey that uses the Chatgpt API within survey flow to generate and display images with specified parameters (eg, topic, source, tone). We need to generate these parameters at random and store them as variables/embedded data, then use those parameters to generate images in real time in the survey. This needs to be automated because we have many parameters and hence many possible images.

 

Alternatively, we need to be able to pull images stored in a website as a function of the parameters we randomly draw from. (It seems text only would be much easier but we need images)

 

We have not been able to find a feasible workflow for either option so would be grateful for any ideas on how to do it or support.

 

Thank you,

c

1 reply

Lpena
Qualtrics Employee
Forum|alt.badge.img+3
  • Qualtrics Employee
  • March 26, 2026

It sounds like you’re diving into some pretty cool advanced customization! Integrating the ChatGPT API to pull dynamic images into your survey flow is a great way to keep things engaging.

If you're looking to do this in real-time, using the Web Service element in your Survey Flow is usually the best bet. You can use random number generators like ${rand://int/1:10} to set your parameters as Embedded Data, then pipe those into your API call. Just a heads-up to keep an eye on those 18-second timeouts for external calls! Alternatively, if you want to avoid the API complexity during the live survey, hosting pre-made images on your own site and using Piped Text to construct the URLs based on those random parameters is a solid, "lag-free" workaround. 🎨

For more technical details on getting that connection set up, I'd definitely recommend checking out this support page on Web Services. If the API starts giving you trouble or the data isn't mapping back to your fields correctly, it might be worth having a specialist take a look at the configuration. You can reach out for a deeper review by logging into the https://support-portal.qualtrics.com/ and opening a ticket under the technical support tile.