# Connect to Shopify

#### Video Guide:

{% embed url="<https://player.mux.com/01RPDKNnTm8CZfuUumTRuFr00EN601hb9gEs1hb02JsXH01o>" %}

#### Text Guide:

1. Go to Store Settings: Click your profile (lower-left corner) and go to **Settings** > **Stores**.
2. Under the *Infrastructure* section, click on **Shopify**.

<figure><img src="/files/A22kileGrrgGLx5hz2LS" alt=""><figcaption></figcaption></figure>

3. Click **Create an App**. This will redirect you to your Shopify Developer Dashboard. \
   Create an app then name it `ScaleFlows`.

<figure><img src="/files/51CJBHouxWle2vxTgqbJ" alt=""><figcaption></figcaption></figure>

4. &#x20;Find the *URLs* section and paste the following into the App URL field:\
   `https://app.scaleflows.ai`&#x20;

> Important: Make sure to uncheck the box that says *"Embed app in Shopify admin"*.

<figure><img src="/files/vLDJJKZtdPxI09xNRzgN" alt=""><figcaption></figcaption></figure>

4. Under *Admin API scopes*, copy-paste the following permissions:\
   \
   `read_customers, write_customers, read_discounts, write_discounts, read_orders, write_orders, read_privacy_settings, write_privacy_settings, read_products, write_products, read_returns, write_returns, read_shipping, write_shipping, read_shopify_payments_disputes, write_shopify_payments_disputes`

5. Set Redirect URLs: Under *Redirect URLs*, add the following two links:<br>

* `https://api.scaleflows.ai/api/stores/shopify/callback`
* `https://app.scaleflows.ai`

<figure><img src="/files/hMwLJLwKg94N9EhfMXW4" alt=""><figcaption></figcaption></figure>

6. Click **Release**, and confirm by clicking **Release** again to publish the app credentials.
7. Copy your **App Client ID** and **App Client Secret**, then paste them back into the ScaleFlows connection page (Step 3)

<figure><img src="/files/HkvAJyexoPp0c8Ncs09J" alt=""><figcaption></figcaption></figure>

6. Enter your assigned Shopify domain into ScaleFlows to complete the setup.

&#x20;*(Tip: You can easily find this by searching "Domains" in your Shopify admin dashboard).*

<figure><img src="/files/lizdgKhnDirujeYM9k5s" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Your Shopify store is now connected to ScaleFlows.
{% endhint %}


---

# 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://docs.scaleflows.net/documentation/documentation-v1.1/getting-started/onboarding-setup-your-store/connect-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.
