Embed ChatGPT in a survey | XM Community
Question

Embed ChatGPT in a survey

  • 20 November 2023
  • 5 replies
  • 455 views

Badge +1

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!


5 replies

Userlevel 7
Badge +36

@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!

 

Userlevel 7
Badge +22

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

Badge +1

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?

Badge +1

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

Badge +1

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