Human-readable description of what this rule extracts.
JavaScript code that performs the extraction.
The extractor function receives the artifact content as input and returns the extracted value. The function body should be valid JavaScript that:
Security Note: This code is executed in a sandboxed environment. You may not access external resources or do anything that would result in side effects.
// Extract subject from JSON email
const parsed = JSON.parse(content);
return parsed.subject || 'Untitled';
// Extract first heading from Markdown
const match = content.match(/^#\s+(.+)$/m);
return match ? match[1] : null;
Unique name for this extraction rule within the artifact type hierarchy. Used as the key for overriding parent rules and for storing extracted values.
Optional standardOptional mapping to a standard property for UI rendering.
When set, this extracted value can be used by the UI for specific purposes:
If undefined, this is a custom attribute specific to the artifact type.
TypeScript type definition for the extracted value.
Can be:
'string'
'number'
'Array<{id: string, name: string}>'
Definition of a single extraction rule that defines how to extract an attribute from artifact content.
Extract rules are stored as JSON in the ArtifactType.ExtractRules column and support hierarchical inheritance where child types can override parent rules.
Example