# Connect Brevo

Use Shopoll answers to update contacts in Brevo and add respondents to a list when their answers match your rules.

## Connect your account

1. In Brevo, open **SMTP & API → API keys**. Create a key with access to contacts and lists.
2. In Shopoll, open **Integrations**, choose **Brevo**, then open **Configure contact sync**. Owners and admins can set up the connection.
3. Enter the key and choose **Connect Brevo**. Contact sync starts with new responses.

## Choose email lists

To update profiles without changing list membership, leave **Automatically add contacts to lists** clear. To add contacts to a list, enable the setting and choose **All surveys** or a single survey. Select **Browse Brevo lists** or enter the numeric list ID. A mapping for one survey overrides the default for that survey. Save your settings.

For a newsletter opt-in, leave automatic lists off for the survey. Open the saved opt-in question, expand **Logic** and choose **Subscribe to a Brevo list from this answer**. Set the answer to match, choose the list and save the workflow. The connection and list belong to this workspace. Disconnecting Brevo ends pending deliveries.

## Set up contact attributes

In Brevo, create the contact attributes you want to use before collecting answers. Shopoll converts question handles to uppercase and replaces punctuation with underscores. For example, a question with handle `discovery-channel` writes to `DISCOVERY_CHANNEL`. Reserved names or collisions receive an `ANSWER_` prefix.

| Brevo attribute | What Shopoll sends |
| --- | --- |
| Question handle | The submitted answer, including write-in detail when present |
| `SENTIMENT` | Average sentiment on the 0–100 scale, when participant analysis exists |
| `SENTIMENT_LABEL` | Positive, neutral or negative, stored in lowercase |
| `SHOPOLL_PARTICIPANT_URL` | A link to the participant in the merchant workspace |
| `SMS` | A validated international phone number, when available |

Use a number attribute for sentiment and text attributes for labels and most question answers. Brevo's existing SMS attribute holds the phone number. Saving it does not subscribe the contact to SMS.

## Check delivery

Choose **Test connection** to check whether the saved API key can read Brevo lists. If access is denied, correct the key permissions in Brevo or enter a replacement key and save it.

Submit a new response with an email answer. Shopoll can also identify a respondent through a matching order or an email invitation. When a verified order supplies a customer phone number, it takes precedence over a number in the survey. Anonymous surveys and imported responses are excluded.

In **Configure contact sync**, check the contact counts. A sent contact was accepted by Brevo. Temporary failures retry automatically. After correcting a key or access problem, choose **Retry failed contacts**. A response marked unidentified had no usable email.
