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.

To use your data warehouse data for segmentation within your Braze workspace, 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.

This feature queries your data warehouse directly, so you will incur all costs associated with running these queries in your data warehouse. It won’t consume SQL segment credits or data points.

Setting up CDI ingestion

Set up a new Connection Sync with Snowflake by following the steps in Connected sources.

Creating a CDI segment

After your CDI integration is set up, create your CDI segment by doing the following.

  1. Create a new Segment Extension and select the Full refresh option.


  2. Select CDI Data Tables as your data source.


  3. Select Reference to view the data tables available for use. 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.

  4. Select a connection.


  5. Write the SQL for your segment using our guidelines. 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.

  1. 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 Snowflake syntax.
HOW HELPFUL WAS THIS PAGE?
New Stuff!