AI Rules
Overview
AI Rules allow you to define and organise programming logic that guides Metaforms’ for survey XML generation. Each folder contains one or more AI Rules, along with shared instructions that help the Metaforms to generate accurate XML for your hosting platform. These Folders help you define and set AI rules into categories that an individual survey programmer, a client or a team may need.
What an AI Rule Folder Includes
Folder-level instructions
A collection of AI Rules
Hosting platform selection
Usage insights
Version history for each rule
AI Rule Folder Types
Always
Applied to every project. Cannot be removed during project creation.
If Selected
Optional. Can be checked or unchecked during project creation. Pre-selected only when linked to a Template.
Creating an AI Rule Folder
On Survey Programming Dashboard go to AI Rules
Click Create
Enter a Folder Name
Select When to Use (Always or If Selected)
Choose Who Can Edit the folder
Choose the Survey Hosting Platform
Click Create

Adding AI Rules to a Folder
Open the folder from the AI Rules list
Click Create Rule
Enter a Rule Name
Add:
Explanation
Examples
XML instructions
Save the rule


AI Rules should be Clear, detailed instructions that guide how questions should be interpreted and generated.
XML Examples – Sample question structures that demonstrate the expected output.
Explanations – Supporting notes that clarify how rules should be applied.
Instructions - An explanation on how AI should generate code when this template is used.
The better defined your rules and examples, the more accurate and consistent your outputs will be.
Applying AI Rule Folders in a Project
When creating a new project:
Select a Template (optional)
On the AI Rules screen:
"Always" folders are auto-applied
"If Selected" folders can be checked or unchecked
Continue to project creation

After the project is created, you can still:
Add or remove folders from the AI Rule Folders button in the project

Improving AI Rules (Continuous Tuning Process)
To update an AI rule effectively:
Check if the rule already exists.
If it does but isn’t working well, identify the failing part and update the explanation.
Look for conflicting examples.
Remove or reword anything that contradicts your intended logic.
Improve clarity.
If a rule works but isn’t well documented, add it as a distinct entry under AI Rules.
Add new rules as needed.
Clearly define any missing logic and support it with relevant examples and explanations.
Test changes.
Save the updated AI rule, refresh the survey, and re-generate the same questions to confirm that the behaviour has been fixed.
Last updated
Was this helpful?