# Creating Parent Segments You define your data model in **Data Workbench** > **Master Segments**. In Treasure Data Workflows (**Data Workbench** >**Workflows**) , a series of workflows are automatically generated to create and refresh the parent (master) segment data model. Data in the data model is refreshed according to the schedule you define for the parent segment. ## Creating and Defining Master Segments 1. From TD Console, select **Data Workbench** > **Master Segments**. 2. Select **New Master Segment**. 3. Specify Master Table, Attribute Filters (optional), Attribute Tables, and Behavior Tables. ![](/assets/copy-creating-parent-segments-2024-09-23.c7357d403d654c1cbe3a88d845d4ed9928665c29876eb57a7c4efb8bf7f665a5.ce33cbe1.png) ## Set the Schedule and Timezone ![](/assets/copy-creating-parent-segments-2024-09-23-1.982aa50827d9e6a360046b9a6aa64a9d940f3d637b72edcae48b489ff8b4dbd8.ce33cbe1.png) 1. Specify the schedule by which the parent (master) segment data is refreshed. Treasure Data recommends running a refresh daily to renew the dataset. The master table needs to be updated before master segment creation begins. 2. Optionally, specify the default timezone. ## Specify the Master Table ![](/assets/copy-creating-parent-segments-2024-09-23-2.607b82ee7a5e3e0e89a8a74b172444536e1a182c3df770a6f8df11cf464cd6e2.ce33cbe1.png) 1. Specify the parent (master) database and table name. ## (Optional) Specify Attribute Filters ![](/assets/creating-master-segments-2024-06-13-5.f859269628728215d1aee64f73e0499ef656e4b986d1ca8234122fc736637abb.ce33cbe1.png) Attribute Filters only support text format values. 1. In the Master Table pane, select ![](/assets/creating-master-segments-2024-06-12-4.1fe9c85794593ab3cdefeb8fe71069dc342b822e7fc4ee91216a502a74410f30.ce33cbe1.png) to include columns and attribute types. Attribute filters help marketing professionals to define a set of characteristics to differentiate segments into a broader audience. 2. Type in your selected attribute and either press enter or select the new attribute from the dropdown. Select ![](/assets/creating-master-segments-2024-06-13-4.2783c8c98bb926b8a08c9a82132070821b425496bddcad032f8d13a8f2f38330.ce33cbe1.png) to remove unwanted or blank filters. ![](/assets/creating-master-segments-2024-06-13-1.b529314c65ac5fa56a3460f29cb4621f7ddef88f5d1e3f41d864937328cc4d8b.ce33cbe1.png) 1. Select **Save.** ## Specify Query Engine and Optional Resource Pool ![](/assets/copy-creating-parent-segments-2024-09-23-3.608767a1d575b14e4992c984f2a8fa07e7fdc52e3561884f22a46482f2fcf56e.ce33cbe1.png) 1. Specify the resource pool to define how your allotted Treasure Data resources are used to process the data. Treasure Data recommends Hive only because it’s designed for large-scale joins and is known for robustness. Presto and Hive might perform faster for smaller data sets. ## (Optional) General LLM Access You can assign different LLM Project Permissions for the parent segment: ![](/assets/creating-parent-segments-2024-12-05-1.2faabbd4d543370ce8658696e1a5e11e466b3f3510cbf7f2858f8d93e7b2a42b.ce33cbe1.png) | Permissions | Description | | --- | --- | | None | Select this permission if you do not want users associated with the parent segment to access any AI project in the AI Framework. | | Limited | Select this permission to select specific AI projects, and then you must configure permissions for each project. **Full access**: Edit and delete project. **Project access**: View, create, edit, and delete custom Agents, Knowledge Bases, and User Prompts **Internal Integrations access**: View, create, edit, and delete internal integrations (Generic Chat) **External Integrations access**: View, create, edit, and delete external integrations (Webhook, Slack) | | Full | Select this permission to allow all users associated with the parent segment to access all AI projects in the AI Framework. | Regardless of the configured permissions, Generic Chat in the AI Framework is always enabled. You cannot change this permission ## (Optional) Specify the Attribute Tables ![](/assets/copy-creating-parent-segments-2024-09-23-5.e0390a0f8736403846d37341943654ef78fe1221b89c5f539a6e5aec90259f91.ce33cbe1.png) Specify the attribute tables. The Foreign Key and Join Key join the parent (master) table with attribute tables. Include a td_ column here for automatic data enrichment. When creating a Parent Segment, if any of the column names of the specified attribute tables are the same as in another, this Parent Segment configuration does not work. ## (Optional) Specify Tables for Behaviors Optionally, specify tables from which behaviors can be derived. Use the Name field to give a user-friendly name to the specific column. Include a td_ column here for automatic data enrichment. ![](/assets/copy-creating-parent-segments-2024-09-23-6.670609b54b646d968cb6641bb58592b42a52d971cc2f2b1bf85ba8c567164eb8.ce33cbe1.png) If the default time filter is enabled, the Segmentation Rule automatically adds the "within past 30 days" rule to avoid an unnecessary large data volume in the condition. However, you can remove the rule even if it is enabled. ![](/assets/creating-parent-segments-2024-09-23-11.5aa21db565f6ba86343a2ab88066887768ff1cf5f5514da0d2affc057c2efff5.ce33cbe1.png) ## Saving and Running the Master Segment 1. After defining the parent (master) segment, select **Save**. 2. Enter a name for the parent segment and an optional description. 3. Select **Save** to create the parent segment. 4. Select **Run** to run the parent segment and begin a workflow that populates the parent segment. ## (Optional) View Workflow Progress 1. Optionally, view the progress of the workflow that is created by defining the parent (master) segment. From the main navigation, select **Data Workbench** > **Workflows** and select the parent (master) segment filter. ![](/assets/image-20200310-205323.acd5be0d50b8e645ba8bc0d36aa3fecd46fbcb24ef07ebb01a6d20f6f6a07d4d.ce33cbe1.png) ![](/assets/creating-master-segments-2024-06-11-3.e4bc13dd39889ee3409dc81ec967fa96fbe4ef4d5c6dfa4a0a7d5a89f809ad6c.ce33cbe1.png) 1. To verify that the process ran and created your master segment, navigate to **[Audience Studio](https://console-next.treasuredata.com/app/ps)**. ![](/assets/creating-master-segments-2024-06-14.8474aa22e695f1a656fa24c103ece8a12efc3824cf996904ac518402c58153ae.ce33cbe1.png)