survey.questionnaire_clarifications run (newest-wins per survey).
The durable step analyzes UTF-8 questionnaire prose (tip file bytes) with a single streaming LLM call, grounded by a Questra HCL authoring-knowledge preamble. Questions stream onto the run as they are identified. PDF / binary questionnaires are not text-extracted yet — upload plain text (or extractable UTF-8) for probing. Requires AI Gateway credentials (AI_GATEWAY_API_KEY).
Start a probe
Subscribe to identified questions
stream_url)
- Response:
application/x-ndjson— oneQuestionnaireClarificationsStreamChunkJSON object per line - From the start: omit
startIndexor pass0 - Reconnect / tail:
?startIndex=N(positive or negative) while the World retains the run
Chunk kinds
See Live updates for the full chunk schema and an example payload.
Answer and follow-up
While or after the pass:GET .../questionnaire/clarifications— tip session (side-effect free)PATCH .../questionnaire/clarifications/{clarificationId}—{ "kind": "answer", ... }or{ "kind": "skip" }- When open clarifications are cleared and
probe_exhaustedis true,POST .../clarificationsagain for another pass, or proceed to programming whenstatusiscomplete
.../questionnaire/revisions/{revision}/clarifications are read-only.
Concurrency
Newest-wins: a new probe cancels the priorsurvey.questionnaire_clarifications run for that survey. Drop the old stream and subscribe to the new stream_url.
Tip reconciliation
Answers and skips are not published on the run stream — only identification during the probe pass.