Installing the AI Sales Agent
Learn how to install the AI Sales Agent on Shopify, WooCommerce, Shoptet, and other platforms.
Updated:
To display AI Sales Agent on your website, you need to install it first. The process varies slightly depending on the e-commerce platform you are using.
Installation steps#
You set up every store in two sections, whatever the platform. Open AI Sales Agents and choose Configure on the store: it opens Status. Status gets the Yasan script onto your store and turns the widgets on and off, and GDPR covers your legal texts and cookies. You can turn the widgets on as soon as the script is on your store. The GDPR section can wait, but until you finish it the widgets run without tracking cookies and you cannot see your statistics.
Status: the script and the widgets#
If you install the script yourself, the Status page opens with a single step. For a snippet you paste into your site the step is called Install the script: paste the snippet, tick the statement under it and choose Continue. For a Shopify App Store store the step is called Switch Yasan on in the Shopify editor. The platform sections below describe both. The guide then ends with All set; choose Close. On Shoptet, and on WooCommerce with the Yasan plugin, Yasan adds the script for you and there is no step.
The page then shows:
- The verification status of the script: Waiting for verification until the first page of your store loads the script, then The script is verified. Waiting is fine, and you can keep using your store. While neither widget is on, the verification waits until you turn one on.
- AI Sales Agent, the list of widgets, with Turn on and Turn off for the search and the chatbot.
- Until the GDPR section is finished, a reminder with Open GDPR.
If you paste the snippet yourself, the page also helps you check it. Until the first page of your store loads the script, the warning Check that the script is on your store shows the snippet, how to check it (view the page source and search for chatbot/widget.js) and the common mistakes. After that, the snippet is under Show the installation script.
Until the script is on your store, the switches in the list stay locked: for a snippet, until you finish Install the script; on a Shopify App Store store, until the Widgets embed is on.
When you choose Turn off, Yasan asks you to confirm. Under To confirm, type: it shows a short phrase, turn off chatbot or turn off search. Type it and confirm. Visitors stop seeing the widget right away, and your settings are kept.
GDPR: terms and cookies#
Open GDPR in the same menu. The page takes you through the steps below. Every step is saved, so you can leave at any time and continue where you left off. The first step, Data protection in a few steps, shows what the section unlocks. Choose Continue to move on.
Text for your terms and conditions
The step shows a ready-made text in every language of your store. Add it to your terms and conditions. Copy it with Copy, or choose Download texts to get one file with all the languages. Then tick the statement under the text and choose Continue, or choose Skip for now. Your statistics stay locked until you give this declaration.
Advanced statistics
Choose Yes or No. If you choose No, Yasan asks you to confirm and explains what you lose. You can turn advanced statistics on later in the GDPR section. With No you need no cookies declaration, and the cookie steps below do not appear.
Your cookie bar
Pick the cookie bar your store uses: Cookiebot, CookieYes, OneTrust or Other tool or custom code. A Shoptet store can also pick Shoptet bar, Shoptet’s own cookie bar, and a Czech or Slovak Shoptet store also the Cookies lišta+ add-on. A Shopify App Store store has nothing to pick: Yasan follows Shopify’s cookie banner.
Technical setup
You see this step only if you picked Other tool or custom code, right after the cookie bar. It shows the code to add to your store. On WordPress it also shows how to paste the code with the WPCode plugin. Cookiebot, CookieYes, OneTrust, Shoptet’s own cookie bar, Cookies lišta+ and Shopify’s cookie banner need no code: the widgets read the visitor’s choice from them on their own.
Cookie texts
The step shows a text for your cookie bar, in every language of your store. Again you can use Copy or Download texts. Then tick the statement under the texts and choose Continue, or choose Skip for now. This declaration turns on advanced statistics.
If you skipped a declaration or the advanced statistics decision, the steps stay on the page after the last one, and the guide ends with What is still missing. It lists what each open step still holds back. You can open any step again from the list.
Once every required declaration is given, the guide ends with All set and the Overview page with your statistics is unlocked. When you choose Close, the steps disappear and the page shows:
- If you declined advanced statistics, Turn on, which takes you back to the cookie bar steps.
- Show the texts and the code again, a button that opens a window with the texts and the code whenever you need them again.
If you gave the cookies declaration with advanced statistics on, the GDPR page also checks your cookie bar. It shows Waiting for your cookie bar until a visitor’s cookie choice is reported to Yasan. Waiting is fine, and you can keep using your store. To trigger it yourself, open your store in an incognito window and accept or reject cookies. After that the page shows Your cookie bar is connected.
Shopify (App Store)#
If you installed Yasan from the Shopify App Store, you do not paste any code. One theme embed, Widgets, loads the AI Sales Agent and AI Search on every page of your theme. When you finish onboarding, Yasan opens the store’s Status page. To come back to it later, open AI Sales Agents and choose Configure on the store. On an App Store store, the installation steps go like this:
Switch Yasan on in the Shopify editor
In the Switch Yasan on in the Shopify editor step, choose Open Shopify editor. Turn on the Widgets embed and save. The embed has no settings. Only you can do this — Shopify does not let apps switch a theme embed on. Back in Yasan, the status is checked on its own every few seconds, or choose Check now. Once Shopify confirms the embed, the guide ends with All set.

In the Theme Editor, App embeds lists Widgets by Yasan. Switch it on and choose Save Add the text to your terms and conditions
Copy the ready-made text from Text for your terms and conditions into your terms and conditions, in every language your store uses. What to put on your website: GDPR and terms explains why it is needed. Then tick the statement under the text and choose Continue. This step and the next two are in the GDPR section. You can do them after you turn the AI sales agent on.
Decide on advanced statistics
In Advanced statistics, choose Yes or No. With No you need no cookies declaration, and the widgets run without tracking cookies.
Set up cookies
After Yes, there is nothing to connect and no code to paste. Yasan follows the choice visitors make in your Shopify cookie banner, which you set up in Shopify admin under Settings > Customer privacy. Add the text from Cookie texts to your cookie banner, then tick the statement under it and choose Continue.
Turn on the AI sales agent
On the Status page, choose Turn on next to the chatbot. AI Search has its own Turn on in the same list. You can do this as soon as the embed is on. Until then the switches stay locked.
Once the embed is on, the Status page shows Waiting for verification until a visitor loads a page of your store. After that it shows The script is verified. If you chose Yes in Advanced statistics and gave the cookies declaration, the GDPR page shows Waiting for your cookie bar until your cookie banner reports a visitor’s choice, then Your cookie bar is connected.
Turning the AI sales agent off in Yasan hides the chat. The theme embed can stay on. To stop loading the script, open the Theme Editor again, switch Widgets off, and save.
Shopify (custom app)#
If you connected Shopify with a custom app, paste the installation snippet into your theme.
Copy the snippet
Copy the installation snippet following the steps in Other platforms below.
Open the theme code editor
In your Shopify admin, go to Online Store > Themes, then open the ⋯ menu next to your active theme and choose Edit code.

Opening the theme code editor from Online Store > Themes Open theme.liquid
In the Layout folder, open the
theme.liquidfile.Paste the snippet
Paste the snippet just before the closing
</body>tag.
The installation snippet pasted before the closing </body> tag in theme.liquid Save and check
Save the file and open your live storefront to confirm AI Sales Agent appears.
WooCommerce#
With the Yasan plugin for WordPress there is nothing to paste: turn the AI Sales Agent on in Yasan and the plugin adds it to your store. See Connecting WooCommerce.
If you connected your store with REST API keys, paste the snippet into your WordPress theme:
Copy the snippet
Copy the installation snippet following the steps in Other platforms below.
Recommended: add the snippet with a plugin
The safest path is a code-snippets plugin such as WPCode — the snippet survives theme updates. Insert it into the footer (before
</body>) following the plugin’s instructions and you can skip the remaining steps.Alternative: the theme file editor
In your WordPress admin, go to Appearance → Theme File Editor. Only edit a child theme — a snippet placed directly in a parent theme is wiped by its next update.

Appearance → Theme File Editor with footer.php of the child theme selected Open footer.php
In the Theme Files sidebar, select the
footer.phpfile (Theme Footer) of your active theme.Paste the snippet
Paste the snippet on its own line just before the closing
</body>tag.Save and purge caches
Click Update File. If you use a caching plugin (e.g. WP Rocket, W3 Total Cache), purge the cache and then confirm AI Sales Agent appears on your site.
Shoptet (Automatic Installation)#
If you connected Shoptet using the Marketplace addon, Yasan adds the script to your store automatically.
- You do not need to copy any code, and the Status page has no step to go through.
- To see your statistics, go through the GDPR section: the texts and the declarations.
- To show or hide the AI Sales Agent on your store, choose Turn on or Turn off on the store’s Status page.
Other platforms (snippet installation)#
For a custom site, and for a Shopify store connected with a custom app, you will use a short installation snippet. An App Store Shopify install does not use this snippet. WooCommerce has its own steps above.
Open the Status page
Open AI Sales Agents and choose Configure on the store. It opens Status.
Find the installation snippet
The snippet is in the Install the script step. After the setup is finished, you find it on the same page under Show the installation script.
Copy the snippet
Click the Copy snippet button.
Paste into your HTML
Paste the snippet on its own line just before the closing
</body>tag, in a template that renders on every page of your site. Paste it in HTML / source-code mode — a visual editor would turn it into plain text.Publish and purge caches
Save the change and publish your site. If your site uses a cache or CDN, purge it and reload the page — the chat widget appears at the bottom of the page.

Then go through the other installation steps.
Common installation mistakes#
- The snippet sits in
<head>or on a single page only — it belongs just before</body>in a template shared by the whole site. - The snippet shows on the page as text instead of running. A visual editor turned it into plain text when you pasted it — paste it again in HTML (source code) mode.
- Your site serves an old version of the page from a cache or CDN — purge the cache and reload the page, see How to clear the cache.
- The snippet is on the page more than once, for example in the template and in a single page’s content. The widgets then load twice and may behave unpredictably. Keep one copy, in the template shared by the whole site.
- Your cookie consent tool blocks the Yasan script — on your store, the AI Sales Agents show only after a visitor gives cookie consent. In your cookie consent tool (for example Cookiebot with automatic blocking), mark the Yasan script as necessary. Yasan does not track a visitor without their consent, so it does not need blocking. More in Setting up cookie consent.
- A content blocker (AdBlock, uBlock Origin) can hide the cookie bar on the page. The visitor then has nowhere to give consent and never sees the AI Sales Agents. Turn your blocker off when you try out your store.
How to clear the cache#
- A WordPress cache plugin (WP Rocket, W3 Total Cache, LiteSpeed Cache and others): in its settings, purge the whole cache (Purge All, Clear Cache).
- A CDN (for example Cloudflare): in the CDN’s dashboard, purge the whole cache (Purge Everything).
- Your hosting or store platform: look for an option to clear the cache in its admin. If you cannot find one, ask your provider.
- Your browser: reload the page without the cache (Ctrl+Shift+R, or ⌘⇧R on a Mac), or open it in a private window.