--- title: "Create an integration" slug: "build-ai-ready-systems-get-started-wizard-basics-create-integration" description: "Scaffold integration folder and application manifest. Step-by-step for integrators — prerequisites, validate commands, and links to concept pages." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T19:00:25Z published: 2026-11-17T07:08:06Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-get-started-wizard-basics-create-integration" --- > ## 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. # Create an integration An **external integration** is a Builder-managed folder that registers one external system and one or more datasources — the unit of work for making a vendor system part of Enterprise Knowledge. ## Why it matters AI Fabrix organizes enterprise reality by **`systemKey`** and datasource **`key`**. Creating the integration folder correctly ensures validate, upload, test, and certification commands target the right artifacts. One integration folder equals one external system; multiple datasources model different business entities (customers, deals, documents) under that system. For the full end-to-end walkthrough, start at [Create an enterprise external system](/docs/build-ai-ready-systems-get-started-create-enterprise-external-system). This page focuses on **scaffolding the folder** and first validation. ## Prerequisites - Builder CLI installed; **`aifabrix auth status`** green - Sandbox **`systemKey`** chosen (lowercase, stable) - Optional: clone reference fixtures from your org integration library ## Where it lives ``` integration// application.yaml -system.json .json env.template -deploy.json # generated ``` Local files are source of truth until upload. If cloud and folder drift, use **`aifabrix download <systemKey>`** then **`repair`**. ## How to set 1. **Create the folder**: ``` aifabrix create --type external cd integration/ ``` Alternatively, materialize the folder from a BID: [Apply an integration definition](/docs/build-ai-ready-systems-get-started-apply-integration-definition). 1. **Copy a known-good fixture** — record or document datasource JSON from your library; set root **`key`**, **`displayName`**, **`systemKey`**, **`entityType`**, **`resourceType`**, **`primaryKey`**, indexed **`externalId`**. 2. **Edit system JSON** — nested **`authentication`**, roles, connectivity hints ([Connected System basics and kind](/docs/build-ai-ready-systems-connected-systems-system-basics-kind)). 3. **Align env.template** — **`kv://`** secret paths only. 4. **Generate deploy bundle**: ``` aifabrix json aifabrix validate aifabrix repair --dry-run aifabrix repair --rbac --expose ``` 1. **Follow quickstart ladder** — [Quickstart: new external system](/docs/build-ai-ready-systems-get-started-quickstart-new-external-system) through upload and test. Optional OpenAPI/MCP import may accelerate step 2 — always **`repair`** auth, RBAC, and expose flags before publish ([AI Wizard overview](/docs/build-ai-ready-systems-get-started-wizard-basics-ai-wizard-overview)). ## Defaults and examples | File | Role | | --- | --- | | **application.yaml** | App key, external integration manifest, datasource file list | | **`<systemKey>-system.json`** | Authentication, roles, OpenAPI/MCP config | | **`<datasourceKey>.json`** | **`entityType`**, field mappings, foreign keys, sync/CIP, exposure | | **env.template** | Secret references — never commit raw secrets | | **`<systemKey>-deploy.json`** | Generated deploy manifest | Example application manifest fragment: ``` externalIntegration: schemaBasePath: . systems: - example-crm-system.json dataSources: - example-customers.json ``` Example datasource identity band: ``` { "key": "example-customers", "displayName": "Customers", "systemKey": "example-crm", "entityType": "recordStorage", "resourceType": "customer", "primaryKey": ["externalId"] } ``` ## Validate ``` aifabrix validate aifabrix repair --dry-run aifabrix test-integration ``` Repair fixes common drift: missing datasource entries in application.yaml, wrong **`systemKey`** on datasources, auth-only vars in configuration, **`metadataSchema`** out of sync with attributes. ## Common mistakes | Mistake | Fix | | --- | --- | | Skipping fixture copy | Start from known-good JSON | | Multiple systems in one folder | One **`systemKey`** per folder | | Secrets in committed JSON | **`kv://`** in env.template only | | Validate once then edit many files | Re-run after each datasource change | ## Limits This page scaffolds the folder — modeling business metadata, protection, and certification follow [Developer journey](/docs/build-ai-ready-systems-get-started-developer-journey) and linked build articles. Import tools produce drafts — they do not replace **`repair --rbac --expose`**, resource type registration, or governed **`exposed`** configuration before **`upload --probe`**. Treat **`systemKey`** as permanent — renaming after upload requires coordinated lifecycle operations ([Lifecycle](/docs/build-ai-ready-systems-connected-systems-lifecycle-download-repair)). Keep **`application.yaml`** datasource file lists synchronized with disk — orphan JSON files fail validate with confusing paths until **`repair`** reconciles lists. After adding a datasource file, run **`json <systemKey>`** before first upload so deploy bundles include new keys. Document hand-edits in your team changelog when process requires audit — **`repair`** logs do not replace human change records for regulated industries. First **`upload --probe`** should run only after **`validate`** and **`repair --expose`** on a fresh scaffold — skipping repair produces probe failures that look like platform permission errors. Name datasource **`key`** values for stable certification history — renaming after protection upload requires coordinated manifest and scenario pack updates. ## Related - [AI Wizard overview](/build-ai-ready-systems-get-started-wizard-basics-ai-wizard-overview.md)