Skip to main content

Overview

Add your Invent AI assistant to your Shopify store with a floating bubble. Perfect for providing product support, answering customer questions, and boosting conversions.

Installation

1

Access Theme Editor

In your Shopify admin, go to Online StoreThemes and click Customize on your active theme.
2

Edit Theme Code

Click the three dots menu and select Edit code.
3

Open theme.liquid

In the Layout folder, click on theme.liquid.
4

Add Before Closing Body Tag

Scroll to the bottom and find the closing </body> tag. Add this code just before it:
Replace ast_YOUR_ASSISTANT_ID with your actual assistant ID from the Invent dashboard.
5

Save Changes

Click Save and the bubble will appear on all pages of your store.

Customization

Match Your Store Branding

Show Only on Specific Pages

Use Shopify Liquid to control where the bubble appears:

Customer Authentication

Security Requirement: When using any user-* attributes (user-id, user-name, user-email), you must also provide user-hash. Both user-id and user-hash must be provided together, or neither should be provided. The user-hash must be generated on your backend using HMAC-SHA256 with your assistant’s secret key. Never expose the secret key to the client.
Pass Shopify customer data to Invent for personalized shopping assistance. Important: Shopify Liquid cannot generate HMAC hashes securely. You’ll need to use a Shopify app or custom backend endpoint to generate the user-hash before passing it to the frontend. Without proper hash generation, omit all user-* attributes and let the assistant create an anonymous session.

Pass Product Context

Provide product information to your assistant on product pages:

E-commerce Features

Product Support

Answer product questions in real-time

Order Tracking

Help customers track their orders

Cart Recovery

Assist with abandoned cart recovery

Size & Fit Help

Provide sizing and fit guidance

Shopify Plus Features

For Shopify Plus stores, you can use Scripts or Checkout Extensions:

Add to Checkout Pages

  1. Go to SettingsCheckout
  2. Scroll to Additional scripts
  3. Add the bubble code

Troubleshooting

Solutions:
  • Verify code is before closing </body> tag in theme.liquid
  • Clear browser cache and reload
  • Check for JavaScript errors in browser console
  • Ensure theme doesn’t have conflicting chat apps
Solutions:
  • Check if other chat/help apps are installed
  • Adjust z-index in theme CSS if needed
  • Contact support for app compatibility
✅ Works with Klaviyo, Yotpo, Judge.me, and other popular Shopify apps