Write logic with AI.

Glow's AI builder can write survey logic for you: screen-outs, skip logic, display logic, tags and more. This is called AI Logic, and it lives in AI Mode in the Build tab.

Three ways the AI adds logic

  • Inferred from your brief. The AI recognises common research patterns and adds logic where it is normally expected, even if you did not ask. A screener is likely to get an exit, and follow-up questions display logic.
  • Specified in your prompt. You tell the AI exactly which rule to add. This works best.
  • Imported from Word or PDF. If the survey document you upload contains logic instructions, Glow imports the questions and any supported logic with them.

Ask the AI for a specific rule

  1. In the Build tab, click AI Mode in the Edit Survey panel.
  2. In the prompt box at the bottom of the left panel, describe the rule. Name the question numbers and the answer options.
  3. Press Enter to send.
  4. When the survey regenerates, check the rule on the question.

The AI builder with an exit prompt in the chat on the left and Q3 expanded on the right, showing the If... Then... Exit survey rule

Example prompts, using the demo survey's questions:

  • Exit if "Soft drinks" is not selected at Q5.
  • If the respondent selects "Definitely would not buy" at Q23, jump to S6.
  • Display Q22 only if the respondent has the tag "Heavy drinker".
  • Add least-fill logic at Q9 so each respondent keeps only 2 of the "Rate" brand tags.
  • Remove the "jump to" logic from Q23.

Check the logic the AI added

  1. Look for the branching-arrow icon, which marks questions with logic.
  2. Expand the question. The logic appears underneath, highlighted with an orange ribbon.
  3. If a rule is missing or wrong, send a clear, explicit follow-up prompt describing the logic you want.

A question expanded in the AI builder with its jump to S3 rule under the orange ribbon

Undo a change

  1. In the conversation history on the left, find the blue message bubble for the version you want.
  2. Click Load.

Your next prompt works from the version you loaded most recently, not the latest one.

What the AI can and cannot write

AI Logic supports:

  • Display logic on questions, statements, choices and variables.
  • Action logic: submit, exit, quality exit, jump to a question or section, add or remove tags, add least filled tags, retain least filled tags, set variables and add to a list.
  • Conditions based on whether a respondent selected an option, was shown an option, answered a question or has a tag, among others.

AI Logic does not support hide groups (hiding a whole group of questions). Add that in the logic editor of a question.

Good to know

  • Inferred logic is usually right, but the AI can miss or misread something, especially edge cases. Check every rule before you launch.
  • Use the logic editor directly for precise control over complex or edge-case conditions.
  • The AI can generate large volumes of repetitive, predictable logic (tens, hundreds or thousands of rules) in minutes.
  • AI Mode is disabled once a survey has active channels or captured responses.
  • Changes you save in the manual editor are not carried into AI Mode. If you return to AI Mode and click Save and Exit, the loaded AI version overrides what you saved manually.

Common questions

Can AI write my survey logic for me?
Yes. In Glow's AI builder (AI Mode), describe the rule in the prompt box. AI Logic also infers logic from your brief and imports logic from a Word or PDF survey.

How do I ask the AI to screen out respondents?
Type the rule in the AI prompt box with the question number and option, such as "Exit if the respondent selects 'Under 18' at Q2". For attention checks, ask for a quality exit, such as "Quality exit at Q6 unless the respondent selects only 'Dog'".

The AI added logic I did not ask for. Why?
AI Logic infers logic from your brief using common research patterns, such as exiting respondents who fail a screener. To remove a rule, send a follow-up prompt such as "Remove the 'jump to' logic from Q23".

The AI got my logic wrong. How do I fix it?
Send a clear, explicit follow-up prompt in the AI builder describing the logic you want. To go back, click Load on the blue message bubble for an earlier version.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.