How to integrate Fivetran with Knock
Learn how to power your Knock product notifications using synced data from your data warehouse using Fivetran Activations.
Getting started
#Knock can be integrated as a downstream target in Fivetran Activations, formerly Census, to sync customer and event data from your data warehouse.
Use cases
#You can use our Fivetran integration to:
- Sync customer data into Knock from your data warehouse (identify recipients).
- Trigger workflows from records added, changed, or removed in your data warehouse.
- Populate audiences with data from your data warehouse. Audiences can be used to trigger workflows or power conditional logic during workflow execution.
Create a Knock activation in Fivetran
#In Fivetran, an activation connects an activation source, such as your data warehouse, to a target. Before you can sync data into Knock, you need to create an activation with Knock as its target.
Prerequisites
#- Connect the data source you want to sync from as an activation source in Fivetran, under Activations > Activation Sources.
- If you've enabled environments, determine which Knock environment you want to sync your data to. You most likely want to sync to your production environment, unless you're configuring a test sync.
- Have your Knock environment's secret API key ready. Each environment has its own unique set of API keys; you can find your secret API key in your dashboard under Platform > API keys. Be sure that the correct environment is selected in the switcher at the top of the page.
- Choose your target type. Your options are:
- Custom Destination API. Our recommended target type for syncing audiences into Knock. Setup is simpler and includes automatic support for removing a user from an audience during your syncs without additional configuration.
- HTTP Request. This target type is required if you need to sync users and their properties to Knock or if you need to include tenant data in your Knock audience.
Configuration instructions
#Syncing audiences into Knock from Fivetran
#Records from your activation source can be synced to Knock audiences using either a Custom Destination API activation or an HTTP Request activation connected to Knock's audiences API.
Prerequisites
#- Complete the steps to create a Knock activation in Fivetran.
- Create a static audience in Knock that will serve as the target for your sync. Be sure that you create your audience in the same environment that you used to configure your Knock activation. The HTTP Request target type requires the audience to exist before your sync runs. The Custom Destination API target type creates a missing audience automatically, named after its key, but creating it first lets you set up the workflows in the next step before any members arrive.
- Ensure that any Knock workflows that should be triggered by a user's audience entry are configured and published before finalizing your Fivetran sync. If you've enabled environments, make sure they're promoted to the environment you're syncing to.
- Choose an audience that isn't populated by a Knock warehouse sync. Knock rejects changes from Fivetran to an audience that a warehouse sync manages.
Add an audience sync to your Knock activation
#Each activation can hold multiple activation syncs. An activation sync sends records from one table or dataset in your activation source to Knock. Fivetran presents the sync configuration as a single form; the steps below follow its sections from top to bottom.
Syncing customer data into Knock from Fivetran
#Records from your activation source can be synced to Knock users using an HTTP Request activation connected to Knock's users API.
Prerequisites
#- Complete the steps to create a Knock activation in Fivetran. You'll need to configure an HTTP Request activation.
Add a user sync to your Knock activation
#Follow the steps below to add a user data sync to your Knock HTTP Request activation in Fivetran. These instructions use our bulk identify endpoint to optimize migrating large numbers of user records to Knock, but you can adapt this approach to use our identify endpoint for ongoing syncs of individual user records.