{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Products","product_name":"Data Workbench","type":"markdown"},"seo":{"title":"Using Workflow to Prepare Source Tables","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"using-workflow-to-prepare-source-tables","__idx":0},"children":["Using Workflow to Prepare Source Tables"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Workflow can be used to prepare source tables for Master Segments."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can start the creation of a master segment by pre-processing data using workflows."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Here’s an example workflow task using an HTTP operator to start the creation of a master segment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+kick_audience_workflow:\n  http>: \"https://api-cdp.treasuredata.com/audiences/YOUR_AUDIENCE_ID/run\"\n  method: POST\n  headers:\n    - authorization: \"TD1 ${secret:td.apikey}\"\n  retry: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen_shot_2019-08-23_at_10.59.43_am.d04cc83280200f65fada79bf795730cc7abb62a486da0c00d2f11afa7659f90f.142841d8.png","alt":""},"children":[]}]}]},"headings":[{"value":"Using Workflow to Prepare Source Tables","id":"using-workflow-to-prepare-source-tables","depth":1}],"frontmatter":{"seo":{"title":"Using Workflow to Prepare Source Tables"}},"lastModified":"2025-11-22T02:43:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/data-workbench/parent-segments/using-workflow-to-prepare-source-tables","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}