# Connect survey responses to Klaviyo

Send survey answers to a person’s Klaviyo profile. Use them to create customer groups or start email flows. Saving answers as profile fields and adding people to lists are separate options.

## Connect an account

1. Create a private API key in the Klaviyo account you want to use. Give it **Accounts read**, **Profiles read** and **Events write**.
2. In Shopoll, open **Integrations** as a workspace owner or admin. Find **Klaviyo**, enter the key and choose **Connect Klaviyo**. Check the account name after connecting.
3. Leave **Save answer properties on Klaviyo profiles** selected if you want each profile to show its latest answers. Clear it to send answers only with events. Choose **Save settings**.

If the workspace has an owner notification email, Shopoll sends a connection event for that address.

## Which responses get sent?

Shopoll queues new, identified responses collected after connection. A finished response is ready to send after one minute. An unfinished response is ready after ten minutes with no new answer. Each event uses the survey title in its metric name and includes a **response_status** of **partial** or **completed**. Historical imports and anonymous surveys are excluded.

A survey can identify someone through a contact answer, a personal invitation, a linked customer or a [Klaviyo campaign link](/tutorials/klaviyo-url-templates.md). When both an email and a phone number are supplied, Shopoll identifies the event by email. A phone-only response uses the phone number. Contact answers travel in the event body.

## Subscribe people to an email list

The list mapping applies to every completion with an email address. Use it only when every eligible completion gives email marketing consent. Do not use this setting if people can decline email marketing and still finish the survey. Request **Lists write**, **Profiles write** and **Subscriptions write** on the private key. Add **Lists read** to browse lists in Shopoll.

Expand **Email subscription lists** and choose **Add list mapping**. Select a survey and enter its Klaviyo list ID. **Load Klaviyo lists** lets you look up a list by name. **All surveys** supplies a fallback for surveys without their own mapping. Save the settings before collecting responses. To stop subscribing new people, remove the mapping and save.

![Email subscription list settings with a survey selection and a Klaviyo list ID.](/media/klaviyo.png)

A workspace-wide list setting needs a completed response and an email address. It can add someone back to a Klaviyo list even if they previously unsubscribed there. Shopoll skips addresses suppressed for email in this workspace. Phone numbers can identify people but do not grant SMS consent.

## Subscribe only people who opt in

Add a choice question such as “Would you like our newsletter?” and include an explicit decline option. Save the question. A workspace owner or admin can set up the rule from either the question or the survey.

1. Expand **After this answer** on the saved question, open **Email subscriptions** and choose **Subscribe to a Klaviyo list from this answer**. Shopoll opens a new workflow rule with this question selected.
2. Set **Value to match** to the opt-in answer, such as **Yes, email me**. Enter the **Klaviyo list ID** or use **Browse Klaviyo lists** on a live connection.
3. Choose **Save workflows**. Publish any outstanding changes to the survey questions. To wait for a completed response, add a response status condition for **Fully complete** and select **All conditions match**.

![A newsletter workflow matching the affirmative answer and subscribing the person answering to the Readers list.](/media/klaviyo-rule.png)

You can also open **Workflow actions**, choose **Add rule**, set your conditions and choose **Subscribe to a Klaviyo list** under **Action type**. Add a second action to send the same qualifying respondent to another list.

The workspace-wide list setting and the answer-based rule run separately. If an account mapping already covers this survey, every identified completion can enter its mapped list, including people who decline the optional question. Remove that mapping when only opt-ins should subscribe.

Shopoll checks the current answer and email before queuing the subscription. It sends at most one accepted subscription request per response and list, including when several rules match. Test with an opt-in and a decline using separate email addresses you control.

## Check delivery

Choose **Test connection** to check the saved key’s account access. You can run this before receiving any survey answers. The directory shows when Klaviyo last confirmed access. Check delivery activity separately to see whether events and subscription requests reached Klaviyo.

To replace an expiring or revoked key, open **Replace API key**, enter a **Replacement private API key** for the same Klaviyo account and select **Save settings**. Your list mappings and pending deliveries stay in place. On older connections, run **Test connection** before revoking the old key so Shopoll can recognise the account. If it was already revoked before its account was recorded, disconnect and reconnect. Disconnecting discards pending deliveries and list mappings.

Use **Refresh status** to check pending events, failed requests and responses without contact details. **Retry failed deliveries** tries failed requests again when they can still be sent. If a subscription needs review after an interrupted request, check the profile’s consent history in Klaviyo before taking action. Klaviyo may take time to show a request it has accepted.

Continue with [customer segments](/tutorials/klaviyo-segmentation.md) or [a discount reminder](/tutorials/klaviyo-discount-reminder.md).
