Overview
Shopify Actions enable your AI agent to provide comprehensive e-commerce support directly within the chat interface. These actions give your agent access to your store’s product catalog, order information, and customer data, allowing it to assist shoppers throughout their entire journey.Prerequisite: Before using Shopify Actions, you must set up the Shopify integration with your Chatbase account.
Available Shopify Actions
1. Retrieve and display products
Search and display products from your Shopify catalog. Customers can browse by category, search for specific items, and add products directly to their cart.Best for:
Helping customers discover products, answering questions about inventory, comparing items, and facilitating add-to-cart actions.
- “Show me red dresses under $50”
- “What laptops do you have in stock?”
Note: Adding products to the cart only works when the app is embedded in your Shopify store. It will not work in the Playground.
Cart Update Events
By default, when a customer adds a product to their cart through the chat widget, your theme’s cart icon doesn’t update until the page is reloaded. The item is added, but the cart count still shows 0 until the customer refreshes. To avoid that, Chatbase dispatches custom DOM events whenever the cart changes, so your theme can update the cart UI in real time. With a listener in place, adding one product makes the cart count show 1 right away, with no refresh. The following events are fired:Multiple event names are dispatched to ensure compatibility across different Shopify themes. You only need to listen to one of them.
How Product Sync Works
To sync your catalog, expand the Products accordion and click Sync or Sync and Enable Action. Chatbase will then retrieve all products from your Shopify store. After the initial import, Chatbase automatically listens for changes—whenever a product is added, updated, or deleted in your store, the data syncs in real time. This ensures your agent always has access to up-to-date product information. When you delete the action, Chatbase automatically removes its stored product data and stops syncing future updates.Note that once this action is in use, your agent already has your product data through the sync, so you can exclude product pages from your website training source.
Setup Instructions
Navigate to Actions
Go to your Chatbase dashboard and select the agent connected to your Shopify store. Click Actions at the top of the page.
Configure Action Details
Both fields come pre-filled with working defaults. Leave them as-is unless you need to make a specific change.Action Name: Get_Products.**When to use: **If the user asks about products, use this tool. Summarize the tool’s result in your response, ensuring no images are included within the text response.

Sync Your Products
Expand the Products accordion and click Sync to import your catalog, or click Sync and Enable Action to sync and enable the action in one step. The initial sync may take a few minutes depending on your catalog size.

2. Retrieve and display orders
Retrieve order information for customers. Customers can check order status, view their purchase history, and get details about specific orders using various filters.Best for:
Answering order status inquiries, providing tracking information, displaying purchase history, and helping customers find specific order details.
- “Where is my order?”
- “Show me my recent orders”
- “What’s the status of order #1234?”
- “When will my package arrive?”
Order status: The widget pulls order status directly from Shopify, so it reflects the latest information Shopify has available on the order status page. Shipped orders appear as “On its way”. To display delivery confirmation, ensure your store uses a trackable carrier (USPS, UPS, FedEx, etc.) or a third-party app that provides delivery updates to Shopify.
Setup Instructions
Navigate to Actions
Go to your Chatbase dashboard and select the agent connected to your Shopify store. Click Actions at the top of the page.
Configure Action Details
Both fields come pre-filled with working defaults. Leave them as-is unless you need to make a specific change.Action Name: Get_Orders.When to use: If the user ask about orders, use this tool. Summarize the tool’s result in your response, ensuring no images are included within the text response.

Save and Enable
Click Save and ensure the action is toggled to Enabled.
Test the action by asking your agent about order status to verify it retrieves the correct information.

This action cannot be tested in the Action Preview on the dashboard, as it requires the user to be authenticated in order to work properly.
Guest customers can look up orders using either:
- Checkout email + order number
- Phone number + order number
3. Get Cart
Display the current contents of a customer’s shopping cart, including items, quantities, prices, and totals.Best for:
Showing customers what’s in their cart, displaying cart totals, and helping customers review items before checkout.
- “What’s in my cart?”
- “Show me my cart total”
- “How many items are in my cart?”
- “What did I add to my cart?”
Note: Retrieving the cart only works when the app is embedded in your Shopify store. It will not work in the Playground.
Setup Instructions
Navigate to Actions
Go to your Chatbase dashboard and select the agent connected to your Shopify store. Click Actions at the top of the page.
Configure Action Details
Both fields come pre-filled with working defaults. Leave them as-is unless you need to make a specific change.Action Name: Get_Cart.When to use: Call this tool when asked about the cart, including the items in the cart, the total price, the quantity of items.

4. Update Profile
Enable signed-in customers to modify their account profile information through the agent.Best for:
Account management, updating contact information, and helping customers keep their profile current.
- “Update my email address”
- “Change my phone number”
- “Update my account information”
Setup Instructions
Navigate to Actions
Go to your Chatbase dashboard and select the agent connected to your Shopify store. Click Actions at the top of the page.
Configure Action Details
Both fields come pre-filled with working defaults. Leave them as-is unless you need to make a specific change.Action Name: Update_Profile.When to use: Call this tool when asked about changing customer profile, including first name, last name, email, or phone number.

5. Update Billing Address
Allow customers to add new billing addresses or update existing ones directly through the chat interface.Best for:
Self-service address updates, helping customers correct billing information, and streamlining account management.
- “Update my billing address”
- “Change my payment address”
- “I moved and need to update my address”
- “I want to add a new address and set it as default”
Setup Instructions
Navigate to Actions
Go to your Chatbase dashboard and select the agent connected to your Shopify store. Click Actions at the top of the page.
Configure Action Details
Both fields come pre-filled with working defaults. Leave them as-is unless you need to make a specific change.Action Name: Update_Address.When to use: Call this tool when asked about adding or updating billing addresses or changing the default address.

Best Practices
Clear Action Triggers
Write specific “When to use” descriptions to help the AI agent accurately determine when to trigger each action. Include example phrases customers might use.
Test Thoroughly
Test each action with various customer queries before going live. Verify that product searches return accurate results and order lookups display correct information.
Keep Products Synced
Monitor your product sync status regularly. If you notice discrepancies, you can manually trigger a resync from the action settings.
Combine Actions
Enable multiple actions together to provide a complete shopping experience. Customers often need to search products, check their cart, and track orders in the same conversation.



