Authoring workflow
How a survey gets from a brief to a fielded questionnaire. The expected flow when working with the AI co-author, and what the survey programmer is responsible for.
The expected flow
A new survey typically moves through four stages:
- Brief in, draft out. The AI generates a first draft of the YAML
from a written brief — questionnaire structure, question text, options,
skip logic. The output is a complete
.dslfile. - Review in the editor. The survey programmer opens the draft in the editor and reads it top to bottom. Diagnostics flag anything that parses but is suspicious (deprecated syntax, missing list references, conflicting properties).
- Iterate in preview. The preview pane renders the survey live. Test-assist mode simulates respondent answers so routing branches and loops can be exercised without manually clicking through.
- Push to field. Once the preview behaves correctly across all the relevant paths, the survey is published and respondents can start.
The AI is a fast first pass. Steps 2 and 3 are the survey programmer’s responsibility, and they’re where most of the value is added.
What the AI is good at
- Mechanical translations from brief to YAML — taking a list of questions and producing a parseable file.
- Filling in standard scaffolding: terminate scripts, “None of the above” anchored options, randomisation flags, list references.
- Writing routine routing — “if not selected then terminate”, “if selected pipe into next question”.
- Mirroring an example. If a brief contains a sample question that works, the AI can reliably produce more in the same shape.
What the AI is bad at, and what to check
- Logical correctness of complex routing. A nested
if/elif/elsewith five branches is hard to verify by eye; the AI may produce something plausible but wrong. Test these in preview with realistic answers. - Quota and stratification logic. If the brief says “60% female, 40% male, age-balanced”, the AI’s first pass typically gets the shape right but the exact rules wrong. Double-check.
- Brand-specific or domain-specific terminology. The AI doesn’t know the client’s preferred phrasing.
- Inferring intent from a vague brief. “Add a screener for professionals” is too open. Specify the screening criteria.
A good rule: trust the structure, verify the logic. The shape of a multi-page survey with loops and grids is something the AI gets right almost always; the conditions inside scripts deserve the survey programmer’s careful eye.
Reviewing a draft
A useful order:
- Read the file top to bottom once. Don’t run anything yet. Get a sense of the shape — how many pages, where the loops are, what the exit conditions look like.
- Check the screener. Most surveys live or die on screening. Run the preview with a realistic qualified respondent and a realistic unqualified one, end to end.
- Walk every routing branch. For each
if/elif/elseblock, verify that at least one realistic answer reaches each branch. - Check loops with edge cases. Zero iterations, one iteration, the maximum allowed iterations.
- Verify export column names for any questions that drive downstream analysis. The naming is mechanical (see Column naming) but the AI occasionally produces a qid that breaks expected naming.
When to hand-edit vs ask the AI to redo
Hand-edit when the change is local and obvious — a typo, a swapped
code, a missing anchor: True.
Ask the AI to redo when the change is structural — splitting a question into multiple, restructuring a loop, changing how options are masked. Asking the AI to do the structural work is faster and produces fewer inconsistencies.
What this manual is for
This manual is the source of truth for both the AI co-author and the human survey programmer. When a draft contains something that looks unfamiliar, this manual is where to check the convention. When the AI produces something that doesn’t match the manual, the AI is wrong; file a correction.
See also
- Quick start — a minimal end-to-end example.
- Core concepts — the runtime model.
- Diagnostics — error messages and what they mean.
- Test-assist mode — simulating respondent answers.