Formatting API Response & Making New Questions? | XM Community
Skip to main content

Hello,

 

I have integrated ChatGPT into my Qualtrics survey and have a few things I need help with. When the API from ChatGPT is called using a Web Service in the survey flow and I get a response it is saved into an embedded data. On the next block I then display the response from ChatGPT. There is no formatting with this response, and if ChatGPT includes formatting (bold, returns, etc.), they show up as their codes rather than formatting (**, etc.). Is there a way to reformat this somehow?

 

Additionally, and a bigger fish to fry: Is there a way I can, turn a ChatGPT response into a new question in real time as a user is filling out the survey. Assuming the response is formatted a certain way each time, is this possible to create?

 

For example, I have a page at the end of a quiz that says “What question do you want more examples of?” (showing questions asked on the previous block). The user selects the question/s and ChatGPT is called through web service, and returns a specifically formatted, new question:

Question Text?:

A: Answer 1 (correct)

B: Answer 2

C: Answer 3

D: Answer 4

Can I turn this into a multiple choice question for the user to then attempt to answer?

 

Thanks in advance for the help.

Yes, this can acheieved with Open AI chat GPT integration and some custom code. Please check the below video:

 


Leave a Reply