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

# Using the Shopify Action Templates

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

Use prebuilt Shopify action templates to auto-create dialog tasks for managing orders, products, and customers.

**To access templates:**

1. Go to **Automation AI** > **Use Cases** > **Dialogs** and click **Create a Dialog Task**.

2. Under **Integration**, select **Shopify**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img2.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=0b770d8ffc39baea22d45e0da4a84e3f" alt="Integrations - Shopify" width="1193" height="904" data-path="ai-for-service/integrations/actions/images/shopify-tem-img2.png" />

3. If no integration is configured, click **Explore Integrations** to set one up. See [Actions Overview](/ai-for-service/integrations/overview#actions).

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img3.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=3b119248db698bc5097d15268bc22810" alt="Explore Integrations" width="892" height="906" data-path="ai-for-service/integrations/actions/images/shopify-tem-img3.png" />

***

## Supported Actions

| Task                          | Description                                      | Method |
| ----------------------------- | ------------------------------------------------ | ------ |
| Get order by ID               | Retrieves order details with an order ID.        | GET    |
| Get orders by customer ID     | Retrieves orders using the customer ID.          | GET    |
| Get products by name          | Retrieves products using their names.            | GET    |
| Get product by ID             | Retrieves product details using the ID.          | GET    |
| Get products by collection ID | Retrieves products using the collection ID.      | GET    |
| Get variants by product ID    | Retrieves product variants using the product ID. | GET    |

***

### Get Order by ID

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Order by ID** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img4.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=2570f406e21d893b843b9b029288d488" alt="Get Order by ID dialog task is added" width="1491" height="873" data-path="ai-for-service/integrations/actions/images/shopify-tem-img4.png" />

   * **getOrderbyID** - User intent to fetch an order by ID.

   * **orderID** - Entity node for the order ID.

   * **getOrderbyIDService** - Bot action service to get an order by ID. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img5.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=40d8dabcac094aa1a3ed5e7c6950bf4f" alt="Get Order by ID - Edit Request" width="1919" height="910" data-path="ai-for-service/integrations/actions/images/shopify-tem-img5.png" />

     Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img6.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=0a3f054a79b0fdbacf12992bce398547" alt="Get Order by ID - Add Response" width="1919" height="910" data-path="ai-for-service/integrations/actions/images/shopify-tem-img6.png" />

   * **getOrderbyIDMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img7.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=f9c122975b0243684318aae830b69be2" alt="VA prompts to Get Order by ID" width="738" height="817" data-path="ai-for-service/integrations/actions/images/shopify-tem-img7.png" />

4. Click **View Order** to see order details in Shopify:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img8.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=25786cf538d767a7b8cb9a4d171a9cc4" alt="View order details for a given id" width="728" height="821" data-path="ai-for-service/integrations/actions/images/shopify-tem-img8.png" />

***

### Get Orders by Customer ID

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Orders by Customer ID** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img10.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=777d850fb5d90b539cdaca03e8d88c64" alt="Get Orders by Customer ID dialog task is added" width="1473" height="897" data-path="ai-for-service/integrations/actions/images/shopify-tem-img10.png" />

   * **getOrdersbyCustomerID** - User intent to get orders by customer ID.

   * **customerID** - Entity node for the customer ID.

   * **getOrdersbyCustomerIDService** - Bot action service to get orders by customer ID. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img11.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=e13ea5dd30dd6b812e5fd4a57990a80a" alt="Get Orders by Customer ID - Edit Request" width="1914" height="904" data-path="ai-for-service/integrations/actions/images/shopify-tem-img11.png" />

     Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img12.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=0058513f6655512b624240a8d794b618" alt="Get Orders by Customer ID - Add response" width="1916" height="783" data-path="ai-for-service/integrations/actions/images/shopify-tem-img12.png" />

   * **getOrdersbyCustomerIDMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img13.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=fa719ca396b75377b649fad729f33144" alt="VA Prompt to Get Orders by Customer ID" width="269" height="300" data-path="ai-for-service/integrations/actions/images/shopify-tem-img13.png" />

***

### Get Products by Name

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Products by Name** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img14.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=2b401ea95680e53b34a505e5795e5c41" alt="Get Products by Name dialog task is added" width="1491" height="906" data-path="ai-for-service/integrations/actions/images/shopify-tem-img14.png" />

   * **Get Products by Name** - User intent to fetch products by name.

   * **Name** - Entity node for the product name.

   * **getProductsbyNameService** - Bot action service to fetch products by name. Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img15.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=20afe4264354eed2bd10c5c1b668345f" alt="Get Products by Name - Add Response" width="1919" height="904" data-path="ai-for-service/integrations/actions/images/shopify-tem-img15.png" />

   * **getProductsByNameMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img16.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=988c44d85ea209491f848dcbb5d0cd0a" alt="VA prompt to Get Products by Name" width="720" height="812" data-path="ai-for-service/integrations/actions/images/shopify-tem-img16.png" />

***

### Get Product by ID

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Product by ID** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img17.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=b960f8bf6d575082b3df44b1ee1e56c0" alt="Get Product by ID dialog task is added" width="1415" height="915" data-path="ai-for-service/integrations/actions/images/shopify-tem-img17.png" />

   * **Get product by ID** - User intent to fetch a product by ID.

   * **productId** - Entity node for the product ID.

   * **getProductbyIDService** - Bot action service to find a product by ID. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img18.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=be71d2611d8df2d86a5c3e19e55100e5" alt="Get Product by ID - Edit Request" width="1902" height="904" data-path="ai-for-service/integrations/actions/images/shopify-tem-img18.png" />

     Click **+Add Response**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img19.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=782247c9af52fcc51561a93c764b40a9" alt="Get Product by ID - Add response" width="1917" height="817" data-path="ai-for-service/integrations/actions/images/shopify-tem-img19.png" />

   * **getProductbyIDMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img20.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=55cf5de4bda19647b2c798124c27b7b6" alt="VA prompt to Get Product by ID" width="727" height="816" data-path="ai-for-service/integrations/actions/images/shopify-tem-img20.png" />

***

### Get Products by Collection ID

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Products by Collection ID** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img21.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=fc4cae8e1d52b1af494b07fe56707b88" alt="Get Products by Collection ID dialog task is added" width="1379" height="896" data-path="ai-for-service/integrations/actions/images/shopify-tem-img21.png" />

   * **getProductsbyCollectionId** - User intent to fetch products by collection ID.

   * **collectionID** - Entity node for the collection ID.

   * **getProductsbyCollectionIDService** - Bot action service to fetch products by collection ID. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img22.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=467361f90b94d75399fd16d473e76f4b" alt="Get Products by Collection ID - Edit request" width="1917" height="808" data-path="ai-for-service/integrations/actions/images/shopify-tem-img22.png" />

     Click **+Add Response** for sample responses.

   * **getProductsbyCollectionIDMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img23.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=be3c2efbca1fc41949617ac3eb8bc693" alt="VA prompt to Get Products by Collection ID" width="728" height="805" data-path="ai-for-service/integrations/actions/images/shopify-tem-img23.png" />

***

### Get Variants by Product ID

1. Install the template from [Shopify Action Templates](/ai-for-service/integrations/actions/configuring-the-shopify-action#step-2-install-the-shopify-action-templates).

2. The **Get Variants by Product ID** dialog task is added with the following components:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img24.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=1022cc3466d60176c01bf48454aca8c8" alt="Get Variants by Product ID dialog task is added" width="1283" height="912" data-path="ai-for-service/integrations/actions/images/shopify-tem-img24.png" />

   * **GetVariantsbyProductID** - User intent to fetch variants by product ID.

   * **productId** - Entity node for the product ID.

   * **getVariantsbyProductIDService** - Bot action service to fetch variants by product ID. Click **Edit Request**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img25.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=8787fbb048aa9f909efd94c308e749e5" alt="Get Variants by Product ID - Edit Request" width="1910" height="901" data-path="ai-for-service/integrations/actions/images/shopify-tem-img25.png" />

   * **getVariantsbyProductIDMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/FZdQXfoJjZ2_fH0C/ai-for-service/integrations/actions/images/shopify-tem-img26.png?fit=max&auto=format&n=FZdQXfoJjZ2_fH0C&q=85&s=b14a38c2b46c224f57a2e311ac0e67ca" alt="VA prompt to Get Variants by Product ID" width="728" height="805" data-path="ai-for-service/integrations/actions/images/shopify-tem-img26.png" />
