Prompting & Workflow Best Practices (Qualtrics)
Use these practices when you program surveys in Metaforms. Explicit, scoped instructions produce more accurate questions, reduce debugging, and shorten programming time.
These patterns come from real Metaforms projects.
Core principle: state the outcome and the constraints
Describe the result you want before generation starts. Name the questions in scope, the structure to follow, and what must stay unchanged.
Avoid
Prefer
Generate everything and fix errors later
Generate a small batch, then review it
Short instructions
Explicit instructions
Debug after every generation
Type the change in the prompt box
Use the prompt box for a tiny fix
Edit manually when a fix takes 5–10 seconds
Leave requirements implied
State the constraints directly
Prompt examples
These examples are Qualtrics programming tasks you can paste into the prompt box. Each one names the questions, the Qualtrics behavior, and what must stay unchanged. Open a tab, then copy the prompt at the bottom.
Generate the next batch of questions exactly as written in the questionnaire.
Constraints
Name the question range to generate.
Add settings the questionnaire doesn't state, such as force response.
Avoid
Do not change questions that were already generated.
Prompt
Generate Q12–Q14 from the questionnaire. Force response on all three.
Correct the question type or validation on questions that are already in the survey.
Constraints
Match each question type to the questionnaire.
Keep the existing question text, numbering, and answer choices unless the prompt says to change them.
Avoid
Do not regenerate the questions or edit other blocks.
Prompt
Update Q15–Q17 to a numeric list, as specified in the questionnaire. Apply numeric validation.
Show or hide a question based on an earlier answer.
Constraints
Add display logic only on the question you name.
Keep the question text and answer choices unchanged.
Avoid
Do not add branch logic in Survey flow unless the prompt asks for it.
Prompt
Add display logic so Q8 is shown only when Q7 is Yes. Do not change the question text or answer choices.
Store an answer in embedded data and pipe it forward.
Constraints
Use the embedded data field named in the prompt.
Pipe from the source question only.
Leave the visible question text and choices unchanged.
Avoid
Do not change other embedded data fields or Survey flow blocks.
Prompt
Generate S7b with hidden variable hS7bx1. Pipe the values from S7b into hS7bx1.
End the survey for respondents who don't qualify. Metaforms adds a branch to Survey flow, right after the Screener block, with an End of Survey element inside it.
Constraints
Name the screener questions and the answers that disqualify a respondent.
Say where the branch goes in Survey flow.
Say how the survey should end, for example as a screen-out.
Avoid
Do not change the screener questions or the order of other blocks.
Prompt
In Survey flow, add a branch right after the Screener block. If S1 is "Under 18" or S3 is "None of these", end the survey as a screen-out. Do not change the screener questions.
Format respondent instructions on questions that are already created.
Constraints
Change only the respondent instructions.
Keep question text, question type, and answer choices unchanged.
Avoid
Do not regenerate the questions.
Prompt
Add () to the respondent instructions and add a br before each respondent instruction.
Update questions that sit inside a loop.
Constraints
Edit only the questions you name.
Keep those questions inside the existing loop.
Avoid
Do not move the questions out of the loop or edit other loop fields.
Prompt
Update Q21–Q23 inside the loop.
Last updated
Was this helpful?