How to build a Shopify AI Bot
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.
-
Go to Skillsets and click “Create Skillset” button.
-
Add optional name and description and click the “Create” button.
-
Click “Create Ability” button to create the first ability.
-
For the name specify “Track Order” and for the description type “Provides information about a customer order.”
-
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.
-
Search for “shopify order” and select the “Get Shopify Order Details” template. Finally click the “Use” button.
-
Change the domain placeholder with your Shopify store domain name.
-
Click the "Create” button.
-
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
-
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.
-
Login to your Shopify store and click on “Settings”.
-
Click on “Apps and sales channels” and then “Develop apps” in order to create a new app.
-
Click “Create an app” button.
-
Type your name like “ChatBotKit” and press “Create app” button.
-
Press the “Configure Admin API scopes”.
-
Select both “read_customers” and “read_orders” scopes and press click the “Save” button.
-
Now click “Configurations” and configure your “Storefront API” access.
-
Select all product related scopes and click the “Save” button.
-
Install the app.
-
Copy both Storefront and Admin API keys.
Creating Secrets
In the final step we need to create some secrets.
-
Go to Secrets and press the “Create Secret” button.
-
For the name use “Shopify Admin Access Token” and paste the secret we copied from the previous steps.
-
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.
Conclusions
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.