> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dovetail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sprig

> Import Sprig survey responses into Dovetail as a source, choose which surveys to include, and analyze open-text answers in any channel.

![The Sprig logo](https://mintcdn.com/dovetail-e5aa4160/t3rRHKxXcX5WI10y/images/integrations/sprig.png?fit=max\&auto=format\&n=t3rRHKxXcX5WI10y\&q=85\&s=1fbb2d1364c9389e3825ccb97286e895)

## Overview

The Sprig integration imports survey responses from the in-progress and completed Sprig surveys you select. Dovetail analyzes the open-text answers, and brings NPS, rating, and choice answers across as fields you can filter by. Each survey you select becomes a dataset.

| To | Who | See |
| :- | :- | :- |
| Connect Sprig to Dovetail | A workspace admin | [Create the Sprig source](#create-the-sprig-source) |
| Add Sprig data to a channel | Users with **Can use** on the source who can edit the channel | [Channel setup](https://docs.dovetail.com/help/channels/channel-setup.md) |
| Use Sprig when it isn’t available to you | Any user | [Request a source](https://docs.dovetail.com/help/sources/create-a-source.md#request-a-source) |

A workspace admin creates the Sprig source once for the whole workspace, and channels then add its surveys. [Learn more about Sources →](https://docs.dovetail.com/help/sources.md)

***

## Before you start

### In Dovetail

* A workspace admin creates the source. Other users can [request it](https://docs.dovetail.com/help/sources/create-a-source.md#request-a-source).
* The credentials you connect with are shared by the whole workspace. See [Shared credentials](https://docs.dovetail.com/help/sources/create-a-source.md#shared-credentials) for how to choose an account.

### In Sprig

* **Someone with admin access in Sprig.** They copy the API key for Dovetail. They don’t have to be the workspace admin who creates the source.
* **Your Sprig API key.** You can find it in your Sprig dashboard under **Settings**. Sprig has separate **Development** and **Production** keys. Use the key for the environment whose surveys you want to import.
* **Identified respondents, if you want responses linked to contacts.** Dovetail can link a response to a contact only when the respondent is an identified Sprig user with an email address. See [Customer emails](#customer-emails).

![The Sprig Data Export API page showing Development and Production keys](https://mintcdn.com/dovetail-e5aa4160/7QqgoIBjDtABCOvh/images/sprig-01.png?fit=max\&auto=format\&n=7QqgoIBjDtABCOvh\&q=85\&s=cb4e2f399fbd546c8d4dffb8d076688d)

***

## Create the Sprig source

**1. Open Sources and select Sprig**

In the sidebar, select **Sources**, then select **Sprig**.

**2. Connect Sprig**

Paste your key into the **API key** field, then select `Continue`.

**3. Choose surveys and an import period**

In **Select surveys**, choose one or more surveys. You don’t choose questions: Dovetail analyzes the open-text answers in each survey. Then choose an **Import period**. See [Import period](https://docs.dovetail.com/help/sources/create-a-source.md#import-period).

**4. Choose who can use the source**

Choose who can use the source, then select `Next`. See [Create a source](https://docs.dovetail.com/help/sources/create-a-source.md#create-the-source).

**5. Create the source**

Choose whether to auto-redact sensitive information in the source’s data, then select `Create source`. The first import starts right away. See [Redact data from sources](https://docs.dovetail.com/help/blur-and-redact.md#redact-data-from-sources).

### Authentication and permissions

Sprig connects with an API key. Dovetail uses the key only to read your surveys, their responses, and respondents’ email addresses for [contact linking](#customer-emails). If the key can’t read Sprig users, responses still import, but they aren’t linked to contacts. Dovetail doesn’t write anything to Sprig.

The API key is stored once for the whole workspace. To change the account or credentials, see [Reconnect a source](https://docs.dovetail.com/help/sources/manage-a-source.md#reconnect-a-source).

***

## Datasets

Each survey you select becomes its own dataset and syncs on its own, so a problem with one survey doesn’t stop the others. A channel can add some or all of the source’s surveys.

**Select surveys** lists the surveys the API key can see whose status is `In progress` or `Completed`.

To add more surveys later, open the source and select `Add survey`. See [Add datasets](https://docs.dovetail.com/help/sources/manage-a-source.md#add-datasets).

***

## What gets imported

Each survey submission becomes one data point, named after the survey. The respondent’s open-text answers become the data point’s conversation, as question-and-answer pairs, and the other details become fields you can filter by. A submission with only score or choice answers, such as an NPS rating with no comment, still becomes a data point, but has no text for Dovetail to analyze.

### Always imported

| Field | Notes |
| :- | :- |
| **Survey ID** | The Sprig survey ID. |
| **Response group UID** | Identifies the submission in Sprig. |
| Open-text answers | Each open-text question the respondent answered, paired with its question text. This is the text Dovetail analyzes. |
| Submission time | The time of the respondent’s first answer in the submission. Used as the data point’s timestamp. |

### Imported when present

| Field | Notes |
| :- | :- |
| **Recipient email** | The respondent’s email address. See [Customer emails](#customer-emails). |
| Score fields | One field for each NPS or rating scale question the respondent answered, named after the question. See [Scores and field types](#scores-and-field-types). |
| Choice fields | One field for each choice question the respondent answered, named after the question, with the question’s options from the survey. |

### Not imported

* Submissions where every answer is empty.
* Respondent names. Sprig doesn’t provide one to Dovetail.
* Sprig user attributes other than the email address, custom metadata, and the page URL the survey was shown on.
* Sprig’s own analysis of your responses.

To rename the fields above or change their types, see [Source fields](https://docs.dovetail.com/help/sources/source-fields.md#rename-fields-and-change-field-types). Need a field that isn’t on this list? Let us know.

### Customer emails

This data includes customer email addresses, so Dovetail can link data points to contacts. See [Create contacts from source data](https://docs.dovetail.com/help/contact-settings.md#create-contacts-from-source-data).

Sprig’s response data doesn’t include email addresses, so Dovetail looks up each respondent’s email address in Sprig. For a response to carry an email address:

* The survey is shown to identified visitors, so each response is tied to a Sprig user ID.
* The user has an email address set in Sprig.
* The API key can read Sprig users.

Anonymous responses still import as data points, but they aren’t linked to a contact. Because Sprig provides no respondent name, contacts created from Sprig data have an email address only.

### Scores and field types

Dovetail reads each question’s type from Sprig, and turns score and choice questions into fields named after the question:

* NPS questions become **NPS** fields.
* Rating scale questions become **Rating** fields, whatever their scale. Sprig doesn’t send a rating scale’s range, so Dovetail can’t tell a CSAT question from any other rating question.
* Choice questions become **Single select** fields when respondents pick one option, and **Multi select** fields when they can pick several. An answer that matches none of the options, such as an “Other” entry, stays in the conversation as text.

To chart scores in Dashboards, the field must use the NPS or CSAT type. See [NPS and CSAT scores for Dashboards](https://docs.dovetail.com/help/sources/source-fields.md#nps-and-csat-scores-for-dashboards).

To chart a Sprig CSAT question that uses a 1–5 scale, change its field from Rating to CSAT on the source after the first sync. See [Rename fields and change field types](https://docs.dovetail.com/help/sources/source-fields.md#rename-fields-and-change-field-types).

### Sync behavior

The first import starts when the source is created. After that, the source syncs about every hour. See [Manage a source](https://docs.dovetail.com/help/sources/manage-a-source.md#sync-a-source-now).

* **Import period.** The import period applies to when each response was created in Sprig. Responses created before the start of the period aren’t imported.
* **Ongoing sync.** Each sync imports responses created since the latest response already imported.

***

## Troubleshooting

**Dovetail says my API key is invalid.** Check that you copied the whole key from your Sprig dashboard. If you’re not sure, generate a new key in Sprig and use that.

**A survey shows “Your Sprig API key was rejected.”** Sprig refused Dovetail’s request for that survey, so the survey stops syncing. Check in Sprig that the API key is still active and can see the survey, then sync the source again. See [Source statuses](https://docs.dovetail.com/help/sources/manage-a-source.md#source-statuses).

**The source needs to be reconnected.** Sprig no longer accepts the API key. Generate a new key in Sprig, then reconnect the source with it. See [Reconnect a source](https://docs.dovetail.com/help/sources/manage-a-source.md#reconnect-a-source).

**My survey doesn’t show up in Select surveys.** Dovetail lists only surveys with status `In progress` or `Completed`. Launch the survey in Sprig, then open the list again.

**My survey has responses in Sprig, but nothing imported.** Check that:

* The responses were created within the import period. See [Get older data](https://docs.dovetail.com/help/sources/troubleshooting.md#get-older-data).
* The channel includes the survey’s dataset. See [Missing or outdated data](https://docs.dovetail.com/help/sources/troubleshooting.md#missing-or-outdated-data).

**Responses aren’t linked to contacts.** Dovetail links a response to a contact only when the respondent is an identified Sprig user with an email address. See [Customer emails](#customer-emails). Also check that the source has contact automation enabled. See [Create contacts from source data](https://docs.dovetail.com/help/contact-settings.md#create-contacts-from-source-data).

**Sprig isn’t available when I set up a channel.** See [Troubleshoot sources](https://docs.dovetail.com/help/sources/troubleshooting.md#source-not-available-in-a-channel).

***

## Revoke access in Sprig

Pausing or deleting the source in Dovetail doesn’t revoke the API key in Sprig. To cut off Dovetail’s access, delete the API key in Sprig. After you delete it, the source can’t import new responses, and any other tool that uses the same key loses access too.

To pause or delete the source in Dovetail, see [Manage a source](https://docs.dovetail.com/help/sources/manage-a-source.md). To take its data out of one channel, see [Channel setup](https://docs.dovetail.com/help/channels/channel-setup.md#remove-a-dataset-or-source).

***

## Related guides

> [card] [Sources](https://docs.dovetail.com/help/sources.md)
>
> What a source is, and how its data reaches channels.

> [card] [Channel setup](https://docs.dovetail.com/help/channels/channel-setup.md)
>
> Add the source’s surveys to a channel, or remove them.

> [card] [Manage a source](https://docs.dovetail.com/help/sources/manage-a-source.md)
>
> Check a source’s status, sync it, pause it, or add surveys.

> [card] [Dashboards](https://docs.dovetail.com/help/dashboards.md)
>
> Chart NPS scores from your Sprig surveys.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.