Master the bracket notation and structured table approach for creating Word-based survey specifications. Built by Pirai AI's survey automation experts.
Word Specification Format is a standardized way to write survey documents that can be automatically converted to Qualtrics Advanced Format. This format uses bracket notation and structured tables to define survey elements in a natural, document-friendly way.
[TYPE] to define question types and
special elementsEvery Word specification document should follow this basic structure:
[INTRO] Your survey introduction text here... [Page Break] Q1. Your first question text here? [QuestionType] [Answer choices table] [LOGIC IF Q1=1] Q2. Your conditional question here? [QuestionType] [Answer choices table]
[INTRO] section with survey description[LOGIC IF...]
[INTRO] - Survey introduction text[Page Break] - Force a new page[LOGIC IF condition] - Conditional display logic[TERMINATE] - End survey for specific responses[Statement] - Matrix question statements[Scale Point] - Matrix scale points[Options] - Form field options[SingleAnswer]Use Case: When respondents can select only one option from a list.
Q1. Which of the following best describes your role? [SingleAnswer] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Manager │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Individual Contributor│ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Executive │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Other │ 99 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘
[MultipleAnswer]Use Case: When respondents can select multiple options from a list.
Q2. Which of the following tools do you use regularly? (Select all that apply) [MultipleAnswer] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Qualtrics │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ SurveyMonkey │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Google Forms │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Microsoft Forms │ 4 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Other │ 5 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘
[Matrix, SingleAnswer]Use Case: Grid-style questions with statements rated on a scale.
Q3. Please rate your agreement with each statement. [Matrix, SingleAnswer] [Statement] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ The tool is easy to use│ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ The tool saves time │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ The tool is reliable│ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ I would recommend it│ 4 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘ [Scale Point] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Strongly Disagree │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Disagree │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Neutral │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Agree │ 4 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Strongly Agree │ 5 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘
[Statement] table
first, then [Scale Point] table second. The order matters for proper conversion.
[SingleLine]Use Case: Short text responses like names, numbers, or brief answers.
Q4. What is your current job title? [SingleLine]
[Essay]Use Case: Long-form text responses with multiple lines.
Q5. Please describe your experience with survey automation tools. [Essay]
[Form]Use Case: Multiple related text fields in one question.
Q6. Please provide your contact information. [Form] [Options] ┌─────────────────────┐ │ Full Name │ ├─────────────────────┤ │ Email Address │ ├─────────────────────┤ │ Phone Number │ └─────────────────────┘
[RankOrder]Use Case: When respondents need to rank items in order of preference.
Q7. Please rank the following features in order of importance. [RankOrder] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Ease of Use │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Speed │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Accuracy │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Cost │ 4 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘
[ConstantSum]Use Case: When responses must total a specific number (e.g., 100%).
Q8. Please allocate 100 points across the following categories based on importance. [ConstantSum] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Product Features │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Customer Service │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Pricing │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Brand Reputation │ 4 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘
[DB]Use Case: Display information, instructions, or thank you messages.
Q9. Thank you for completing our survey! [DB]
Most question types use a standardized 3-column table format:
| Column 1: Choice Text | Column 2: Recode Value | Column 3: Conditions/Logic |
|---|---|---|
| Answer option text | Numeric code (1, 2, 3...) | Optional: [TERMINATE], [LOGIC IF...] |
| Choice 1 | 1 | |
| Choice 2 | 2 | |
| None of the above | 99 | [TERMINATE] |
[Options] ┌─────────────────────┐ │ Field Name 1 │ ├─────────────────────┤ │ Field Name 2 │ ├─────────────────────┤ │ Field Name 3 │ └─────────────────────┘
[Statement] [Table with statements] [Scale Point] [Table with scale points]
[LOGIC IF...]Use conditional logic to show questions based on previous responses:
[LOGIC IF Q1=1] Q2. Since you selected "Manager", how many people report to you? [LOGIC IF Q1=1 AND Q2>5] Q3. As a manager with a large team, what is your biggest challenge? [LOGIC IF Q1=2 OR Q1=3] Q4. What tools do you use most frequently?
= - Equals (Q1=1)> - Greater than (Q2>5)< - Less than (Q3<10)< /li>
AND - Both conditions must be trueOR - Either condition can be true[TERMINATE]End the survey for specific responses by adding [TERMINATE] in the third column:
Q1. Are you currently employed? [SingleAnswer] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Yes, full-time │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Yes, part-time │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ No │ 99 │ [TERMINATE] │ └─────────────────────┴─────────────────────┴─────────────────────┘
[Page Break]Force a new page in your survey flow:
Q1. Your first question here... [Page Break] Q2. Your second question on a new page...
Here's a complete example showing proper formatting:
[INTRO] Thank you for participating in our survey! Your feedback helps us improve our product and enhance your experience. This should only take a few minutes to complete. [Page Break] Q1. What is your current role? [SingleAnswer] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Product Manager │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Developer │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Designer │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Other │ 99 │ [TERMINATE] │ └─────────────────────┴─────────────────────┴─────────────────────┘ [LOGIC IF Q1=1 OR Q1=2] Q2. Which tools do you use regularly? (Select all that apply) [MultipleAnswer] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Jira │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Slack │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ GitHub │ 3 │ [LOGIC IF Q1=2] │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Figma │ 4 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘ Q3. Please rate your satisfaction with each aspect. [Matrix, SingleAnswer] [Statement] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Ease of use │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Performance │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Reliability │ 3 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘ [Scale Point] ┌─────────────────────┬─────────────────────┬─────────────────────┐ │ Very Dissatisfied │ 1 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Dissatisfied │ 2 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Neutral │ 3 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Satisfied │ 4 │ │ ├─────────────────────┼─────────────────────┼─────────────────────┤ │ Very Satisfied │ 5 │ │ └─────────────────────┴─────────────────────┴─────────────────────┘ Q4. Any additional comments? [Essay] Q5. Thank you for your feedback! [DB]