tutorialsshopifywidgetcxwizard

How to Add CXWizard Chat Widget to Your Shopify Store

Learn how to create the CXWizard website chat widget and add it to Shopify themes using the provided embed code.

CXWizard Team
March 25, 2026
2 min read
How to Add CXWizard Chat Widget to Your Shopify Store

How to Add CXWizard Chat Widget to Your Shopify Store

This guide shows you how to create CXWizard’s chat widget, copy the embed code, and paste it into your Shopify theme so customers can chat with your AI agent.

Part 1: Create the chat widget in CXWizard

  1. From your CXWizard dashboard, go to IntegrationsWebsite Widget.
  2. Customize your widget:
    • Give it a name
    • Specify the widget position
    • Add quick action buttons (optional, but recommended)
    • Choose the theme color
    • Click Save

After saving, you will see the embed code. Copy it (you’ll paste this into Shopify in Part 2).

CXWizard Website Widget embed code

Part 2: Add the widget to your Shopify store

  1. In your Shopify Admin sidebar, click Online StoreThemes.
  2. Click Edit theme.

Edit theme in Shopify

  1. Click the dropdown with your store name (as shown in image), then choose Edit code.

Theme dropdown and Edit code

  1. In the left file explorer:
    • Expand the layout folder
    • Click theme.liquid file (or use the editor search bar to find it)

Select theme.liquid

  1. Scroll to the end of the file.
    • Paste the CXWizard chat widget embed code just before the closing </body> tag.
    • Click Save (top-right) or press Ctrl + S (Command + S on Mac).

Paste embed code before the closing body tag

  1. Close the editor tab, then visit your Shopify storefront to verify the chat widget loads.

Chat widget shown on the storefront

Enable the AI for the widget

To enable the AI for your chat widget, you will have to create an agent and select “Website widget” as a messaging channel.

Visit this article to learn how you can connect your Shopify store data so that your AI agent can recommend products and help with order queries (https://cxwizard.app/blog/how-to-connect-shopify-store-to-cxwizard)

Related Posts

How to Add CXWizard Chat Widget to Your Shopify Store | CXWizard Blog | CXWizard