This article explains how to use AI Build in the calculation builder to create calculation tiles, either by describing the calculation in plain English or by pasting a formula, and how to check, test and save the result.
AI Build in the calculation builder creates calculation tiles for you. You can describe the calculation in plain English, or paste a formula you already have, and AI Build places the matching answer, score, operator and bracket tiles in the calculation box. You then check the result, test it and save it.
AI Build is available on the Result Calculation and Score Calculation boxes, and on the Validation and Validation Message boxes when the calculation type is a validation.
AI Build only uses the tiles that are available in the calculation builder, and it never writes SQL directly. If a request is unclear, or something cannot be built from the available tiles, AI Build asks you a question instead of guessing.
On this page
1. Before you start
- Select Use Calculations in the assessment's General Settings.
- Add the calculation in the position where it should run. A calculation can only use answers from questions that appear before it.
- Make sure numeric questions use the Number or Decimal answer format, and date questions use the Date Format answer format.
- Complete your Test Response with realistic answers so that you can check the result with the Test button.
- If you are new to calculations, read Setting Up Calculations for Assessments and Common Calculation Examples.
2. The AI Build window
Click AI Build under a calculation box to open the AI Build window. The numbers in the screenshot match the table below.
| # | Field | What it does |
| 1 | Conversation (You / AI) | Shows each prompt you have run and the reply from AI Build. It appears after your first Run. When the calculation box already has tiles, a Current calculation area also appears at the top of the window, showing those tiles. |
| 2 | Proposed calculation | The tiles AI Build suggests. They are not added to your calculation until you click Apply to Calculation. |
| 3 | Your Prompt | Type your description or paste a formula here. The box is cleared after each Run. |
| 4 | An answer | Lists the answers in the assessment, for example "S1 SS1 Q10-A1-Annual Revenue". Selecting one inserts its exact name into Your Prompt. |
| 5 | A score | Lists the percentage, average and total scores for the assessment, each section, subsection and theme. Selecting one inserts its exact name into Your Prompt. See Use the exact names. |
| 6 | Operators list | Lists the operators and functions you can use, such as + - * / ( ), And, Or, Case When and Round. Selecting one inserts it into Your Prompt. |
| 7 | Close | Closes AI Build. Proposed tiles that you have not applied are discarded, and the calculation is not changed. |
| 8 | Start Again | Clears the conversation so that you can start a new request. Tiles already in the calculation box are not removed. |
| 9 | Apply to Calculation | Copies the proposed tiles into the calculation box and closes AI Build. It is available once AI Build has proposed a calculation. The calculation is not saved until you click Save. |
| 10 | Run | Sends your prompt to AI Build. AI Build replies and shows the Proposed calculation. |
3. Option 1: Describe the calculation
The animation shows the whole process for a simple calculation: profit, calculated as Annual Revenue minus Annual Expenses.
- Open the calculation and click AI Build under the box you want to fill.
- In Your Prompt, describe what the calculation should do, for example: "If the Strategy theme is 70% or more and the Culture theme is below 50%, show 'Strong strategy, but culture needs work'. Otherwise show 'Mixed results'."
- Click Run. AI Build replies with a short explanation and shows the Proposed calculation as tiles.
- Check that the tiles match what you asked for, including every number.
- If something needs changing, type the change in Your Prompt and click Run again. AI Build remembers the conversation, so you only need to describe the change.
- Click Apply to Calculation, then follow Check, test and save below.
Tips for a good description
- Say what the result should be, for example "show the text 'High'", "give 10 points" or "show it as a number out of 5".
- Say which kind of score you mean. "70%" means a percentage score, "20 points" means total points, and "an average of 4" means average points per question.
- List bands from highest to lowest, and say what should happen otherwise ("otherwise 0 points").
- Say how the result is used. If the calculation controls whether a question or section is shown, say so. AI Build then returns 'true' or 'false'.
- Build complex calculations in steps. Ask for the main formula first, then add extra parts (rounding, a zero check, another band) in follow-up prompts.
4. Option 2: Paste a formula
If you already have the calculation as a formula, paste it into Your Prompt and click Run. AI Build converts it into tiles and keeps your numbers, operators and brackets as written.
AI Build accepts:
-
A Case When formula, with each input named in square brackets, for example
[Leadership Score]or[Annual Revenue]. - An Excel formula. Explain what each cell reference means, for example "B2 is Annual Revenue, B3 is Annual Expenses".
- A formula prepared with an AI assistant. You can use any general-purpose AI assistant your organization allows, for example ChatGPT, Microsoft Copilot, Google Gemini or Claude. Ask it for a single CASE WHEN expression that uses simple functions such as ROUND, ABS, CAST, DATEDIFF and GETDATE, and give it the names of your inputs. Percentage scores in Brilliant Assessments are decimals (60% is 0.60), so ask the assistant to compare scores with decimals.
Note: Do not paste respondent data or other personal information into an external AI assistant. Only the names of your questions and scores are needed.
To replace an existing calculation with a pasted formula, start the prompt with "Replace the calculation with:".
5. Use the exact names
AI Build matches the names in your prompt to the answers and scores in your assessment. It usually recognizes plain wording such as "revenue" or "Leadership", but the most reliable way is to insert the exact name:
- In the AI Build window, open the An answer or A score dropdown.
- Select the answer or score. Its exact name is inserted into Your Prompt.
The A score dropdown lists three kinds of score for the assessment, each section, subsection and theme:
| Listed as | Inserted into Your Prompt as | What it returns | Example |
| % (for example "S2 Leadership %") | "S2 Leadership Score" | The percentage score, as a decimal | 66.7% is returned as 0.667 |
| Total (for example "S2 Leadership Total") | "S2 Leadership Total Score" | The points achieved | 20 (out of 30) |
| Average (for example "S2 Leadership Average") | "S2 Leadership Average Score (points)" | The average points per question, on the answer scale | 3.3 (on a 1 to 5 scale) |
Tip: For calculations based on average points, insert the score from the A score dropdown (for example "S2 Leadership Average") rather than describing it as an "average rating". This makes sure AI Build uses the Average score.
6. Example prompts
Each example was tested with the wording shown. Replace the names with your own answers and scores.
| Use case | Box | Prompt |
| Label from two theme scores | Result | "If the Strategy theme is high (70% or more) and the Culture theme is low (below 50%), show 'Strong strategy, but culture needs work'. If both are 70% or more, show 'Well balanced'. Otherwise show 'Mixed results'." |
| Compare two sections | Result | "If Section 2 and Section 3 are tied, or within 5% of each other, show 'Even profile'. Otherwise show 'Leadership-led' if Section 2 is higher, or 'Operations-led' if Section 3 is higher." |
| Show or hide a section | Result | "I only want to show a Development Plan section if they score below 60% in Leadership. Can you make the calculation I need for the condition?" |
| Score as a number out of 5 | Result | "Show the Leadership score as a number out of 5, with 1 decimal place." |
| Label from total points | Result | "If they achieved 20 points or more in Leadership, show 'Strong', otherwise 'Developing'." |
| Label from average points | Result | "If S2 Leadership Average is 3 or more, show 'High', otherwise 'Not yet'." (insert "S2 Leadership Average" from the A score dropdown) |
| Warning when expenses exceed revenue | Validation | "Warn the respondent if their Annual Expenses are more than their Annual Revenue." |
| Message for a validation | Validation Message | "Message: Your expenses are higher than your revenue by $X. Please check your figures. X is expenses minus revenue." |
7. Example formulas
| Use case | Box | Formula to paste |
| Feedback from two section scores | Result | CASE WHEN [Leadership Score] < 0.60 AND [Operations Score] < 0.60 THEN 'Both areas need development.' WHEN [Leadership Score] < 0.60 AND [Operations Score] >= 0.60 THEN 'Operations is strong, focus on leadership.' WHEN [Leadership Score] >= 0.60 AND [Operations Score] < 0.60 THEN 'Leadership is strong, focus on operations.' ELSE 'Excellent performance across both areas.' END |
| Weighted score shown as a percentage | Result | ROUND(((S2 Leadership Score * 0.6) + (S3 Operations Score * 0.4)) * 100, 1) |
| Warning when expenses exceed revenue | Validation | CASE WHEN [Annual Expenses] > [Annual Revenue] THEN 'true' ELSE 'false' END |
8. Changing an existing calculation
When a calculation already has tiles, AI Build shows them under Current calculation and uses them as the starting point. Describe only what should change, for example:
- "Round the result to 1 decimal place."
To start over, click Start Again, or begin your prompt with "Replace the calculation with:".
9. Check, test and save
AI Build creates the tiles only. Review the rest of the calculation yourself. The numbers in the screenshot match the steps below.
- Check the proposed tiles match what you asked for, including every number and bracket.
- Check Calc after scoring. Select it if the calculation uses any score.
- Check Result is numeric. Clear it if the calculation returns text, for example 'High' or 'Low'.
- Check Number Format and Decimal Places for numeric results.
- Check Max Points for a Score Calculation.
- Click Test and confirm that the result is correct for your Test Response. The result is shown below the box as the Calculated Result.
- Click Save. A calculation can be saved even when Test shows an error, so always test first.
For more on these settings, see Setting Up Calculations for Assessments.
FAQs & Troubleshooting
If something goes wrong
| What you see | What to do |
| The tiles use a different score from the one you meant (for example a percentage instead of an average) | Insert the score from the A score dropdown and run the prompt again. |
| A number in the tiles differs from your request | Tell AI Build which number to use, for example "Use 0.60, not 60", and run it again. |
| Test shows an error | Copy the error message into Your Prompt and ask AI Build to fix it. |
| AI Build shows text instead of proposed tiles | Click Start Again and run the request again, or split it into smaller steps. |
Comments
0 comments
Please sign in to leave a comment.