# Build audiences from survey answers in Permutive

Use the **SurveyCompleted** event to group participants by the answers they gave. For example, a stationery shop can build an audience of shoppers who said they bought a notebook as a gift.

## Connect a workspace

1. Copy the public API key for the receiving workspace from Permutive’s settings.
2. In Shopoll, open **Integrations → Product analytics** as a workspace owner or admin.
3. Select **Permutive**, enter the **Public workspace API key** and choose **Connect project**.
4. Complete a published survey. Choose **Refresh status** in Shopoll, then look for **SurveyCompleted** in Permutive.

## Inspect an event

| Property | What it contains |
| --- | --- |
| `survey_id` and `survey_title` | The survey the shopper completed. |
| `answers` | Answers keyed by question ID, including write-ins and uploaded file names. |
| `metadata` | Survey metadata, such as campaign parameters. |
| `email` and `phone` | An available respondent email and the first valid phone answer, normalized to international format. |
| `completed_at` and `completion_id` | The original completion time and a stable ID for matching a delivery across retries. |

Shopoll identifies a participant with the **shopoll_participant** alias. Anonymous surveys use a separate alias for each completion and omit contact properties and tracking metadata. Anything the shopper enters in an answer is still part of the answer.

## Check delivery

An unfinished survey, a draft preview or an imported response does not produce an event. If a delivery fails, check the connection status. HTTP 400 can indicate a mismatch with the event schema. Temporary failures are retried. If a receipt is lost after Permutive accepts an event, a retry can deliver it again with the same completion ID.

**Change project** replaces the saved key and cancels pending deliveries to the old project. **Disconnect** stops forwarding. [Permutive Events API](https://docs.permutive.com/api/events/track)
