Skip to main content
Looking for the WhatsApp Bubble instead? Check out the WhatsApp Bubble installation guide.
The Onsite Widget is a powerful AI Shopping Assistant that runs directly on your website. It differs from the WhatsApp bubble by providing:
  • Full chat experience with a centered modal dialog
  • Product carousel with variant selection
  • Shopify cart integration for seamless add-to-cart functionality
  • Persistent conversations across page navigation
  • Customizable appearance with colors, banners, and positioning
1

Customize your widget appearance

Click on the “Growth tool kit” section of the menu. From there select the Onsite Widget integration block and personalize your widget.You can customize:
  • Colors: Background, bubble, and icon colors
  • Text: Dialog title, welcome message, and bubble text
  • Position: Bottom-right corner or right-center of the screen
  • Banner image: Display a promotional image at the top of the chat
  • Popular questions: Suggested questions for customers to ask
2

Get the code snippet

From there you will find the code snippet to insert into your Shopify theme.
The code will look something like this:
The onsite widget uses the <textyess-ai-widget> tag, which is different from the WhatsApp bubble widget (<textyess-bubble-widget>).
3

Go to the Online store section

Once inside your store click on “Sales channels” from the menu on the right.
A pop-up will appear at the top. From there click on “Online store”
4

Open the Theme editor

Opening the theme editor is very simple. Just click on the three dots of the theme you want to update. Then click on “Edit code”.
Before proceeding we strongly recommend that you make backups of your current theme. To do this, click on the three dots, then click on “Duplicate” and/or “Download theme file.”
5

Edit the theme.liquid file

This might seem the scariest part for those without technical skills, but it is actually a very simple operation.
As a first thing you will notice that on the left side you have a bunch of files. Look for one called theme.liquid and click on it.
On the right, a file with codes will have opened for you. Don’t worry, you don’t need to know what it says. What you need to do now is scroll to the end of the file and look for the </body> tag
If you cannot find the tag press cmd + F on Mac or ctrl + F on Windows. Then type </body> to find the tag within the search.
Once you find the tag, paste the code snippet you generated from TextYess (see step “Get the code snippet”) right before the the </body> tag. Remember that if necessary you can create new lines by pressing the enter key in order to put space between the TextYess’s code snippet and the </body> tag.
Your code should look something like this:
We are almost finished!
Now click the “Save” button in the upper right corner, then click the “Preview store” button to make sure the widget is displayed correctly.
Congratulations, we are live!

Custom Trigger Element

You can trigger the AI chat from your own button or link instead of (or in addition to) the default floating bubble.

Using a CSS Selector

Add a trigger_selector attribute pointing to your custom element, and optionally hide the default bubble:
Any element matching the selector will open the chat when clicked. You can use IDs (#ask-ai-btn), classes (.open-chat), or any valid CSS selector.

Using the JavaScript API

For programmatic control, call methods directly on the widget element:

Custom Trigger Options

Customization Options

You can customize the onsite widget by adding attributes to the <textyess-ai-widget> tag:

Colors

Position & Appearance

Text & Content

Language

E-commerce

Example with customization