Search documentation...

K

Delighted

Create or update your customers' information while sending surveys with rich segmentation data directly from your warehouse.

Overview

The Delighted integration allows you to sync customer data and send surveys from your warehouse based on models that you define.

Why sending surveys should be based on the warehouse

  • You can do more complex segmentation by leveraging all the data in your warehouse, including event data and third-party data. Your warehouse is the only place where all of this data coexists.
  • You can keep your Delighted segments in sync with the rest of your business tools. For example, you might want to send a survey to users who've been invited to a beta program. You also might want to sync these attributes to a CRM like Salesforce or HubSpot. Hightouch integrates with 100+ SaaS tools used for email marketing, customer support, sales, and more. Define your audience once and activate your data everywhere.
  • Segments can be defined using the tools that your teams are most comfortable with. You can filter and transform data from your warehouse using SQL or our visual query builder—whichever you prefer. (You can even sync customers to or send surveys through Delighted segments based on work you've already done in dbt or Looker!)

Getting Started

Step 1: Connect to Delighted

Retrieve your API Token from Delighted.
  1. Log in to Delighted.
  2. Visit Delighted's API Introduction Page.
  3. Copy your your API key.
The api key on the Delighted dashboard

Add Delighted as a destination in Hightouch

  1. Log in to Hightouch or create a free Hightouch account
  2. Click on Destinations in the left sidebar
  3. Click on Add destination in the top right corner
  4. Select Delighted in the destination catalog and click Continue to proceed
  5. Paste your your API key into the API key field and click Continue to proceed
  6. Give your destination a name and unique slug (e.g., Delighted Production” and Delighted-production)
  7. Click Finish to create your Delighted destination!

Step 2: Connect to your data source

Hightouch sits on top of your data warehouse and can read from Snowflake, Redshift, BigQuery, Databricks, Postgres, MySQL, and many other data sources. You can even fetch data from Google Sheets and Airtable. Hightouch can help activate your data wherever it resides.
We've written dedicated guides for each supported data source. Take your pick:
If you're missing the credentials necessary to connect to your data source, try inviting your teammates to Hightouch. You can have unlimited collaborators in your workspace!

Connect to a sample database instead

Waiting for credentials to your data warehouse? No problem! You can connect to one of our sample databases to get started right away. For the rest of this tutorial, we'll use our demo Postgres database, which contains a users table with names, emails, locations, and other user attributes. This sample source is available when you log in for the first time—no setup required.
Next, we'll write a SQL query to define which users should be synced to our Delighted customers resource. You can follow the same pattern to sync to other support Delighted resources,

Step 3: Create a model

In Hightouch, a model represents a query that filters or transforms the records in your data source. Models are used to determine exactly which records to sync between sources and destinations.
When you connect to a data warehouse, your models will probably be written in SQL. You can also import models from tools like dbt and Looker.
In this example, we'll keep it simple. Suppose you want to sync all your customers to Delighted. To accomplish this, you'll want to create a model that looks like this:
SELECT * FROM users;
  1. Click on Models in the left sidebar.
  2. Click on Add model in the top right corner.
  3. Select Demo Database as your source and click Continue to proceed.
  4. Select SQL Editor as your modeling method.
  5. Paste the SQL query from above into the editor on the left side of the page.
  6. Click Preview to execute the query.
  7. Click Continue to proceed.
  8. Give your model a name and unique slug (e.g., "All Users" and all-users).
  9. Select id as the primary key for your model.
  10. Click Finish to create your model!
We just created a model using a SQL query that retrieves all our current users. Next, we'll configure our sync to add these users to Delighted.

Step 4: Create a sync

  1. Click on Syncs in the left sidebar.
  2. Click on Add sync in the top right corner.
  3. Select All Users as your model and click Continue to proceed.
  4. Select Delighted as your destination and click Continue to proceed.
  5. Give your destination a name and unique slug (e.g., "Delighted All Customers Sync" and Delighted-all-customers-sync) and click Finish to proceed.
  6. Select People from the object dropdown.
  7. Select Upsert from the mode radio options.
  8. Select email and we will map it to Email from the external ID mapping field.
  9. Select first_name and we will map it to Name in the fields that we'd like to sync to Delighted.
  10. Select Yes in the Sending Survey section.
  11. Select Do Nothing in the Delete section.
  12. Click Continue to proceed to the last step.
  13. Select Interval to tell your sync to run on a set interval.
  14. Configure your sync schedule to run every 5 minutes.
  15. Click Finish to create your sync!
And we are done. Your Delighted sync configuration is complete!

Sync Configuartion

Object Selection

Hightouch supports syncing to the following Delighted resources:
  • People

Sync Modes

This integration supports Upsert.
In Upsert mode, records that are not found in Delighted given the provided identifier will be inserted. And existing records will be updated.

Record Matching

Records can be matched from your source to your Delighted workspace by Email.

Field Mapping

Hightouch allows you to sync columns from your source to the supported Delighted resouces:
MappingTypeDescription
Phone NumberStringPhone number of customer. Format must be E.164 (e.g. +17132746524).
Survey ChannelStringDefaults to email. Specify sms and provide a Phone Number to have the survey request sent via SMS.
NameStringName of person.
Delay To Send EmailNumberDelay in seconds before sending the survey.
Update Email ToStringField to update the person's email.
Update Phone Number ToStringField to update the person's phone number.

Custom Field Mapping

Hightouch allows you to set custom attributes. Any mappings from this section will be synced to the custom properties of each associated survey sent. You can add as many properties as you need.
Properties are a powerful way to analyze survey results on Delighted. To learn more about it, visit Properties Overview.

Sending Surveys

When configuring your Delighted sync form, There are a couple of choices provided to you when it comes to sending surveys. You can either:
  • Not send surveys to all synced records.
  • Send surveys to all synced records. Records that are created will be sent a survey. Records that are updated and are out of Delighted's survey throttling interval will be sent a survey.
  • Send surveys based on each record dynamically by providing a Boolean column. To use this feature, toggle Use Column, and select that respective column from the dropdown.

Delete Records

When the Hightouch sync engine recognizes that a record has been removed from your source, you can either:
  • Do Nothing.
  • Delete the record from Delighted.

Troubleshooting

Common errors

To date, our customers haven't experienced any errors while using the Delighted destination. If you run into any issues, please reach out to us. We are here to help!

Use the Hightouch debugger

Hightouch provides full visibility into the Delighted API calls made during each of your sync runs. We recommend reading our article on debugging tips and tricks.

Set up sync alerts

Hightouch can alert you of any sync issues via Slack, PagerDuty, SMS, and/or email. For details, please visit our article on alerting.

    Need help?

    Our team is relentlessly focused on your success. We're ready to jump on a call to help unblock you.

    • Connection issues with your data warehouse?
    • Confusing API responses from destination systems?
    • Unsupported destination objects or modes?
    • Help with complex SQL queries?

    or

    Feature Requests?

    If you see something that's missing from our app, let us know and we'll work with you to build it!

    We want to hear your suggestions for new sources, destinations, and other features that would help you activate your data.

On this page

OverviewWhy sending surveys should be based on the warehouseGetting StartedStep 1: Connect to DelightedStep 2: Connect to your data sourceStep 3: Create a modelStep 4: Create a syncSync ConfiguartionObject SelectionSync ModesRecord MatchingField MappingCustom Field MappingSending SurveysDelete RecordsTroubleshootingCommon errorsUse the Hightouch debuggerSet up sync alerts

Was this page helpful?