This folder contains the AI instruction files used by FetchXML Builder in XrmToolBox.
These files define how the AI assistant helps users build, modify, and explain FetchXML queries.
They are split into separate files to keep responsibilities clear and avoid prompt conflicts.
These files are combined into the main instruction sent to the AI.
System.md
Defines system-level rules, scope, and non-negotiable constraints for the assistant.
Behavior.md
Describes how the AI uses metadata, updates FetchXML, handles execution, and explains queries.
Style.md
Controls tone, personality, and how the user is addressed.
Preferences.md
Contains naming conventions, output formatting rules, and interaction preferences.
UserFlavors.md Injects optional user-specific guidance so the assistant can adapt to different user flavors.
At runtime, FetchXML Builder injects dynamic context into the instructions, such as:
Placeholders (for example or) are populated by the tool and must not be modified.
These prompt files are used during sampling to help the AI resolve specific runtime subtasks.
Updated.md Re-states the latest FetchXML and marks it as the authoritative current query for subsequent steps.
EntityMeta.md Helps the AI map a user’s description to matching Dataverse tables using supplied entity metadata only.
AttributeMeta.md Helps the AI map a user’s description to matching Dataverse columns for a known table using supplied attribute metadata only.
The instruction files are treated as compiled templates, not dynamic prompts.
Before being sent to the AI model, FetchXML Builder:
,, ``)As a result:
This design avoids conditional logic in prompts and produces more deterministic behavior.