Skip to main content

Data lake integrations overview

Command AI integrates with the most popular data lakes — including Redshift and Snowflake.

What is the purpose of these integrations?

A data lake (data warehouse? we don’t really know the difference 😬) stores data that you might want to use in the future. Data lakes love data. Command AI generates data. Data lakes love Command AI.

To facilitate this romance, Command AI can send data to the data lake you’re using to house other data about product usage.

These integrations are some of our only one-way integrations in Command AI. Data goes in, but data doesn’t come back (we have other integrations, like our CDP integrations, for that kind of bidirectional business).

What can I do if I use a data lake you don’t integrate with?

Answer: Use our SDK and API

Fear not. Our integrations are a relatively thin layer on top of some pretty basic general-purpose SDK and API methods that you can use to create your own integration with any third-party data lake.

For this, you’ll use an event subscriber. Simply create an event subscriber and within the body of that subscriber send the event payload to the data lake of your choice.

// The function that handles Command AI events
const myHandler = (eventName, eventData) => {
sendToDataLake({ name: eventName, ...eventData });
};

// Subscribe to Command AI events
const unsubPromise = window.CommandBar.addEventSubscriber(myHandler);

// Later, call the function returned by the promise
// to unsubscribe your handler from Command AI events.
unsubPromise.then((unsub) => unsub());