--- title: "Configure business vocabulary" slug: "build-ai-ready-systems-business-entities-configure-business-vocabulary" description: "Map system fields to business metadata and resource types. Step-by-step for integrators — prerequisites, validate commands, and links to concept pages." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T18:59:02Z published: 2026-11-17T13:34:34Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-business-entities-configure-business-vocabulary" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Configure business vocabulary Map vendor API fields to **business attributes** and **dimension bindings** so Business Entities become Enterprise Knowledge — not raw payloads. ## Prerequisites - Datasource JSON from `create` + fixture copy or manual authoring - [Resource type](/docs/build-ai-ready-systems-business-entities-entity-basics-types-resource) registered in catalog - Business vocabulary agreed (customer, owner, region — not vendor field jargon) ## Where it lives Each datasource file: `integration/<systemKey>/<datasourceKey>.json` | Band | Location | | --- | --- | | Identity | Root: `key`, `displayName`, `systemKey`, **`entityType`**, **`resourceType`** | | Attributes | **`fieldMappings.attributes`** — vendor → normalized expressions | | Dimensions | Top-level **`dimensions`** + `dimensionBinding` (not under fieldMappings) | | Schema | **`metadataSchema.properties`** — includes indexed **`externalId`** | **Not valid:** nesting **`resourceType`** under **`fieldMappings`** — it is a **root** field only. ## Builder MCP | | | | --- | --- | | **Manifest key** | `fieldMappings` (root) | | **UI tab** | Business Vocabulary (`?tab=mappings`) | | **Help topics** | `section`, `goldenExample`, `dependencyGraph` | | **Repair hooks** | `fieldMappings`, `expose` | Read **`dependencyGraph`** before patch — vocabulary edits affect metadata schema and exposure. ## How to set 1. **Copy a fixture** or map from vendor OpenAPI — treat import output as draft only. 2. **Set root `resourceType`** — catalog key for this entity (`customer`, `document`, …). 3. **Map identifiers** — ensure **`externalId`** and **`primaryKey`** align with normalized fields. 4. **Define `fieldMappings.attributes`** — one entry per business field with a pipe **`expression`** (`{{raw…}}`, optional `|` functions). Full catalog: [Configure field-mapping expressions](/docs/build-ai-ready-systems-business-entities-configure-field-mapping-expressions). 5. **Mark searchable and display fields** — index/filter flags in `metadataSchema` for decision-relevant data only. 6. **Attach dimensions** — top-level `dimensions` keys reference attribute fields; see [Configure business policies](/docs/build-ai-ready-systems-business-entities-configure-business-policies). 7. **Declare relationships** — `foreignKeys[]` before protection on linked entities. 8. **Repair and validate**: ``` aifabrix repair --dry-run aifabrix repair --expose aifabrix datasource validate aifabrix validate ``` ## Defaults and examples | Element | Purpose | Example | | --- | --- | --- | | **`resourceType`** (root) | Business entity for capabilities | `customer`, `contact`, `deal` | | **`externalId`** | Join identity | Indexed string in metadataSchema | | **attributes** | Normalized vendor mapping | `"name": { "expression": "{{raw.properties.name}}" }` | | **Searchable** | Query and AI context | `name`, `industry`, `status` | | **Dimensions** | ABAC boundaries | `customerRegion`, `ownerId` | Example **`fieldMappings.attributes`** fragment: ``` { "key": "example-customers", "displayName": "Customers", "systemKey": "example-crm", "entityType": "recordStorage", "resourceType": "customer", "primaryKey": ["externalId"], "labelKey": ["name"], "fieldMappings": { "attributes": { "externalId": { "expression": "{{raw.id}}" }, "name": { "expression": "{{raw.properties.name}}" }, "country": { "expression": "{{raw.properties.country}}" } } }, "metadataSchema": { "type": "object", "properties": { "id": { "type": "string" }, "properties": { "type": "object", "additionalProperties": true }, "externalId": { "type": "string", "index": true }, "name": { "type": "string", "index": true, "filter": true }, "country": { "type": "string", "index": true } } } } ``` Illustrative mapping goals: - vendor `id` → normalized **`externalId`** (indexed) - `name` → customer display name (searchable) - `country` → **`customerRegion`** dimension via top-level `dimensions` ## Validate Attribute objects accept `expression`, `description`, `writePath`, `direction`, `passthrough`, `semantic`, and `lineage`. Keep types and required-field rules in `metadataSchema`; do not add `type`, `required`, `functions`, or compiled output keys to an attribute. Raw expression paths must also resolve in `metadataSchema`; the example declares `id` and an open `properties` bag for that reason. ``` aifabrix datasource validate aifabrix validate aifabrix test-integration aifabrix datasource test-e2e --app ``` Empty search or certification failures often trace to incomplete fieldMappings — not auth errors. Re-run validate after changing any **`fieldMappings.attributes`** entry; the compiler cross-checks **`metadataSchema.properties`** and indexed **`externalId`** on every pass. ## Common mistakes | Mistake | Fix | | --- | --- | | Vendor field names unchanged | Rename to business attributes | | `resourceType` under fieldMappings | Move to root next to `entityType` | | All fields searchable | Expose decision-relevant fields only | | Dimensions only in RBAC UI | Define top-level `dimensions` on JSON | | Skipping repair after edits | `repair --expose` syncs metadataSchema | | Ignoring **`systemKey`** drift | Match parent system file before validate | ## Limits Field mapping **`expression`** values use the closed pipe DSL — not JSONPath `source`. See [Configure field-mapping expressions](/docs/build-ai-ready-systems-business-entities-configure-field-mapping-expressions) for the function table (`split`, `index`, …). Complex transforms that the pipe cannot express may require CIP steps in [CIP execution](/docs/build-ai-ready-systems-publish-certify-cip-execution). Keep **`displayName`** aligned with operator vocabulary and verify **`externalId`** stays indexed after every attribute change — search and governance tests depend on stable join identity. When adding dimensions, update top-level **`dimensions`** and attribute sources together — changing only RBAC YAML without JSON bindings produces false confidence. Run **`datasource validate`** after every attribute edit; **`validate <systemKey>`** before upload when multiple datasource files changed in the same commit. ## Related - [Configure Connected System authentication](/build-ai-ready-systems-connected-systems-configure-authentication.md) - [Entity basics, types, and resource type](/build-ai-ready-systems-business-entities-entity-basics-types-resource.md) - [Configure field-mapping expressions](/build-ai-ready-systems-business-entities-configure-field-mapping-expressions.md) - [Business metadata](/enterprise-knowledge-business-metadata.md) - [Business meaning as governed content](/architecture-business-meaning-as-governed-content.md)