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

# Configuring the Shopify Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect Shopify to find information about customers, products, and orders. See [Shopify Documentation](https://www.shopify.com/in/blog/topics/guides) for more information.

***

## Authorizations Supported

The XO Platform supports basic authentication for Shopify. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for details.

| Authorization Type                       | Basic Auth |
| ---------------------------------------- | ---------- |
| Pre-authorize the Integration            | Yes        |
| Allow Users to Authorize the Integration | Yes        |

***

## Step 1: Enable the Shopify Action

**Prerequisites:**

* Create a custom app in the Shopify admin page.
* Authenticate the custom app by installing it.
* Generate API credentials and access tokens. See [Shopify custom apps](https://help.shopify.com/en/manual/apps/app-types/custom-apps).
* Configure the app with the following scopes:
  * `read_orders`
  * `read_products`
  * `read_customers`
* Copy the **Admin API access token** and **Domain** from Shopify.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. Select **Shopify**.

### Pre-authorize the Integration

**Basic Auth**

1. Go to **App Settings** > **Integrations** > **Actions** and select **Shopify**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img2.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=092d9367376fcf339e4e39050ade5ac9" alt="Auth type - Basic auth" width="1058" height="820" data-path="ai-for-service/integrations/actions/images/shopify-action-img2.png" />

4. Enter the following details:
   * **User Sub Domain** - The domain name of the Shopify account.
   * **API Key** - The secret API key of your Shopify account.

5. Click **Enable**. The **Integration Successful** pop-up is displayed.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img3.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=71f94df4de3b1f76b6b8368d0634ed4e" alt="Integration successful" width="883" height="350" data-path="ai-for-service/integrations/actions/images/shopify-action-img3.png" />

<Note>The Shopify action moves from *Available* to *Configured* after enabling.</Note>

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **Shopify**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

4. Click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img4.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=f73baeb4f902dcd252a854e3b758a723" alt="Create new authorization" width="1075" height="823" data-path="ai-for-service/integrations/actions/images/shopify-action-img4.png" />

5. Select **API Key** as the authorization mechanism. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles).

6. Enter the following credentials:

   * **Name** - Name for the Basic Auth profile.
   * **Base URL** - Base tenant URL for the Shopify instance.
   * **Authorization Check URL** - Authorization check URL for your Shopify instance.
   * **Description** - Description of the profile.
   * Click **Save Auth** to save the profile.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img5.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=8e29df03f144deaabf3adefd0c61bc26" alt="Auth profile" width="924" height="425" data-path="ai-for-service/integrations/actions/images/shopify-action-img5.png" />

7. Select the new **Authorization Profile**.

8. Click **Enable**.

***

## Step 2: Install the Shopify Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img6.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=da13222ba254aaed01b97818a739455b" alt="Explore templates" width="883" height="350" data-path="ai-for-service/integrations/actions/images/shopify-action-img6.png" />

   You can also click **Skip for Now** to install templates later.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img7.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=d5ce933cc3669b14a9cd2e3610716b45" alt="Skip for now" width="886" height="352" data-path="ai-for-service/integrations/actions/images/shopify-action-img7.png" />

2. Click **Install** to begin installation.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img8.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=5a714fdf03a293ef27c2f2e79f99015a" alt="Begin installation" width="882" height="756" data-path="ai-for-service/integrations/actions/images/shopify-action-img8.png" />

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

4. Select the desired dialog task and click **Proceed**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img9.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=0f0cb8ac861f12eb8395df0c3c1a8082" alt="Select desired dialog task and proceed" width="1193" height="904" data-path="ai-for-service/integrations/actions/images/shopify-action-img9.png" />

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/shopify-action-img10.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=07612edd48ceeac17e9cc3373b87ff60" alt="Canvas for dialog task" width="1474" height="860" data-path="ai-for-service/integrations/actions/images/shopify-action-img10.png" />


Built with [Mintlify](https://mintlify.com).