Embed ChatGPT in a survey | XM Community
Skip to main content

Hello,

I wonder if there is a way I can incorporate ChatGPT into a survey. The study I am running right now requires respondents to write a prompt to ChatGPT and we want to embed ChatGPT into our survey so that respondent can see the output generated by ChatGPT based on their own prompt.

We have access to ChatGPT API and are just curious whether this is possible to do. If this is not possible, is there any other ways we can try to achieve our goal?

Thank you very much!

@Gelatopew 

Yes, it is possible using ChatGPT AI but would require some amount of scripting.

I think you can try asking ChatGPT regarding the code required and you should be able to achieve this.

Hope it helps!

 


We can do this by using API and custom coding. Please check the demo here.


We can do this by using API and custom coding. Please check the demo here.

Thanks, your demo looks amazing! Can I ask how did you achieve it in Qualtrics?


@rondev how did you manage to get this to work?


Hi - I integrated chatGPT into a qualtrics survey by creating a question with a bunch of javascript, and dynamically altering page properties.  The resulting conversation is stored as JSON in embedded data. Here’s a demo survey leveraging the technique. I posted the code on another thread. Hopefully it’s helpful.

 


Leave a Reply