Send an NPS survey using Delighted

Website: https://delighted.com/ API Docs: https://delighted.com/docs/api

Delighted is a web app that allows to quickly and easily send NPS surveys to your customers. In our example, we’ll send an NPS survey one week after someone upgraded their account to see how likely they are to recommend us to their business partners.

Show me how!

The finished product:

Send an NPS survey with Delighted and Customer.io

If you don’t already have an account, you can sign up at https://delighted.com/.

Get your API Key

To send NPS surveys via API, you will need your API key. It can be found in your account under Settings > API. Only admins can view the API key for your account, so if you’re not the admin, reach out to the person in charge with the Delighted account in your company.

Create a new campaign

Inside your Customer.io account, create a new campaign— event triggered or segment triggered depending on what should trigger the Delighted NPS survey sending.

In our example we’ll use the "Upgraded" trigger segment and a 7 day delay.

Customize your campaign

We start by adding a delay to your Workflow to make sure our emails go out 7 days after a customer upgraded.

Also, because we’re looking to get higher open rates, we only want to send emails when our customers are likely to still be at work - Monday to Friday between 7 a.m. and 7 p.m. EST time. We achieve this by adding a time window:

Add your webhook action

Now that we set the stage, we’re ready to add the webhook action. We’ll call our webhook “Upgraded: 7 days survey."

After adding the webhook, click Add Request.

Customize your webhook headers

Next to POST add your Delighted API key followed by the People endpoint. The format needs to be:

https://[API-key]@api.delighted.com/v1/people.json

For example:

https://CMj7SuKdy4w0oVdAqXsE5hxXxXxXxXxX@api.delighted.com/v1/people.json
Customize your webhook body

For our survey we’ll use the content from

Customize the fields however you like; only the email is mandatory. The others are at your discretion, and you can find more information about them in the Delighted API docs.

At this point, your webhook should look like this:

Send Request

When you’re ready to test, you can click Send Request. Customer.io will show you the response from the Delighted API.

If you’re successful you’ll see a 200 OK Response.

Success!

You will see the surveys sent in your Delighted account under People:

Our survey (sent in German because that was the language we chose) looks like this:

We’re excited to hear how you end up using Delighted with Customer.io’s Webhook Action. If you have any trouble, let us know! We're happy to help.