back to tutorials

How to build a Shopify AI Bot

Learn how to build a Shopify AI bot with distinct abilities like tracking orders and recommending products.

In this tutorial we will create a new skillset with two distinct Shopify abilities: Track Order and Recommend a Product. We will also assign the new Skillset to a bot. To get started let’s create the skillset first.

Creating the Shopify AI Bot Skillset

First let’s create a dedicated skillset for our bot.

  1. Go to Skillsets and click “Create Skillset” button.

  2. Add optional name and description and click the “Create” button.

  3. Click “Create Ability” button to create the first ability.

  4. For the name specify “Track Order” and for the description type “Provides information about a customer order.”

  5. We are going to use and customise one of the many Shopify templates we have. Click on the “Templates” button to open the Template dialog.

  6. Search for “shopify order” and select the “Get Shopify Order Details” template. Finally click the “Use” button.

  7. Change the domain placeholder with your Shopify store domain name.

  8. Click the "Create” button.

  9. Create a new ability called "Product Recommendations” with description "Provide product recommendations based on user preferences.” and use the “Search Shopify Products” instruction from the Instruction “Templates” dialog

  10. Customize the domain as well as the query to your liking. For example, you might want to return additional information for each product.

Configuring Shopify AI Bot Secrets

You may have noticed that our instructions require credentials in order to operate on the Shopify store. So we need to setup bot the “Shopify Admin Access Token” and “Shopify Storefront Access Token” secrets.

Creating Shopify Credentials

The first step is to create both a storefront and admin tokens for our skillset abilities.

  1. Login to your Shopify store and click on “Settings”.

  2. Click on “Apps and sales channels” and then “Develop apps” in order to create a new app.

  3. Click “Create an app” button.

  4. Type your name like “ChatBotKit” and press “Create app” button.

  5. Press the “Configure Admin API scopes”.

  6. Select both “read_customers” and “read_orders” scopes and press click the “Save” button.

  7. Now click “Configurations” and configure your “Storefront API” access.

  8. Select all product related scopes and click the “Save” button.

  9. Install the app.

  10. Copy both Storefront and Admin API keys.

Creating Secrets

In the final step we need to create some secrets.

  1. Go to Secrets and press the “Create Secret” button.

  2. For the name use “Shopify Admin Access Token” and paste the secret we copied from the previous steps.

  3. We need to create the next secret. This time the secret name is “Shopify Storefront Access Token” and the value is the storefront key we created in previous steps.

Using the Shopify AI Bot Skillset

The last bit is to connect the skillset to any of your bots. You can even assign it directly to a widget. You can even expose the Shopify AI bot on Slack, or your Discord community. But that is not all. ChatBotKit also allows you to put your Shopify AI assistent directly in WhatsApp, Messenger, Telegram and much more. The possibilities are endless.


In this tutorial, we've demonstrated how to create a Shopify AI bot with two distinct abilities: tracking orders and recommending products. This bot can significantly enhance the shopping experience for your customers and streamline your business operations. With continual enhancements and integrations, the potential for AI in ecommerce is truly limitless.