--- title: "Quickstart: new external system" slug: "build-ai-ready-systems-get-started-quickstart-new-external-system" description: "CLI-first path from create to upload, test, and certify a new external system. Part of AI Fabrix governed enterprise AI — see related articles below." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T19:00:13Z published: 2026-11-17T07:08:06Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-get-started-quickstart-new-external-system" --- > ## 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. # Quickstart: new external system Get a new external system from scaffold to **uploaded, validated, and test-ready** using the Builder CLI — without relying on the wizard as the only path. Path A (`create`) is **not** the only CLI-first path: for static or custom packages prefer [Apply an integration definition](/docs/build-ai-ready-systems-get-started-apply-integration-definition). ## Why it matters Integrators need a **repeatable CLI ladder**: scaffold folder → author or copy JSON → validate in tight loops → upload → test. The wizard can accelerate OpenAPI import, but production integrations are maintained through `create`, BID apply, `repair`, and `validate`. ## Prerequisites - [Developer workstation setup](/docs/build-ai-ready-systems-get-started-developer-workstation-setup) complete - `aifabrix auth status` succeeds (run `aifabrix login` if needed) - Tenant **ACTIVE** and dataplane reachable for your environment - OpenAPI spec file or MCP endpoint URL (for system JSON) ## How to set ### Path A — CLI-first (primary) Ordinary upload stages and qualifies a candidate; `aifabrix deploy <systemKey>` promotes the qualified current input. Upload acceptance or qualification success alone does not establish publication. A matching, available published package remains unchanged. Explicit `--force` requests replacement publication; even an equivalent package needs publication when its system or requested datasources are unavailable. **Static/custom packages:** author BID JSON, then `integration-definition validate` / `apply` — [Apply an integration definition](/docs/build-ai-ready-systems-get-started-apply-integration-definition). Continue from **repair** below. **Empty-folder scaffold:** 1. **Scaffold the integration folder** ``` aifabrix create --type external ``` Creates `integration/<systemKey>/` with `application.yaml`, `env.template`, and placeholders for system and datasource JSON. Copy a **known-good fixture** from your org’s integration library and trim keys — do not start from an empty `{}`. 1. **Register resource types in the catalog** Every datasource requires a top-level **`resourceType`** catalog key: ``` aifabrix resource-type list aifabrix resource-type create --key customer --display-name "Customer" aifabrix resource-type create --key document --display-name "Document" ``` See [Entity basics, types, and resource type](/docs/build-ai-ready-systems-business-entities-entity-basics-types-resource). Catalog sync to the dataplane may lag — re-list after create before upload. 1. **Author system and Business Entity JSON** — one file per entity under `integration/<systemKey>/`. Required root bands: `key`, `displayName`, `systemKey`, **`entityType`**, **`resourceType`**, plus recordStorage companions (`primaryKey`, `labelKey`, `metadataSchema` with **`externalId`**, `fieldMappings`, `sync`, `exposed`). Build recipes: [record storage entity](/docs/build-ai-ready-systems-business-entities-guides-build-record-storage-entity), [document storage entity](/docs/build-ai-ready-systems-business-entities-guides-build-document-storage-entity). 2. **Align auth and manifest lists** ``` aifabrix repair --dry-run aifabrix repair --auth apikey aifabrix repair --rbac --expose aifabrix json ``` Many CRM OpenAPI specs default to OAuth — use `--auth apikey` when you use a private app key. See [Configure authentication](/docs/build-ai-ready-systems-connected-systems-configure-authentication). 1. **Validate locally** ``` aifabrix validate aifabrix datasource validate ``` Fix schema errors before upload. See [Validation, schemas, and repair](/docs/build-ai-ready-systems-validate-test-validation-schemas-repair). 1. **Upload and test** ``` aifabrix upload aifabrix deploy --probe aifabrix test-integration aifabrix datasource test-e2e --app ``` See [Connected System tests](/docs/build-ai-ready-systems-validate-test-connected-system-tests) and [Test ladder and protection](/docs/build-ai-ready-systems-validate-test-test-ladder-protection). 1. **Govern and certify (before production AI)** Add [business policies (dimensions and protection)](/docs/build-ai-ready-systems-business-entities-configure-business-policies), [protection manifests and upload](/docs/build-ai-ready-systems-build-reference-protection-manifests-upload), then: ``` aifabrix verify-governance --subject-email aifabrix verify-operations aifabrix verify-trust ``` ### Path B — Wizard accelerator (optional) When OpenAPI or MCP import saves time: ``` aifabrix wizard # or: aifabrix wizard --config path/to/wizard.yaml ``` Then run **steps 2–7** above — wizard output still needs `repair`, resource types, field mappings, and governance. See [AI Wizard overview](/docs/build-ai-ready-systems-get-started-wizard-basics-ai-wizard-overview). ## Defaults and examples Minimal **system** fragment (extend with your OpenAPI path or MCP URL): ``` { "key": "my-system", "displayName": "My System", "type": "openapi", "authentication": { "authType": "credential", "credential": { "method": "apikey", "variables": { "baseUrl": "https://api.example.com", "headerName": "X-API-Key" }, "security": { "apiKey": "kv://my-system/apiKey" } } }, "openapi": { "specUrl": "https://api.example.com/openapi.yaml" } } ``` Minimal **recordStorage datasource** fragment (add `fieldMappings`, `sync`, and `exposed` before upload): ``` { "key": "my-system-customers", "displayName": "Customers", "systemKey": "my-system", "entityType": "recordStorage", "resourceType": "customer", "primaryKey": ["externalId"], "metadataSchema": { "type": "object", "properties": { "externalId": { "type": "string", "index": true }, "name": { "type": "string", "index": true } }, "required": ["externalId"] } } ``` | Artifact | Typical path | | --- | --- | | System JSON | `integration/<systemKey>/<systemKey>-system.json` | | Datasource JSON | `integration/<systemKey>/<datasourceKey>.json` | | RBAC | `integration/<systemKey>/rbac.yaml` | | Deploy manifest | `integration/<systemKey>/<systemKey>-deploy.json` | ## Files affected ``` integration// application.yaml -system.json .json env.template rbac.yaml -deploy.json ``` ## Limits Review the removal preview before a force replacement: omitted datasources may lose stored data. A running-system replacement with non-isolated live checks is refused before mutation. Check the final job's publication and cleanup outcomes; an accepted job or successful qualification is not a completed deployment or vendor test. This quickstart assumes one external system key and at least one datasource. Multi-datasource CRM + document library setups follow the same ladder per datasource file. Catalog and upload behavior depend on controller sync — confirm `resource-type list` before blaming validate errors on JSON shape alone. Wizard output is a draft — always run `repair` and `datasource validate` before upload. When integration fails after a green local validate, compare uploaded manifest with local JSON using `aifabrix show <systemKey> --online` before re-running E2E. ## Related - [Create a Connected System](/build-ai-ready-systems-get-started-create-enterprise-external-system.md) - [Developer journey](/build-ai-ready-systems-get-started-developer-journey.md)