Skip to content

CDI segments

With Braze Cloud Data Ingestion (CDI), you can set up a direct connection from your data warehouse or file storage system to Braze to sync relevant user or catalog data on a recurring basis.

Prerequisites

To use your data warehouse data for segmentation within your Braze workspace, you’ll need to create a connected source, then create a CDI segment within your Segment Extensions. CDI segments allow you to write SQL that directly queries your own data warehouse by using data made available via your CDI connections, and create a group of users that can be targeted within Braze.

Creating a CDI segment

Step 1: Set up your source

Before creating your first CDI Segment, set up a new Connected Source with your data warehouse by following the steps in Connected Sources.

Step 2: Create a segment

First, create a new Segment Extension, then select Full refresh.

For your data source, choose CDI Data Tables.

As part of your CDI setup, you can select from different connections to use in CDI segments. Each connection has a specific set of data tables. Your development team can configure your connections and data tables during CDI setup.

To view the available data tables, select Reference. When you’re ready, select a connection.

Next, write the SQL for your segment using the Braze SQL syntax.

Keep in mind, all CDI segments must use external_user_id as the selected column, and your external_user_id should match the one set in Braze for users. If your query results include users that don’t exist in Braze, those users will be ignored. Braze will not create new users based on the output of your CDI segment.

Finally, you can use this Segment Extension within a Braze segment to send a campaign or Canvas to this audience.

Considerations

  • A Segment Extension can reference data from only one connection, not multiple.
  • A Segment Extension can use one of the following as a data source: CDI data or Braze Snowflake (Currents) data. You cannot mix data sources within a Segment Extension, but you can create multiple Segment Extensions to reference together within a segment.

Troubleshooting

  • Your query might timeout when it reaches your maximum runtime, which is set up for each connection sync on the Cloud Data Ingestion page. The maximum runtime allowed is 60 minutes.
  • Make sure your SQL is written using appropriate syntax for your data warehouse.
HOW HELPFUL WAS THIS PAGE?
New Stuff!