JavaScript and Web Services | Experience Community
Skip to main content
Question

JavaScript and Web Services

  • September 29, 2026
  • 1 reply
  • 24 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!

1 reply

vgayraud
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+66
  • 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.