JavaScript and Web Services | Experience Community
Skip to main content

JavaScript and Web Services

  • September 29, 2026
  • 2 replies
  • 44 views

Hi,

I have a technical question regarding custom JavaScript and Web Services in Qualtrics.

We know that a Web Service element in Survey Flow can make authenticated API calls using credentials stored securely in Qualtrics. However, as far as I understand, those Web Service calls are tied to Survey Flow execution and therefore normally require the respondent to leave/submit the current page.

Is there or will be any supported mechanism that allows custom JavaScript running inside an active survey question to trigger a server-side HTTP request through Qualtrics, using a credential stored in Qualtrics, and receive the response asynchronously without navigating away from the current page?

Our use case would be a real-time LLM chat:
survey JavaScript → Qualtrics server-side request → LLM API → response back to the same survey page.

Importantly, we do not want the API credential to be exposed to the respondent's browser.

If such a mechanism exists, I would also be interested to know what authentication, rate-limiting and respondent/session-level controls are available to prevent arbitrary calls from the browser.

Thanks!

2 replies

vgayraud
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+67
  • QPN Level 8 ●●●●●●●●
  • September 30, 2026

Hi,

In short, no. Survey javascript, whether in questions or headers/footers runs entirely in the browser.

Maybe you could imagine a solution where you’d host your own proxy allowing holding the LLM key and call it via a web service survey flow element (where your credentials wouldn’t be exposed) to retrieve a limited scope, short-lived and budget-capped session token that you could store in an ED field and pipe in your question javascript.

You’d need to build in the controls you want.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • October 7, 2026

I would do this by having a gateway server between your active survey question and LLM API.

 

Survey Question → Gateway Server → LLM API → Gateway Server → Survey Question

This server would basically check if the request is coming from an active survey session, match the IP etc. If the request is valid, it would forward to the LLM API with your API keys, get the response and send it back to Qualtrics. If it isn’t valid, it would just fail.