Library › Customer Support & Success AI › Customer success managers

Score a reverse-worded pulse question and return JSON

  • For Customer success managers
  • You practice Setting limits and rules
  • Time about 5 minutes
  • Level Advanced

About this exercise

Return one code block with a JSON object with exactly the keys scores, n and average. The statement is negatively worded, so reverse-score: Strongly agree = 1, Agree = 2, Neutral = 3, Disagree = 4, Strongly disagree = 5. scores lists the numbers in the order received, skipping blank answers. n is how many scores. average is the mean to one decimal. Write no more than 6 words outside the block.

Common mistakes when you ask AI for this

  • Scoring it the normal way. The AI gives Strongly agree a 5. Try: Say: "The statement is negative, so reverse-score: Strongly agree = 1."
  • Counting the blank. The AI treats a blank as 0 or counts 6 responses. Try: Say: "Skip blank answers; n counts only real answers."
  • Adding prose. The AI explains the scoring. Try: Say: "One code block, no more than 6 words outside."
  • Letting the block sprawl. The AI pretty-prints and adds extra lines. Try: Say "keep the block under N lines".

What a strong prompt includes

  • Gives the keys
  • States reverse scoring
  • Skips blanks
  • Asks for one decimal
  • Asks for one code block
  • Keeps the block short
  • Limits text outside the block

Practice this now ↑

Related exercises