| title | [CUSTOM CMS] Onsite Widget installation |
|---|---|
| description | Install the TextYess AI Shopping Assistant on any website or custom CMS. This guide covers the generic integration process for platforms other than Shopify or WooCommerce. |
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
- Persistent conversations across page navigation
- Customizable appearance with colors, banners, and positioning
The integration requires two elements to be added to your HTML:
- The script tag — loads the widget component library
- The widget tag — renders the widget on the page
Both must be placed inside the <body> of every page where you want the widget to appear.
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
The code will look something like this:
<script
type="module"
src="https://cdn.textyess.com/v2/textyess-widget-components/textyess-widget-components.esm.js"
defer
></script>
<textyess-ai-widget
organization_id="your_organization_id"
language="en"
show_add_to_cart="false"
/>Paste the code snippet from the previous step **right before** the closing `</body>` tag. <br />
Your code should look something like this:
<!-- your existing page content -->
<script
type="module"
src="https://cdn.textyess.com/v2/textyess-widget-components/textyess-widget-components.esm.js"
defer
></script>
<textyess-ai-widget
organization_id="your_organization_id"
language="en"
show_add_to_cart="false"
/>
</body>If the widget does not appear, make sure the snippet is placed inside the `` tag and that the `organization_id` matches the one provided in the TextYess dashboard.
Congratulations, we are live!
Depending on your CMS, the process for editing the page layout may vary:
| Platform | Where to add the snippet |
|---|---|
| WordPress (non-WooCommerce) | Appearance > Theme Editor > footer.php, before </body> |
| PrestaShop | Back Office > Design > Theme & Logo > Edit theme files, or in themes/your_theme/templates/layouts/layout-both-columns.tpl |
| Magento | app/design/frontend/your_theme/default/Magento_Theme/templates/root.phtml, before </body> |
| Custom / Static HTML | Directly in your HTML layout file, before </body> |
| Tag Manager (e.g. Google Tag Manager) | Add a Custom HTML tag with the snippet and set it to fire on All Pages |
You can customize the onsite widget by adding attributes to the <textyess-ai-widget> tag:
| Attribute | Description | Default |
|---|---|---|
background_color |
Chat window background color | #7f1d1d |
bubble_color |
Floating bubble color | #7f1d1d |
bubble_content_color |
Text/icon color inside bubble | #ffffff |
icon_color |
Icon color in UI elements | #ffffff |
| Attribute | Description | Default |
|---|---|---|
bubble_position |
Position of the bubble: bottom-right or right-center |
right-center |
image_banner_url |
URL of banner image shown at top of chat | - |
image_fit |
How banner image scales: contain or cover |
cover |
| Attribute | Description | Default |
|---|---|---|
dialog_title |
Title shown in the chat window header | - |
welcome_message |
Initial greeting message | - |
bubble_text |
Text on the floating action bubble | - |
badge_text |
Badge text (e.g., "NEW") | - |
popular_questions |
Suggested questions (comma-separated) | - |
| Attribute | Description | Default |
|---|---|---|
language |
Language: en (English) or it (Italian) |
it |
| Attribute | Description | Default |
|---|---|---|
show_add_to_cart |
Show "Add to Cart" buttons for products | true |
<script
type="module"
src="https://cdn.textyess.com/v2/textyess-widget-components/textyess-widget-components.esm.js"
defer
></script>
<textyess-ai-widget
organization_id="your_organization_id"
language="en"
dialog_title="Shopping Assistant"
welcome_message="Hi! How can I help you today?"
bubble_text="Need help?"
background_color="#1e40af"
bubble_color="#1e40af"
bubble_position="bottom-right"
show_add_to_cart="false"
/>