# Setka and Shopify

With the help of Zapier integration, you can automatically export Setka posts' HTML-code and other data from your [Setka Account](/help-center/account-settings.md) and then send this data to other CMS.

This is how you can set automatic posts export to Shopify via [Zapier integration.](/help-center/integrations/setka-and-zapier.md)

{% content-ref url="/pages/-MR0gD\_fGOyJi5dDlYGg" %}
[Setka and Zapier](/help-center/integrations/setka-and-zapier.md)
{% endcontent-ref %}

## Before you start <a href="#h_01etabfkpjnrj6yjckp1f3jqf9" id="h_01etabfkpjnrj6yjckp1f3jqf9"></a>

{% hint style="warning" %}
You might need a [Zapier premium account](https://zapier.com/app/billing/plans) to connect Setka to Shopify.
{% endhint %}

## Set Zapier for posts' export to Shopify <a href="#h_01etabggdyewe1f7ayzvwyv7zm" id="h_01etabggdyewe1f7ayzvwyv7zm"></a>

Please see this short video to see how to set it up:&#x20;

{% embed url="<https://drive.google.com/file/d/1-nfx2Wt2x0O5dj5bMNI7UC6XUbXSh5t-/view?usp=sharing>" %}
Video showing how to setup Setka and Shopify integration via Zapier&#x20;
{% endembed %}

To automatically export posts from your [Setka account](/help-center/account-settings.md), you need to create a new Zap and set Setka as a trigger and Shopify as action there:

### Step 1: Create a new Zap

1\. Open your Zapier account and click **Make a Zap** in a left-hand corner:

![Screenshot of Zapier interface: Arrow pointing at "Make a Zap" button](/files/-MR2JfPSCywcbJz9QNkr)

2\. Find **Setka** in the list of available apps and set it as a trigger:

![Screenshot of Zapier Interface: Searching for Setka app to set it as a trigger](/files/-MR2JyToGW4OKPteeMhi)

### Step 2. Choose a trigger event <a href="#h_01et862s3tet304eecd9wnmrr6" id="h_01et862s3tet304eecd9wnmrr6"></a>

Find **New post** in a **Trigger Event** list and click **Continue**. This script will work once you publish a new post in your Setka account.

![Screenshot of Zapier interface: "New post" is selected as a trigger event](/files/-MR2K6eqTN0FPtVIDEbg)

### Step 3. Connect Setka account <a href="#h_01et862zer1erawryew1k1aqkr" id="h_01et862zer1erawryew1k1aqkr"></a>

{% hint style="success" %}
If you have already connected your [account](/help-center/account-settings/untitled.md), skip the connection steps. Just select the account from **Choose the account...** dropdown list, as described further.
{% endhint %}

Click **Sign in to Setka** and enter your license key in the appeared window:

![Screenshot of Zapier interface: "Sign in to Setka" button](/files/-MR2KOIHV6Axqan9aVs7)

The license key can be found in an **Integrations** section in your [Setka account ](/help-center/account-settings.md)once you click on **Other CMS.**

![Screenshot of Setka interface: Integrations tab showing fields with your license keys](/files/-MR2KgBVGE7p5mFM3aOT)

Choose the added account from the appeared list and click **Continue** to go to the next step.&#x20;

![Screesnhot of Zapier interface: Choosing Setka account in the dropdown](/files/-MR2Ka7gDzeab7tJnger)

### Step 4. Set up a trigger <a href="#h_01etmyk949eps7p310epf9wfha" id="h_01etmyk949eps7p310epf9wfha"></a>

Choose **Published** in the **Post State** dropdown list. Thus, changing the post's state to **Published** will launch the following script:

![Screesnhot of Zapier interface: Setting up a trigger - choosing "Published" in the Post State dropdown list](/files/-MR2KwJzQJEiFW5c-cQz)

### Step 5. Test the trigger <a href="#h_01et8635cyj81eyyajzf4r83s2" id="h_01et8635cyj81eyyajzf4r83s2"></a>

To test the trigger, try to publish a post in your [Setka account](https://editor-help.setka.io/hc/en-us/articles/editor.setka.io). To do that, click **Publish** on the post's badge. After that, click the **Test trigger** button in the Zapier interface and check the data received.

![Screenshot of Setka editor interface: "Publish" button on a post badge](/files/-MR2L4iqYvnAqYGva-cG)

### Step 6. Add an action <a href="#h_01et863hmng6sw3mfk9jxxtxkp" id="h_01et863hmng6sw3mfk9jxxtxkp"></a>

1\. Find **Shopify** in an **Action** block with the help of a search field. Choose it.

![Screenshot of Zapier interface: choosing Shopify in an action dropdown](/files/-MR2Qzq6K4xEVg_NYp5g)

2\. Choose a **Create Blog Entry** action from the appeared **Action Event** list and click **Continue**:

![Screenshot of Zapier interface: Choosing "Create Blog Entry" in the "Action Event" dropdown](/files/-MR2QtTGi27cQWb3iitm)

### Step 7. Connect Shopify account <a href="#h_01etabhrwrac696nc2y556fq2z" id="h_01etabhrwrac696nc2y556fq2z"></a>

1\. Click **Sign in to Shopify** and insert login data. Skip this step if you have already connected the account.

2\. Choose the connected account from an appeared **Shopify account: (required)** list and click **Continue**.

### Step 8. Mark out the data for Shopify <a href="#h_01etabk5b2rqet16txbnzvnhk8" id="h_01etabk5b2rqet16txbnzvnhk8"></a>

Settings will lead you to a **Setup action** block. From an appeared **Blog** code block, choose Shopify, where your Setka posts will be exported to.

Then replace Shopify post fields with Setka post data. Set the following:

1\. **Title** data for a **Title** field.

2\. **Author Name** data for an **Author Name** field.

3\. Replace the **Content** field with the data according to this template:

```
[Body HTML]
<link rel="stylesheet" media="all" href="[Assets Styles Common CSS]" />
<link rel="stylesheet" media="all" href="[Assets Styles Layouts CSS]" />
<link rel="stylesheet" media="all" href="[Assets Styles Themes CSS]" />
<script src="[Assets Plugins]"></script>
```

![Screenshot of Zapier interface: Adding HTML to "Content" field](/files/-MR2QlmMcEv_2fhDEsZR)

4\. If you want to save exported posts in Shopify as a draft, choose **False** in an **Is Published** field. If you want to publish your posts instantly, choose **True**. Save changes by clicking **Continue**.

5\. After that, you will be offered to test publishing in Shopify. Please note that by clicking **Test & Continue**, a post will be exported to Shopify right from your Setka account.&#x20;

Press **Skip Test** to pass testing.

### Step 9. Activate Zap <a href="#h_01etabm09prsjebjzc65fjzty8" id="h_01etabm09prsjebjzc65fjzty8"></a>

The setting is done. You can activate posting with the help of a switch box in the upper right-hand corner:

![Screenshot of Zapier interface: Activating the Setka and Shopify integration via Zapier using the ON/OFF toggle ](/files/-MR2QeELTHbjtXoHmRfr)

Now your Setka posts will export automatically to Shopify after pressing **Publish** in your Setka account. To run the export manually, click **Run** in a **Zaps** menu:

![Screenshot of Zapier interface: A dropdown menu with "Run" button ](/files/-MR2QXbt9PmMT5y3ezdw)

## Possible restrictions <a href="#h_01etabm6s5mxsd7g73yszjzt7b" id="h_01etabm6s5mxsd7g73yszjzt7b"></a>

A free Zapier account checks for the new published Setka posts not more often than once in 15 minutes. If you export the first post instantly, the next one will be exported not earlier than 15 minutes. You can learn more about terms and conditions on [the official Zapier website.](https://zapier.com/app/billing/plans)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://setka.gitbook.io/help-center/integrations/setka-and-zapier/setka-editor-posts-export-to-shopify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
