2.5.3 Data Sources
Data Sources connect external data to the Model. They make source data available to Target Entities through Data Import Configurations. Each Data Source exposes one or more source configurations, and each configuration exposes source entities with their columns, which you map onto a Target Entity's properties.
Every Data Source is an Intake Agent: a standalone service that retrieves data from an external system and pushes it into DCH.
You find Data Sources in the Data sources tab in the Model. Double-click one to open its detail panel. The panel is read-only: to change an Intake Agent, go to Intake Agents. Its Actions are:
- Create new entities: create Target Entities from the source structure (see below).
- Preview Data: look at sample rows of the source entities.
- Open Agent: open the Intake Agent's own interface in a new browser tab.
Create new entities and Preview Data are only available while the Intake Agent is active.

Create Target Entities from a Data Source
Instead of building a Target Entity by hand, you can generate one directly from a Data Source, using the source structure as the starting point. Choose Create new entities, then:
- Pick the Data source configuration. Switching it later discards your selection and edits.
- Select the source entities to turn into Target Entities. Each selected entity gets its own card on the right.
- Refine each card:
- Entity name and Description: the name defaults to the source entity's name.
- Business key: the first property is preselected. Pick another one, or choose Build a business key to combine several properties into an expression.
- Properties: clear Include for the properties you do not need, and enter a Target name to rename one. The filters show all, included, excluded or renamed properties, or the key candidates.
- Preview data shows sample rows of the source entity.
Choose Create new entities to create them. Each new Target Entity also gets a Data Import Configuration named <Entity name>_Configuration that maps its properties to the source entity. The new entities are added to the isolated subset on the canvas, so you can open and refine them right away.

Suggestions with AI
AI can fill in the cards for you, based on the source structure and a small sample of rows:
- Generate suggestions fills in all selected entities at once; the ✦ icon on a card (Generate AI suggestions for this entity) does it for that entity only. You choose what to generate (entity name, description, target property names, which properties to include, business key) and can add an instruction, for example to use your domain's terminology.
- Every field filled in by AI is marked with ✦. Click the marker to Refine with AI: it regenerates just that field, optionally following an instruction. The marker disappears once you edit the field yourself.

Suggestions only change the cards. Nothing is created until you choose Create new entities, so you can review and edit every suggestion first. Like the other AI features in the Model, this needs the M4AI Agent System with the slug target-entity-assistant.