Library
logo

Connect Your Shopify Store with an AI Chatbot

Connect your Shopify store to your AI Chatbot for dynamic responses like product recommendations, order tracking, and refunds. Simply import this template and take your Shopify store to next level!
feature-image

Link your Shopify store with an AI Chatbot to provide dynamic responses

shopify-scenerio-flow

1. Understanding the Template

Scenarios:

  • Order Status – Triggered when user want to know order status
  • Return Order – Triggered when user wishes to return any order.
  • Product Search – Triggered when user is looking to search a product from our store.

2. Get Your Shopify Credentials

To connect your app or chatbot to Shopify, you’ll need these:

  • SHOPIFY_TOKEN – A secure access token required for authentication, allowing your app to make API requests.
  • SHOPIFY_ENDPOINT – The base URL for Shopify's API, used to interact with store data (e.g., products, orders).

To get the SHOPIFY_TOKEN and SHOPIFY_ENDPOINT, follow these steps:

Get SHOPIFY_TOKEN

  • Log in to your Shopify account and create your online store if you haven't already.

  • Go to Settings in the bottom left sidebar.

Shopify-settings

  • Click Apps and sales channels.

App Sales Channels

  • Click Develop apps for your store.

DevelopApps

  • Click Create an app, enter an app name (e.g., aicmee), and assign an admin user.

Create an app

add-app-name

  • In the Overview section, click on Configure Admin API Scopes.

    configure admin api

    Enable the necessary permissions, such as:

    • Draft Orders → Read, Write

    • Order Editing → Read, Write

    • Orders → Read, Write

    • Product Listings → Read, Write

    • Products → Read, Write

    • Returns → Read, Write

Permissions

  • Click Save, then install the app.

Save

Install-app

  • Copy the Admin API Access Token—this is your SHOPIFY_TOKEN (Keep it secure!).

admin-token

Get SHOPIFY_ENDPOINT

  • On the Dashboard, click Online Store.

online store

  • Click View Your Store.

view-your-store

  • Check the URL in your browser—your store name will be in the format: https://your-store.myshopify.com/. For example, if the URL is https://xfrsdy-2c.myshopify.com is your SHOPIFY_ENDPOINT.

shopify-endpoint-url

.

How to Use the Shopify Agent in YourGPT

  1. Import the template

For assistance with importing templates, refer to our guide on how to import in Studio

import-shopify-flow

  1. Add Your Config Variable SHOPIFY_TOKEN & SHOPIFY_ENDPOINT

add-config-variable

4. Test & Run on Emulator

test-on-emulator