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

Embed ChatGPT in a survey

  • November 20, 2023
  • 5 replies
  • 1215 views

Forum|alt.badge.img+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

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+44
  • 1549 replies
  • November 20, 2023

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

 


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • November 20, 2023

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


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • November 20, 2023
rondev wrote:

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?


Forum|alt.badge.img+1

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


Forum|alt.badge.img+1
  • 2 replies
  • February 27, 2024

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