Rules
A rule is a reusable instruction to the AI: it describes in your own words how certain data should be handled – for example “Write telephone numbers in the format +41 XX XXX XX XX” or “Separate academic titles from the name”. Once written, a rule is available in every execution of the workspace. It only takes effect once it is attached to a column.
You will find the rules of a workspace in the menu under Rules. The page is called Rules for followed by the name of the workspace, for example Rules for Demo Workspace.
The rule list
Section titled “The rule list”| Column | Meaning |
|---|---|
| Name | Short, unique name of the rule. |
| Description | What the rule is for – written for people, not for the AI. |
| Origin | Where the rule comes from: from this workspace or from a template. |
| Actions | Delete (or Info for rules from a template), Edit, Duplicate. |
Use the Search rules… field to filter the list by name and description.
Creating a rule
Section titled “Creating a rule”- Create new rule opens the Create new rule form on the right.
- Under Name, enter a meaningful name, for example “Check house number”. The name must be at least 3 characters long and unique within the organisation; if it is already taken, This name is already taken. appears.
- Under Description, state in one sentence what the rule does – you will later see this description in all selection lists.
- Under AI instruction goes the actual task for the AI, for example: “Check whether the street contains a house number; if it is missing, mark the cell for validation.”
- Create saves the rule and adds it straight to the current workspace.
All three fields are mandatory. As long as one of them is empty, Create remains disabled.
Column placeholders in the instruction
Section titled “Column placeholders in the instruction”The editor of the AI instruction has two buttons, Select output column and Select target column. With them, you insert a placeholder instead of a fixed column name. Which column is actually meant is only specified when you attach the rule to a column in an execution. This way, a rule such as “Take the postcode from [output column]” remains usable for lists with different column names.
Writing good instructions
Section titled “Writing good instructions”The AI follows what is in the instruction – no more and no less. The following points have proven useful:
- One task per rule. “Format telephone numbers” and “Check postcode and town” are two rules, not one. This way they can be attached individually to the appropriate columns.
- Spell out the target format. Instead of “format nicely”, better: “Format telephone numbers as +41 XX XXX XX XX. Remove brackets, full stops and slashes as well as the leading 0 after the country code.”
- Give examples. “Resolve ‘Muster, Hans’ and ‘Muster Hans’” shows the AI which cases are meant.
- Say what should happen in case of doubt. For example: “If the salutation is not unambiguous, leave it empty and mark the cell for validation.” Otherwise the AI guesses.
- Do not let it invent anything. With address data, it is worth adding that missing values remain empty.
Managing rules
Section titled “Managing rules”- Edit opens Edit rule: name, description and AI instruction can be adjusted. A rule is an object of the organisation; a change therefore takes effect in every workspace that uses this rule.
- Duplicate opens Duplicate rule with all details and the name suffix “(Copy)”. This is handy when you need a similar rule without changing the original.
- The bin icon (Delete rule) removes the rule from the workspace after a confirmation prompt. The rule itself remains in the organisation.
- Via the … menu next to Create new rule, Add existing rule brings a rule that already exists in the organisation into this workspace – including one that was removed earlier.
- Use the checkboxes to select several rules; Remove selected then appears above the table.
Rules from a template
Section titled “Rules from a template”If a rule comes from a template, the template’s name is shown in the Origin column. Such rules cannot be removed individually from the workspace and cannot be selected. Instead of the delete button, Info appears with the notice Removal not possible: the rule is linked via the template and only disappears when you remove the template from the workspace.
Attaching rules to columns
Section titled “Attaching rules to columns”A rule on its own does nothing yet. It is applied when it is attached to a column. This happens in two places:
- In an output schema: Under Columns, the rule icon of a row opens the Define column content dialog. Under Rules for this column you select the appropriate rules. Anyone who later applies the schema in an execution automatically gets the rules too. More on this under Output schemas.
- Directly in an execution: When setting up an execution, you attach rules via Define column content to individual “AI edits” columns or to new columns, and also fill in the column placeholders there. This is described in Column content and rules.
In each case, you can choose from the rules of the current workspace, that is, your own and those from templates.