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

# Move from Klaviyo

> Bring your Klaviyo consent, do-not-email list, lists, segments and designs into OpenEmails, then switch Klaviyo off.

From Klaviyo to your own copy:

* **Outcome:** OpenEmails blocks everyone who unsubscribed, bounced or complained in Klaviyo. Your subscribers arrive as contacts. Your lists, segments and designs come over. Klaviyo stops sending email.
* **Before you start:** the first pull of your Shopify customers must finish. Your agent can't start a migration before it does.
* **You'll touch:**
  * Klaviyo: one read-only API key, then the cutover, where you set flows and forms to draft.
  * The OpenEmails app: **Settings > Klaviyo**, and one approval page.

> [!WARNING]
>
> **No campaign or flow sends until Klaviyo is settled.** From install, OpenEmails holds campaign and flow emails. The hold lifts when an approved migration brings over your Klaviyo do-not-email list, or when a staff member confirms there's no Klaviyo account. Shopify can show someone as subscribed who complained or hard-bounced in Klaviyo, and this hold keeps them safe.
>
> Test emails and notices to the store owner still go out during the hold. Test emails skip the consent check, but they respect the do-not-email list. **Settings > Sending limits** shows the hold, and your agent's status names it. Once lifted, the hold never comes back.

## What moves, and what doesn't

OpenEmails only reads Klaviyo. It never changes anything in your Klaviyo account.

| From Klaviyo | In OpenEmails |
| - | - |
| Unsubscribes, bounces, complaints and Klaviyo's own hand-added suppressions | The do-not-email list, first, with Klaviyo's dates. A suppression on one list counts as unsubscribed from everything. |
| The same people, if they're Shopify customers | Marked unsubscribed in Shopify, with the date they unsubscribed in Klaviyo. |
| Subscribed profiles | Contacts, with their consent date, how they subscribed and their names. If they declined open or click tracking in Klaviyo, tracking is declined here. |
| Subscribed profiles who are Shopify customers | Also marked subscribed in Shopify, with the Klaviyo date and opt-in level. Newer Shopify consent and active do-not-email entries win. |
| Profiles never subscribed | Don't come over. |
| Profiles with SMS consent | Kept in the Klaviyo copy. OpenEmails doesn't send SMS. |
| Lists | Lists under their Klaviyo names. If a name is already taken here, the list gets a number, such as "Newsletter (2)". |
| Segments whose rules can come over | Segments under their Klaviyo names. They update as contacts match or stop matching. |
| Segments whose rules can't come over | A fixed list of the members at the time of the read. Its name is the segment's name with "from Klaviyo" and the date. It doesn't update. |
| Templates, flow emails and campaign emails | Kept as Klaviyo designs. Your agent can study them, or turn one into an OpenEmails email with Klaviyo's tags converted. |
| Images from your brand, kept designs and universal blocks | Copied into Shopify Files. |
| Every profile, whole | The Klaviyo copy, kept as Klaviyo returned it for as long as your copy runs. |
| Flows | Not imported. OpenEmails reads them for the approval page and the cutover checklist. Your agent [rebuilds your flows](https://docs.openemails.com/use/flows.md) in OpenEmails. |
| Scheduled campaigns and signup forms | Stay in Klaviyo. The cutover checklist lists them for you to switch off. |
| Opens and clicks recorded in Klaviyo | Don't come over. The date someone subscribed does. |

To mark Shopify customers subscribed or unsubscribed, the migration needs **Bulk mutations** access for your app. Without it, those writes fail. OpenEmails still records the consent and the do-not-email list itself. See [Turn on Bulk mutations](https://docs.openemails.com/setup/set-up-with-your-agent.md#turn-on-bulk-mutations).

Expect fewer contacts than Klaviyo has profiles. The approval page counts every profile left out, and why.

Two notes on segments:

* **Engagement segments.** A segment that uses Klaviyo's engagement comes over as a segment. It also gets a dated "from Klaviyo" list with Klaviyo's members, and the segment includes them for its window. If a segment exists, send to it. Otherwise, use the dated list.
* **Active on Site.** OpenEmails doesn't track site visits. A segment that uses Klaviyo's Active on Site comes over without that condition, and the approval page says so. If that would include more people than in Klaviyo, the segment comes over as a dated list instead.

> [!NOTE]
>
> **Double opt-in.** OpenEmails has no double opt-in step. The approval page lists your Klaviyo lists that use it, so you know which ones had a confirmation email.

> [!NOTE]
>
> **Very large accounts.** A migration of a very large Klaviyo account is not proven yet. Talk to us before you start one.

## Run the migration

**1. Connect Klaviyo**

* In Klaviyo, go to your account's settings, then **API keys**. Create a private API key with read-only access.
* In the OpenEmails app, open **Settings > Klaviyo** and paste the key into **Klaviyo private API key**.
* Choose **Check account**. OpenEmails asks Klaviyo whose key it is, then shows the organization, website and account ID. It saves nothing yet.
* Make sure it's your store's Klaviyo account. A key from another store's account would bring over that store's contacts.
* Choose **Connect account**. OpenEmails stores the key encrypted. No agent can see it, and no agent tool can connect or disconnect Klaviyo.

> [!TIP]
>
> **Checkpoint:** **Settings > Klaviyo** shows **Connected** and your Klaviyo account. The connection alone doesn't lift the hold or bring anything over.

**2. Ask your agent to read your account**

* Ask your agent: "Bring my Klaviyo data over to OpenEmails." It starts a migration run with `prepare_klaviyo_migration`.
* The run reads first: every profile, every list with its members, the chosen segments' members, the flows, the designs and the account. The read needs no approval and changes nothing else.
* By default the run reads Klaviyo's **Engaged (30 Days)**, **Engaged (60 Days)** and **Engaged (90 Days)** segments, where you have them. Tell your agent if you want other segments, or none.
* A large account takes a while to read. Your agent follows the run with `get_klaviyo_migration`. **Migration run** on **Settings > Klaviyo** shows each phase with its progress.
* Only one run is open at a time. A new run ends any run that hasn't been applied.

> [!TIP]
>
> **Checkpoint:** the run reads **Ready to review**, and your agent can show you its preview.

**3. Review and approve**

* Your agent asks for your approval and gives you the link. One approval covers the whole run.
* The page, **Bring over your Klaviyo account**, shows the Klaviyo account and when it was read. Then it shows what the read found:
  * Addresses for the do-not-email list, by reason.
  * Shopify customers to mark unsubscribed or subscribed. These counts are estimates, and the run checks them again as it applies. The run needs [Bulk mutations access](https://docs.openemails.com/setup/set-up-with-your-agent.md#turn-on-bulk-mutations) to write them.
  * Contacts that arrive subscribed, and profiles left out, by reason.
  * Your lists, the lists on double opt-in, and the Klaviyo flows each list starts.
  * How each segment comes over.
  * Your designs and images.
* The approval is bound to **Contacts made subscribed**. The run can't make more contacts subscribed than the page shows.
* Check the account name and website one more time. Then choose **Approve**.
* You can't approve a read that is more than 7 days old. Ask your agent for a new one.

> [!TIP]
>
> **Checkpoint:** the run moves to **Applying**.

**4. Let it apply**

* The run applies only what the read found, in this order:
  1. Anyone who unsubscribed, complained or bounced in Klaviyo since the read began.
  2. The do-not-email list. The Klaviyo hold lifts once this is in.
  3. The Shopify customers on that list, marked unsubscribed in Shopify.
  4. Contacts and their consent. Anyone who unsubscribed here more recently stays unsubscribed.
  5. The Shopify customers who subscribed in Klaviyo, marked subscribed in Shopify.
  6. Lists and segments.
  7. Images, copied to Shopify Files.
  8. The Klaviyo copy, designs included.
* If the run would make more contacts subscribed than you approved, it stops and needs a fresh approval.
* An image that is too large or can't be read doesn't stop the run. The run reports it.
* Steps 3 and 5 need [Bulk mutations access](https://docs.openemails.com/setup/set-up-with-your-agent.md#turn-on-bulk-mutations). Without it, Shopify refuses those writes, and **Home** says so.
* When the run finishes, ask your agent to check for failed images, incomplete reads and failed Shopify writes.

> [!TIP]
>
> **Checkpoint:** the run reads **Applied**, and the Klaviyo hold is gone from your agent's status.

**5. Switch Klaviyo off**

* **Switch off Klaviyo** on **Settings > Klaviyo** is your cutover checklist. It lists what's still on in Klaviyo: **Live flows**, **Scheduled campaigns** and **Live forms**. Your agent sees the same list.
* The checklist marks each abandoned-checkout flow. It marks a flow that starts when a contact joins a list as **Starts on list join**, with its list. It marks an SMS-only flow as **SMS only**.
* Plan each change around its replacement. Before you switch a Klaviyo flow off, make sure its replacement here is ready to take over. For a form, wait until its replacement collects subscribers.
* In Klaviyo, set each email flow and form to draft, and cancel each scheduled email campaign. Don't delete them.
* Leave SMS-only flows live. If a flow sends both email and SMS, keep its SMS in a separate live flow before you set it to draft.
* The checklist doesn't show a scheduled campaign's channel. Check the channel in Klaviyo, and leave SMS campaigns scheduled.
* OpenEmails reads Klaviyo again every 15 minutes, so an item drops off the checklist soon after you switch it off.

> [!TIP]
>
> **Checkpoint:** the checklist shows no live email flows, no scheduled email campaigns and no live forms.

> [!WARNING]
>
> **Two emails for one event.** While a Klaviyo flow and your flow for the same trigger are both live, a person gets two emails. That applies to abandoned-checkout flows and to welcome flows. A flow's approval page names any Klaviyo abandoned-checkout flow that is still live.

![Settings > Klaviyo: the connected Klaviyo account and the Klaviyo hold, lifted.](https://mintcdn.com/openemails/_EEXRkFEoy5ouZ3V/images/use/klaviyo-settings.png?fit=max\&auto=format\&n=_EEXRkFEoy5ouZ3V\&q=85\&s=e2488be4354ac86682311c994dff9707)

**6. Keep Klaviyo connected for 30 days, then disconnect**

* Emails that Klaviyo already sent carry Klaviyo's unsubscribe links. The law expects those links to work for 30 days. Keep Klaviyo open and connected for 30 days after the last email it sends.
* While Klaviyo is connected, OpenEmails reads it once a day for new unsubscribes, spam complaints and hard bounces. It puts them on your do-not-email list. It also marks the matching Shopify customer unsubscribed for an unsubscribe or a complaint.
* This daily catch-up needs no approval, because it only means less email. It never adds a subscriber, and it never adds a soft bounce.
* Then choose **Disconnect Klaviyo**. OpenEmails deletes the saved key, so the checklist and the daily catch-up stop. Everything already brought over stays.
* You can't disconnect while a run is reading or applying.

> [!TIP]
>
> **Checkpoint:** **Settings > Klaviyo** shows **Not connected**.

## One welcome at cutover

Switch the welcome flow over in order, so a new subscriber gets one welcome. The checklist marks Klaviyo's welcome flow **Starts on list join**, with its list.

If **New subscribers join this list** is off for that list:

1. Get your welcome flow approved and live.
2. Turn on **New subscribers join this list** for the list that Klaviyo's welcome starts on.
3. Right after, set Klaviyo's welcome flow to draft if it sends email.
4. Run the migration once more and approve it. Contacts who joined that list in Klaviyo since the last read come over without a welcome.

If **New subscribers join this list** is already on:

1. Ask your agent to prepare the welcome flow for approval.
2. Set Klaviyo's welcome flow to draft if it sends email.
3. Approve your welcome flow so it goes live.
4. Run the migration once more and approve it. Contacts it brings over start no welcome.

In the second order, do steps 2 and 3 back to back. A subscriber who joins between them gets no welcome. In both orders, leave an SMS-only welcome flow live, and keep any SMS actions before you draft a mixed flow.

## Cancel or run it again

Your agent can cancel a run with `cancel_klaviyo_migration`. It needs no approval to do it.

* **While the run reads:** the run ends, and OpenEmails deletes what it read.
* **While the run applies:** it stops at its next chunk and keeps what it already brought over. Nothing is rolled back.
* **Once applied:** the run can't be cancelled.

A rerun is a new run, with its own read and its own approval. It adds nothing twice. It keeps a list deleted if you deleted it here, and it keeps a name you changed here. It never re-subscribes someone who unsubscribed here since. After you disconnect Klaviyo, a rerun reads from the Klaviyo copy instead, without lists or segment members.

OpenEmails deletes a read that is never applied. That happens when the run is cancelled or declined, when a newer run replaces it, or when it sits 7 days with no open request.

## Switch back to Klaviyo

Before Klaviyo sends again, carry the do-not-email entries from OpenEmails back. The daily catch-up runs only from Klaviyo to OpenEmails.

1. Pause sending here, and keep Klaviyo's flows and campaigns off.
2. On **Contacts > Do-not-email list**, choose **Export entries**. Download `do-not-email.csv` within 24 hours.
3. Keep the rows that are not lifted. Put the `address` and `address_base` values in one column and remove duplicates.
4. Search Klaviyo for other plus-tag versions of each base address, and add them. Klaviyo has no wildcard suppression.
5. In Klaviyo, import the file as suppressions. Never upload it as subscribers.
6. Confirm the addresses are suppressed before you turn Klaviyo's sending on.

The export leaves out erased people, and OpenEmails keeps no list of them. Erase them in Klaviyo too. If you can't identify everyone erased here since cutover, keep Klaviyo's sending off.

## No Klaviyo account to bring over

If your store never used Klaviyo, open **Settings > Klaviyo** and choose **Confirm no Klaviyo account**. This is an approval. OpenEmails checks it with Shopify, records it with your name and lists it on **Approvals**. Your agent can neither ask for it nor give it. The Klaviyo hold lifts, and email can go out once nothing else holds it. If Klaviyo is connected, disconnect it first.

Next, [build your flows](https://docs.openemails.com/use/flows.md). If email still isn't going out, see [why a send is held](https://docs.openemails.com/help/a-send-is-held.md).


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