Setting up the tracker
The simplest way to load Roundtable across your whole survey is through the Look and Feel settings. This injects the tracker on every page so you don’t have to add it to individual pages.- In Survey Flow, add an Embedded Data element at the top of the flow and create a field named
__js_ROUNDTABLE_SESSION_IDwith no value. The__js_prefix is required (see the note below). - Open your survey and go to Look and Feel → General → Header.
- Click the source/HTML (
<>) button to edit the header as raw HTML. - Paste the following, replacing
SITE_KEYwith your own site key from the Integration script dashboard page (the public key starts withpub-).
data-tags value (tag1,tag2) are placeholders — replace it with your own comma-separated tags, or remove this line if you don’t need tags.

RESPONDENT_ID is the embedded data field holding your identifier for the respondent (for example, a panel or participant ID passed in the survey link). Replace it with whichever field holds your identifier (or leave it blank if you don’t have a respondent ID).
The
__js_ prefix is required. To set embedded data from JavaScript, Qualtrics requires the field declared in Survey Flow to be prefixed with __js_, while the call to setJSEmbeddedData uses the name without the prefix ("ROUNDTABLE_SESSION_ID").Retrieving session data
The script above saves the current session ID into the__js_ROUNDTABLE_SESSION_ID embedded data field. To pull the risk score and flags for a respondent back into your survey, you can call the session report endpoint from a Qualtrics Web Service task.
1. Call the report endpoint with a Web Service
Roundtable exposes the session report through a query-parameter route:- Method:
GET - URL:
https://api.roundtable.ai/v1/sessions/report - Query parameter:
sessionId=${e://Field/__js_ROUNDTABLE_SESSION_ID} - Header:
Authorization=Bearer YOUR_SECRET_KEY
Authorization header (the secret key starts with sk-).
2. Save the response to embedded data
The API returns the risk score, risk explanation, recommended action, biometric checks, and device checks for the session. To save any of these fields into embedded data, add them to the Embedded Data section of the Web Service element. Set the name and value for each field to match the JSON path of the field in the API response. For example:- risk_score =
risk_score - biometric_checks.programmatic_typing =
biometric_checks.programmatic_typing


