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

# Mailchimp as a destination

> Send contacts from Nekt to a Mailchimp audience, with their fields, tags and subscription status.

Mailchimp is an email marketing platform where you keep your contacts in **audiences** (also called lists) and send them campaigns and automated journeys. The Mailchimp destination writes data from your Lakehouse into one audience: every row of your table becomes a contact, identified by its e-mail address. Contacts that do not exist yet are created; existing ones are updated with the new values.

With this destination you can keep audience fields (first name, phone, birthday, customer data you created in Mailchimp) in sync with your data, add and remove tags to build segments, and control the subscription status of new contacts. Contacts are sent in batches, so large tables load efficiently.

> [!NOTE]
>
> This destination writes contacts. To bring Mailchimp data (campaigns, reports, audience members) into Nekt, use the [Mailchimp source](https://docs.nekt.com/sources/mailchimp.md).

## 1. Add your Mailchimp access

1. In Mailchimp, create an API key: click your profile icon, then **Profile > Extras > API keys > Create A Key**. Copy the whole key, including the end after the dash (for example `-us21`), which tells Nekt where your account is hosted. Create it while signed in as an **Admin** or **Manager** user: other user levels cannot manage contacts.

2. Find the ID of the audience you want to write to: in Mailchimp, go to **Audience > All contacts**, open **Settings > Audience name and defaults**, and copy the **Audience ID** (for example `a1b2c3d4e5`).

3. In the [Destinations](https://app.nekt.ai/destinations) tab, click on the "Add destination" button located on the top right of your screen. Then, select the Mailchimp option from the list of connectors.

4. Click **Next** and you'll be prompted to add your access:

   * **API Key**: the key created in step 1.
   * **Audience ID**: the ID found in step 2.
   * **Status for new contacts**: the subscription status given to contacts that are not in the audience yet. See [Subscription status](#subscription-status) below before choosing.
   * **Status of existing contacts**: what a status column in your table does to contacts already in the audience. Keep **Keep their current status** unless you need otherwise.
   * **Dry run**: test mode. The connector checks your key, the audience and your mapping, validates every row and shows the first contacts it would send in the run log, **without writing anything to Mailchimp**. Use it before the first real load.
   * **Enable partial success**: whether the connector should keep loading after Mailchimp refuses a contact (for example, an invalid e-mail address). When off, the load stops after the batch in which a contact was refused; contacts accepted before that are kept.
   * **Tags for every contact** (advanced): comma-separated tags added to every contact this destination writes, for example `Nekt, Customers`. Tags that do not exist are created.
   * **Trigger tag automations** (advanced): when on, adding or removing tags can start Mailchimp automations (Customer Journeys) that start from those tags. It is off by default, so that loading thousands of contacts does not start a journey for each of them.
   * **Skip required field validation** (advanced): accept contacts that miss audience fields marked as required in Mailchimp.
   * **Batch size** and **Batch timeout** (advanced): how many contacts go to Mailchimp per batch (500 by default) and how long the connector waits for Mailchimp to process one batch (60 minutes by default).

5. Click **Next**.

## 2. Select your data to send

1. The next step is letting us know which data you want to send. Select the layer and then the desired table.

   > Tip: The table can be found more easily by typing its name.

2. Click **Next**.

## 3. Map your columns

Map the columns of your input table to Mailchimp fields. The column holding the contact's e-mail must be mapped to `email_address`; everything else is optional.

| Mailchimp field | What it does |
| :- | :- |
| `email_address` | **Required.** The contact's e-mail address. Rows with an empty or invalid address are refused and listed in the run log. If the mapped column no longer exists in your table, the load stops before writing anything. |
| Merge tag, e.g. `FNAME`, `LNAME`, `PHONE`, `BIRTHDAY` | An audience field. Use the field's **merge tag**, found in Mailchimp under **Audience > Settings > Audience fields and \*\|MERGE\|\* tags**. The field must already exist in the audience. |
| `ADDRESS.addr1`, `ADDRESS.addr2`, `ADDRESS.city`, `ADDRESS.state`, `ADDRESS.zip`, `ADDRESS.country` | The parts of an address field (replace `ADDRESS` with your field's merge tag). Street (`addr1`), city, state and zip are required together. |
| `tags` | Tags to add to the contact. Several tags go in the same cell, separated by commas (for example `VIP, Bought in 2026`). |
| `remove_tags` | Tags to remove from the contact, in the same format. |
| `status` | The contact's subscription status for this row: `subscribed`, `unsubscribed`, `pending` or `transactional`. See [Subscription status](#subscription-status). |
| `language`, `vip`, `email_type`, `timestamp_signup` | The contact's language (e.g. `pt`), VIP flag (yes/no), preferred e-mail format (`html` or `text`) and sign-up date. |
| `interests.<interest ID>` | Whether the contact belongs to a group (yes/no). |
| `marketing_permissions.<permission ID>` | GDPR marketing permission (yes/no), for audiences with GDPR fields enabled. Withdrawals (*no*) are always sent; grants (*yes*) only when **Status of existing contacts** is **Apply the row's status**, so a permission someone withdrew is never turned back on by mistake. |

* Values are sent in the format each Mailchimp field expects: dates as `YYYY-MM-DD`, birthdays as `MM/DD`, numbers as numbers. Drop-down and radio fields must match one of the field's options.
* **Empty and null values are never sent**, so a column without a value never erases data that is already in Mailchimp.
* If the same e-mail appears in more than one row of a load, the last row wins.

**Example input table:**

| email | first\_name | phone | segment\_tags | city |
| :- | :- | :- | :- | :- |
| [ana@example.com](mailto:ana@example.com) | Ana | +55 11 99999-0000 | VIP, Bought in 2026 | São Paulo |

Column mapping: `email` → `email_address`, `first_name` → `FNAME`, `phone` → `PHONE`, `segment_tags` → `tags`.

### Transforms

Each mapping accepts an optional ordered list of value transforms, applied before sending:

| Transform | Description |
| :- | :- |
| `trim` | Remove surrounding whitespace. |
| `uppercase` / `lowercase` | Change the text case. |
| `to_string` | Cast the value to text. |
| `round_int` | Round a decimal to the nearest integer. |
| `null_if:<x>` | Drop the value when it equals `<x>` (e.g. `null_if:-`). |
| `yesno_to_bool` | Convert `Sim`/`Não` (or `Yes`/`No`) to `true`/`false`. |
| `digits_only` | Keep only the digits, for example of a phone number. |

## Subscription status

Mailchimp only lets you send marketing e-mails to people who agreed to receive them, and protects people who unsubscribed. The destination follows these rules:

* **Status for new contacts** applies only to contacts the load **creates**:
  * **Subscribed**: the contacts already agreed to receive your marketing e-mails.
  * **Pending**: Mailchimp sends each new contact an e-mail asking them to confirm. Use it when you do not hold their consent, and on audiences that use double opt-in.
  * **Transactional**: the contact is kept for non-marketing messages only.
  * **Unsubscribed**: the contact is added but does not receive campaigns.
* A `status` column, when mapped, overrides this setting row by row.
* **Status of existing contacts** decides what that column does to contacts **already** in the audience:
  * **Keep their current status** (recommended): never changes it. People who unsubscribed stay unsubscribed.
  * **Only apply unsubscribes**: rows with `unsubscribed` unsubscribe the contact; nobody is ever subscribed again.
  * **Apply the row's status**: applies any status, **including subscribing again people who unsubscribed**. Use it only when you hold their renewed consent. `pending` on an existing contact moves a subscribed contact to pending: they receive no campaigns until they confirm the e-mail Mailchimp sends them. This is also the only option that grants GDPR marketing permissions.
* Mailchimp itself refuses to subscribe again, through an integration, people who unsubscribed, whose address bounced, or who asked to be forgotten. Those contacts are reported in the run log as *skipped by Mailchimp's consent rules*; this is expected and does not fail the load.

> [!WARNING]
>
> When your audience uses double opt-in and **Status for new contacts** is **Subscribed**, new contacts skip the confirmation e-mail. The run log warns you about it. Only keep it if these people already gave you their consent.

## 4. Configure your Mailchimp data destination

1. Describe your destination for easy identification within your organization. You can inform things like what data it brings, to which team it belongs, etc.

2. To define your [Trigger](https://docs.nekt.com/get-started/core-concepts/triggers), consider how frequently you need to have the data updated on the destination (every day, once a week, only at specific times, etc.).

3. Click **Done**.

### Check your new destination!

1. Once completed, you'll receive confirmation that your new destination is set up!

2. You can view your new destination on the [Destinations](https://app.nekt.ai/destinations) page. Now, for you to be able to see it on Mailchimp, you have to wait for the pipeline to run. You can monitor it on the [Destinations](https://app.nekt.ai/destinations) page to see its execution and completion. If needed, manually trigger the pipeline by clicking on the refresh icon. Once executed, your contacts should be seen in your Mailchimp audience.

The run log shows, for each table, how many contacts were saved, refused (with Mailchimp's reason for the first ones), skipped by Mailchimp's consent rules, and how many had their tags updated. The number of records loaded counts only the contacts Mailchimp saved. If no row of a table could be saved, the run is marked as failed.

> [!TIP]
>
> Start with **Dry run** enabled and a small table. Check the contacts shown in the run log, then turn **Dry run** off to write for real. On recurring loads, send only the rows that changed instead of the full table.

> If you encounter any issues, reach out to us via Slack, and we'll gladly assist you!


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