---
{
  "title": "How to add an AI agent to your website (that actually answers)",
  "slug": "how-to-add-ai-agent-to-website",
  "intent": "icp-broad",
  "locale": "en",
  "date": "2026-10-20",
  "updated": "2026-10-19T23:33:45Z",
  "template": "default",
  "excerpt": "How to add an AI agent to your website: the script tag takes minutes. What decides whether it answers is the knowledge, the handoff and the rollout behind it.",
  "categories": [
    "Guides"
  ],
  "tags": [
    "AI agents",
    "AI customer service",
    "AI chatbot",
    "live chat",
    "knowledge base"
  ],
  "readTime": 23,
  "author": 11,
  "reviewer": 4,
  "seo": {
    "title": "How to add an AI agent to your website: a 7-step support guide",
    "description": "How to add an AI agent to your website: pick the right install path, connect what it answers from, set human handoff, and test on real questions before launch.",
    "image": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/banners/how-to-add-ai-agent-to-website-mvfvlfum-3a74f0-20261019.png"
  },
  "coverImage": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/banners/how-to-add-ai-agent-to-website-mvfvlfum-3a74f0-20261019.png",
  "coverImageAlt": "Hand-drawn illustration of a person fitting a friendly robot chat card into an empty slot on a website wireframe while a colleague watches, on a slate blue background",
  "coverImageWidth": 1920,
  "coverImageHeight": 1080,
  "cta": {
    "variant": "demo",
    "headline": "A website agent that answers, then hands off cleanly",
    "subhead": "eesel goes on your site with one script tag, answers from your help center and docs, and turns anything it can't solve into a ticket with a summary of the chat.",
    "primary": {
      "label": "Book a demo",
      "action": "demo"
    },
    "secondary": {
      "label": "Try for free",
      "action": "signup"
    }
  },
  "faqs": {
    "heading": "Frequently Asked Questions",
    "type": "blog",
    "answerType": "html",
    "faqs": [
      {
        "question": "How do I add an AI agent to my website?",
        "answer": "Connect the knowledge it should answer from, write the rules for what it may and may not say, set where hard questions go, test it on real past questions, then paste the vendor's script tag before the closing body tag. The install itself takes minutes; the <a href=\"https://www.eesel.ai/blog/ai-knowledge-base-audit\">knowledge base audit</a> before it is where most of the work sits."
      },
      {
        "question": "Do I need a developer to add an AI chatbot to my website?",
        "answer": "Usually not. Most widgets are one script tag pasted into a footer or custom code setting, and WordPress, Shopify, Webflow, Squarespace and Wix all have a place for it, though some need a paid plan. If you can't touch the code at all, a hosted <a href=\"https://www.eesel.ai/integrations/public-chat-link\">public chat link</a> needs no install."
      },
      {
        "question": "How much does it cost to add an AI agent to a website?",
        "answer": "It depends on the billing unit. Zendesk charges $1.50 to $2.00 per automated resolution, HubSpot 50 credits ($0.50) per resolved conversation, Freshworks $49 per 100 sessions, and eesel plans start at $299 a month for 500 credits, where one chat is one credit. The <a href=\"https://www.eesel.ai/blog/chatbot-cost\">chatbot cost</a> breakdown covers more vendors."
      },
      {
        "question": "Should I use my helpdesk's chat widget or a separate AI widget?",
        "answer": "If your team already answers chat in Zendesk or Freshdesk, keep that widget and put the AI inside it, so handoffs land in the same queue. A separate widget makes sense when you have no chat yet or want the AI to answer from sources your helpdesk can't reach. The <a href=\"https://www.eesel.ai/blog/ai-layer-vs-built-in-helpdesk-ai\">built-in vs layer</a> guide walks through the trade."
      },
      {
        "question": "How do I add an AI agent to a WordPress website?",
        "answer": "Paste the vendor's script into your theme footer or a header-and-footer plugin, or install the vendor's own plugin if it has one. On WordPress.com, header code needs a Personal plan or higher. See the <a href=\"https://www.eesel.ai/blog/ai-chatbot-for-website\">website chatbot</a> guide for options that work on any CMS."
      },
      {
        "question": "How do I stop a website AI agent from giving wrong answers?",
        "answer": "Answer only from sources you've reviewed, tell it to hand over when nothing in those sources fits, keep refunds and discounts behind a human, and replay real past questions before launch. The guide on <a href=\"https://www.eesel.ai/blog/ai-hallucinations-in-support-and-how-to-prevent-them\">preventing AI hallucinations</a> goes deeper."
      },
      {
        "question": "Why isn't my AI chat widget showing on my website?",
        "answer": "The usual causes are a Shopify app embed that is switched off by default, a site that hasn't been republished after adding code, a page editor that stripped the script, or a Content Security Policy blocking the vendor's domain. On eesel, allow https://cdn.eesel.ai for scripts and connections, as the <a href=\"https://www.eesel.ai/integrations/chat-bubble\">chat bubble</a> docs note."
      }
    ],
    "supportLink": null
  },
  "alternates": {
    "x-default": "how-to-add-ai-agent-to-website",
    "en": "how-to-add-ai-agent-to-website",
    "de": "ki-agent-auf-website-einbinden",
    "es": "como-agregar-agente-ia-a-tu-sitio-web",
    "fr": "comment-ajouter-un-agent-ia-a-son-site-web",
    "ja": "webusaito-ai-agent-tsuika",
    "pt": "como-adicionar-agente-de-ia-ao-site"
  }
}
---

## TL;DR

Adding an AI agent to your website takes one script tag and about five minutes. <mark>Whether it actually answers customers depends on three things the snippet doesn't do</mark>: what it's allowed to read, where it sends the questions it can't answer, and how slowly you widen it from a preview link to your whole site.

Pick the install path by where your support already lives, not by your website builder. If your team runs chat in Zendesk or Freshdesk, put the AI inside that widget so handoffs land in your queue. If you have no chat yet, a standalone widget with email or ticket handoff is faster to stand up.

eesel's [chat bubble](https://www.eesel.ai/integrations/chat-bubble) is one async script that answers from your help center, docs and site, and hands anything it can't solve to your helpdesk as a ticket with a chat summary. [SE Ranking](https://www.eesel.ai/customers/se-ranking) runs it on Zendesk live chat for three products and had <mark>2,100 chats answered first by AI in one month</mark>, with about 1,260 handed to people.

If you choose eesel's standalone chat bubble, your AI coding agent can use the [CLI setup guide](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent) to connect your content, train your bot, and retrieve the embed code programmatically. It can then add the widget to your site and verify that it responds correctly. The dashboard is also available if you prefer hands-on setup.

## Why "add an AI agent" is mostly not about the install

I spend a lot of my week looking at what people type into search before they buy support software, and "how to add an AI agent to a website" is one of those phrases where the search is smaller than the question. The person typing it rarely gets stuck on the script tag. They get stuck three weeks later, when the bot tells someone the return window is 60 days (it's 30), or when it answers "talk to a human" with a contact form.

When I asked ChatGPT this exact question as a support lead would, it went straight to three searches about web widgets, knowledge sources and handoff, and ended its answer by asking which helpdesk I use. That's the right instinct. The [AI chatbot](https://www.eesel.ai/blog/ai-chatbot-for-website) that goes on your site has three layers, and only the top one is the part you paste.

![Hand-drawn iceberg diagram: the widget, one script tag and 5 minutes, sits above the waterline, while the knowledge it reads and the exits for lookups and human handoff sit much larger below](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/blog-gen/generated/asset-1792452055890-0v3ebt-20261019.png)

- **The widget.** The bubble, its colors, the greeting. Every vendor in this guide installs it the same way underneath: a script tag pasted into your pages.
- **The knowledge.** What it answers from. Your [knowledge base](https://www.eesel.ai/glossary/knowledge-base), help center, product pages, PDFs, past tickets. This is the layer that decides whether answers are right.
- **The exits.** What happens when it can't answer, or when the customer needs their order looked up. A widget with no exit is the "fancy contact form" every customer has learned to hate.

I've watched this play out on real eesel rollouts. In one trial, a buyer ran a methodical 67-test evaluation, rated the knowledge answers solid, and still walked away because the widget itself "is quite slow and often gets stuck." In another, a medtech team's message to eesel's agent was "I copied the snippet and it doesnt work in netlify," and then "It worked." Both are install-layer problems. Neither is where most of the time goes.

The difference between a chatbot and an agent here is practical, not marketing. A rule-based bot follows a script; an [AI agent](https://www.eesel.ai/blog/ai-agents-vs-ai-chatbots) reads your content, answers in its own words, and can take scoped actions like creating a ticket. The extra power is why the knowledge and exits matter more.

## What to set up before you paste anything

Do these four things before the widget goes anywhere near a live page. Each one takes an afternoon, and skipping any of them is how you end up with a bot that gets pulled two weeks after launch.

### 1. List the 20 to 30 questions it must answer well

Pull your last month of chat and email tickets and write down the questions that come up most. These become your test set later. If you run Zendesk, the [ticket export](https://www.eesel.ai/blog/how-to-train-ai-on-past-tickets) guide covers getting the full conversations out; the same set doubles as your training material.

### 2. Clean the knowledge it will read

Every vendor I checked answers from roughly the same sources: help center articles, crawled web pages, uploaded files and sometimes past tickets. The catch is that a crawler reads everything, including the 2022 press release with old pricing. One G2 reviewer of an AI website agent described it plainly:

> "With all of the content that Piper crawls in the initial onboarding phase, it makes for a hefty QA experience prior to launch... It would be helpful to have a filter to option to see the content publish date so we can exclude older blogs and press releases that we don't want Piper referencing."
>
> -- [Stephanie C., G2](https://www.g2.com/products/qualified/reviews/qualified-review-7263584)

Run a [knowledge base audit](https://www.eesel.ai/blog/ai-knowledge-base-audit) first. Delete or exclude anything outdated, and write the three or four articles your top questions need but don't have.

### 3. Decide where the hard questions go

Name the destination before launch: a helpdesk queue, a shared inbox, or a live agent during business hours. Then name the triggers. The common ones are a customer asking for a person, a question with no good source, and any topic you never want the AI to handle alone (refunds, legal, account security). The [handoff best practices](https://www.eesel.ai/blog/ai-agent-handoff-best-practices) guide has more on writing these rules.

### 4. Write down what it must never promise

This is the one most teams skip. When SE Ranking set up its live chat agent, the brief was explicit: answer at once, in the customer's language, without promising things the team could not deliver, such as a live agent joining now, a discount, or a refund. Writing that list down turns a vague worry about [AI hallucination](https://www.eesel.ai/glossary/ai-hallucination) into three or four testable rules.

> "As a customer, I just want the information I need. While I don't want to talk to a chatbot, I also don't want to talk to a human - and for the same reason: they usually don't have the info I need."
>
> -- [mrandish, Hacker News](https://news.ycombinator.com/item?id=47240978)

That comment is the whole brief. Customers don't hate bots; they hate not getting the answer.

## Pick your install path

There are five realistic ways to put an AI agent on a website, and the right one depends far more on your helpdesk than on whether your site runs WordPress or Webflow. Pick the situation closest to yours.

<div class="widget-aiweb-path">
<style>
.widget-aiweb-path{background:#fff;color:#474739;border:1px solid #D9DEEF;border-radius:16px;padding:20px;margin:24px 0;font-size:15px;line-height:1.55}
.widget-aiweb-path input{position:absolute;opacity:0;pointer-events:none}
.widget-aiweb-path .wp-title{font-weight:700;font-size:17px;margin:0 0 4px}
.widget-aiweb-path .wp-sub{margin:0 0 14px;font-size:14px}
.widget-aiweb-path .wp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.widget-aiweb-path .wp-chips label{cursor:pointer;border:1px solid #4F63A8;color:#4F63A8;background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.widget-aiweb-path .wp-panel{display:none;border-top:3px solid #4F63A8;padding:14px 4px 4px}
.widget-aiweb-path .wp-panels .wp-p1{display:block}
.widget-aiweb-path .wp-chips label[for=wp1]{background:#4F63A8;color:#fff}
.widget-aiweb-path input:not(#wp1):checked ~ .wp-chips label[for=wp1]{background:#fff;color:#4F63A8}
.widget-aiweb-path input:not(#wp1):checked ~ .wp-panels .wp-p1{display:none}
#wp2:checked ~ .wp-panels .wp-p2,#wp3:checked ~ .wp-panels .wp-p3,#wp4:checked ~ .wp-panels .wp-p4,#wp5:checked ~ .wp-panels .wp-p5,#wp6:checked ~ .wp-panels .wp-p6{display:block}
#wp2:checked ~ .wp-chips label[for=wp2],#wp3:checked ~ .wp-chips label[for=wp3],#wp4:checked ~ .wp-chips label[for=wp4],#wp5:checked ~ .wp-chips label[for=wp5],#wp6:checked ~ .wp-chips label[for=wp6]{background:#4F63A8;color:#fff}
.widget-aiweb-path .wp-path{display:inline-block;border-radius:6px;padding:3px 10px;font-size:12px;font-weight:700;letter-spacing:.02em;margin-bottom:8px;background:#D9DEEF;color:#2E3A66}
.widget-aiweb-path .wp-head{font-weight:700;font-size:16px;margin:0 0 8px}
.widget-aiweb-path dl{margin:0;display:grid;grid-template-columns:minmax(110px,140px) 1fr;gap:6px 14px}
.widget-aiweb-path dt{font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#4F63A8}
.widget-aiweb-path dd{margin:0}
.widget-aiweb-path code{font-size:13px}
@media (max-width:560px){.widget-aiweb-path dl{grid-template-columns:1fr}.widget-aiweb-path dt{margin-top:6px}}
</style>
<p class="wp-title">Which install path fits your site?</p>
<p class="wp-sub">Pick the line that sounds most like your setup today.</p>
<input type="radio" name="wp" id="wp1"><input type="radio" name="wp" id="wp2"><input type="radio" name="wp" id="wp3"><input type="radio" name="wp" id="wp4"><input type="radio" name="wp" id="wp5"><input type="radio" name="wp" id="wp6">
<div class="wp-chips">
<label for="wp1">We already run chat in our helpdesk</label>
<label for="wp2">Shopify store</label>
<label for="wp3">Website, no live chat yet</label>
<label for="wp4">No helpdesk at all</label>
<label for="wp5">I can't edit the site code</label>
<label for="wp6">Custom app with a dev team</label>
</div>
<div class="wp-panels">
<div class="wp-panel wp-p1">
<span class="wp-path">Path 1: AI inside your existing widget</span>
<p class="wp-head">Keep the chat widget your team already answers, and put the AI in front of it.</p>
<dl>
<dt>Where it goes</dt><dd>Nowhere new. Zendesk's Web Widget, Freshdesk's Web Chat widget, Gorgias Chat and HubSpot chat each let you switch an AI agent on inside the widget that's already on your site.</dd>
<dt>Why this path</dt><dd>Handoffs land in the same queue, with the same tags and reports. Customers never see a second bubble.</dd>
<dt>Watch out for</dt><dd>Zendesk and Freshworks allow only one active AI agent per messaging channel or widget, so choose before you build two.</dd>
<dt>Real example</dt><dd>SE Ranking runs eesel on its existing Zendesk live chat for three products, one agent each.</dd>
</dl>
</div>
<div class="wp-panel wp-p2">
<span class="wp-path">Path 2: app embed or theme snippet</span>
<p class="wp-head">Install the vendor's Shopify app, or paste its snippet into <code>theme.liquid</code>.</p>
<dl>
<dt>Where it goes</dt><dd>Theme editor, then App embeds, then switch the app on. Or Online Store, Themes, Edit code, <code>theme.liquid</code>, just before <code>&lt;/body&gt;</code>.</dd>
<dt>Why this path</dt><dd>The agent can look up live orders, stock and prices instead of guessing from product pages.</dd>
<dt>Watch out for</dt><dd>Shopify switches app embeds off after install until you turn them on, and some apps need it re-enabled after a theme change. Editing code needs a purchased theme, not a trial.</dd>
<dt>Real example</dt><dd>ClutchLoop's agent, Loopy, answers on clutchloop.com and ran 76 live Shopify product lookups in a month.</dd>
</dl>
</div>
<div class="wp-panel wp-p3">
<span class="wp-path">Path 3: standalone widget, one script tag</span>
<p class="wp-head">Add an AI chat bubble with a script tag in your site's footer or custom code setting.</p>
<dl>
<dt>Where it goes</dt><dd>WordPress: theme footer or a header and footer plugin. Webflow: Site settings, Custom code, Footer. Squarespace: Code Injection, Footer. Wix: Settings, Custom Code, Body end.</dd>
<dt>Why this path</dt><dd>Fastest route to a working agent when there's no chat to replace.</dd>
<dt>Watch out for</dt><dd>Plans. WordPress.com header code needs Personal or higher, Webflow needs a paid site or workspace plan, Squarespace needs Core or above, and Wix needs a connected domain (Premium).</dd>
<dt>Real example</dt><dd>BEAUTEK's German-language KI-Chat on beautek.de answered 77 chats in a month and turned 20 into Zendesk tickets.</dd>
</dl>
</div>
<div class="wp-panel wp-p4">
<span class="wp-path">Path 4: standalone widget, email handoff</span>
<p class="wp-head">Use a widget that can hand off by email or by creating a ticket, so you don't need a helpdesk to start.</p>
<dl>
<dt>Where it goes</dt><dd>Same script tag as Path 3. The difference is the exit: the agent asks for a name and email and sends the conversation on.</dd>
<dt>Why this path</dt><dd>Small teams get answers at 2am without buying a helpdesk first.</dd>
<dt>Watch out for</dt><dd>Without a queue, handed-off chats live in an inbox. Agree who checks it, and how often, before launch.</dd>
<dt>Real example</dt><dd>eesel's bubble supports handover by email or into a connected helpdesk; you set the rule in plain language.</dd>
</dl>
</div>
<div class="wp-panel wp-p5">
<span class="wp-path">Path 5: hosted chat page or tag manager</span>
<p class="wp-head">Link to a hosted chat page, or add the script through Google Tag Manager.</p>
<dl>
<dt>Where it goes</dt><dd>A hosted public chat link goes in your nav, footer or help center with no code. If marketing already runs Google Tag Manager, a Custom HTML tag carries the widget script.</dd>
<dt>Why this path</dt><dd>You can launch this week without waiting on a web team.</dd>
<dt>Watch out for</dt><dd>A public link has no sign-in, so anyone with it can chat. Tag Manager minifies Custom HTML and can swap single quotes for double quotes.</dd>
<dt>Real example</dt><dd>eesel's docs suggest the public chat link as a hosted page to share with a colleague before the bubble goes live.</dd>
</dl>
</div>
<div class="wp-panel wp-p6">
<span class="wp-path">Path 6: framework install, CLI or API</span>
<p class="wp-head">Load the script once in your app layout, and drive setup from the terminal.</p>
<dl>
<dt>Where it goes</dt><dd>Next.js: once in <code>app/layout.tsx</code> with <code>next/script</code>. Self-hosted WordPress: <code>wp_enqueue_script</code> with defer, in the footer. Setup itself can run from a CLI or an MCP client.</dd>
<dt>Why this path</dt><dd>One render per page, no double-loading on client-side navigation, and the setup lives in version control.</dd>
<dt>Watch out for</dt><dd>Content Security Policy. The vendor's domains need to be in <code>script-src</code> and <code>connect-src</code>, plus <code>frame-src</code> if the chat opens in an iframe.</dd>
<dt>Real example</dt><dd><code>npx @eesel/cli init chat-bubble --site https://your-site.com</code> prints a snippet and a test link without an account.</dd>
</dl>
</div>
</div>
</div>

*Pick your setup to see the install path, where the code goes, and the trap people hit most often on that path.*

## Path 1: turn on AI inside the chat widget you already have

If your team already answers chat in a helpdesk, start here. I'd argue this is the most underrated path, because it's the one where the "exits" layer is already built. The AI answers first, and anything it can't solve drops into the same queue, with the same tags and SLAs your team works from today.

Here's how the four big helpdesks put their own AI agent on the website widget, all from their own docs:

| Helpdesk | Website widget | How the AI goes on it | AI billing unit | Price |
| --- | --- | --- | --- | --- |
| [Zendesk](https://www.eesel.ai/integrations/zendesk) | Web Widget (messaging), snippet before `</body>` | Create AI agent for Messaging, then Activate on channels | Automated resolution | `$1.50` committed, `$2.00` pay-as-you-go |
| [Freshdesk](https://www.eesel.ai/integrations/freshdesk) Omni | Web Chat widget, code from the Deploy code tab | AI Agent Studio, Deploy, Web Chat Topic, Start with AI Agent | Session (24-hour window) | `$49` per 100 sessions, 500 free once |
| [Gorgias](https://www.eesel.ai/integrations/gorgias) | Gorgias Chat, quick install on Shopify | AI Agent, Deploy, Chat, Enable AI Agent on Chat | Automated interaction | `$0.85` to `$1.00`, plus the ticket fee |
| [HubSpot](https://www.eesel.ai/integrations/hubspot) | Live chat via the tracking code | Customer Agent, Deploy, Channels, Deploy agent | Resolved conversation | 50 credits, or `$0.50` |

A few details from those docs that change how you'd set things up:

- **Zendesk** bills per automated resolution, `$1.50` committed and `$2.00` pay-as-you-go on its [pricing page](https://www.zendesk.com/pricing/), with 5 included per agent a month on Suite Team and 10 on Suite Professional. Since May 18, 2026, Zendesk sorts outcomes into [resolution tiers](https://support.zendesk.com/hc/en-us/articles/9570369117338), and only a verified resolution is billed. The [Zendesk AI agents](https://www.eesel.ai/blog/a-complete-guide-to-zendesk-ai-agents-setup-costs-and-best-practices) guide covers setup in depth.
- **Freshworks** counts a [session](https://crmsupport.freshworks.com/support/solutions/articles/50000004664-freddy-ai-agent-sessions-faqs) as every interaction in a 24-hour window. Two things catch people out: a welcome message from a conversation initiation workflow uses a session even if the visitor never replies, and previewing the agent while you build it uses sessions too. More in the [Freddy session consumption](https://www.eesel.ai/blog/freshdesk-ai-agent-session-consumption) breakdown.
- **Gorgias** puts [AI Agent on chat](https://docs.gorgias.com/en-US/set-up-and-use-ai-agent-on-chat-828220) only when a Shopify store is connected; its docs say BigCommerce, Magento and WooCommerce stores aren't supported. A ticket the AI fully resolves is billed both the ticket fee and the automation fee, per [Gorgias's billing docs](https://docs.gorgias.com/en-US/how-youre-billed-for-using-gorgias-199385). See the [Gorgias AI Agent pricing](https://www.eesel.ai/blog/gorgias-ai-agent-pricing-2026) post for worked numbers.
- **HubSpot** lets you set a [conversation coverage](https://knowledge.hubspot.com/customer-agent/deploy-the-customer-agent-to-channels) percentage, so the agent takes only some chats at first, and choose working hours. That's a built-in soft launch. The [Breeze Customer Agent](https://www.eesel.ai/blog/breeze-customer-agent) guide covers the rest.

The built-in agent isn't your only option on this path. You can also connect a separate AI to the same widget. That's what [SE Ranking](https://www.eesel.ai/customers/se-ranking) did: eesel answers Zendesk live chat for SE Ranking, Planable and SE Visible, one agent per product, each fed by its own help center. Between 8 August and 8 September 2026 it answered about 2,100 live chats and handed about 1,260 to the team, with every chat ending in an answer or a clean handover. The team also asked for an `ai_handled` tag on every ticket eesel touches, so containment is counted in Zendesk rather than guessed. Whether to use the built-in AI or a layer on top is a real trade, and the [built-in vs layer](https://www.eesel.ai/blog/ai-layer-vs-built-in-helpdesk-ai) guide walks through it.

## Paths 2 and 3: add a standalone AI chat widget with a script tag

If you don't run chat today, or your helpdesk's chat isn't on your site, you'll add a standalone widget. Every one of them works the same way under the hood: a short script loads the vendor's code, which draws the bubble and talks to their servers.

Here's eesel's, from the [chat bubble docs](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble):

```html
<script>
(function(){
  var script = document.createElement('script');
  script.src = 'https://cdn.eesel.ai/loader.js';
  script.async = true;
  script.onload = function() {
    if (window.EeselWidgetWithTrigger) {
      window.EeselWidgetWithTrigger({ triggerId: 'YOUR_TRIGGER_ID' });
    } else {
      window.__EESEL_WIDGET_V2_CONFIG__ = { EESEL_TRIGGER_ID: 'YOUR_TRIGGER_ID' };
    }
  };
  document.head.appendChild(script);
})();
</script>
```

The loader is async, so it doesn't hold up the page, and settings you save reach the live bubble in about 30 seconds, so you only paste it once. [Tidio](https://www.eesel.ai/blog/tidio-ai-agent) works on the same idea: one line of JavaScript, or a WordPress plugin, or a Shopify app, and its docs say to use [only one installation method](https://help.tidio.com/hc/en-us/articles/5379640857884-Install-Tidio-on-Shopify), not both. [Voiceflow](https://www.eesel.ai/blog/voiceflow) asks you to publish a version of your agent first, then copy the snippet from the Widget tab.

![eesel help center page for the Chat Bubble, showing the first setup step of asking your agent for a chat bubble and the settings page with the embed snippet, as taken from [eesel docs](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble)](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/eesel/images/eesel-docs-chat-bubble-20261019.png)

Where you paste it, and whether your plan lets you, varies by platform. Here's where it goes on each platform, taken from each platform's own docs:

| Platform | Where the script goes | Plan needed for custom code | Most common trap |
| --- | --- | --- | --- |
| WordPress.com | Header and footer plugin, or a Custom HTML block | Personal, Premium, Business or Commerce for [header code](https://wordpress.com/support/adding-code-to-headers/) | Free plans can't add header code |
| Self-hosted WordPress | Theme footer, or `wp_enqueue_script` with defer | None | Script loading in the head and slowing the page |
| Shopify | App embed, or `theme.liquid` before `</body>` | Any plan; code edits need a [purchased theme](https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code) | App embeds are off after install |
| Webflow | Site settings, Custom code, Footer | Paid [site or workspace plan](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags) | Code isn't live until you publish |
| Squarespace | Code Injection, Footer | Core, Plus or Advanced for [code injection](https://support.squarespace.com/hc/en-us/articles/205815908-Customize-parts-of-your-site-with-code-injection) | Lower tiers can't inject code |
| Wix | Settings, Custom Code, Body end | Published site with a connected domain (Premium) | Changing the domain [deletes snippets](https://support.wix.com/en/article/embedding-custom-code-on-your-site) |
| Google Tag Manager | Custom HTML tag | Free | Minifying can swap single quotes for double |

The Shopify one deserves a second look. Shopify's own developer docs say [app embed blocks are deactivated](https://shopify.dev/docs/apps/build/online-store/theme-app-extensions/configuration#app-embed-blocks) after an app is installed until the merchant switches them on in the theme editor. That single default is the most common reason someone tells a vendor "I installed it and nothing shows up." The [Shopify chatbot apps](https://www.eesel.ai/blog/best-shopify-chatbot-apps) roundup covers which ones handle this for you.

### When the script loads but the chat doesn't work

If your site sends a Content Security Policy header, a pasted widget can fail in a way that looks like a broken product. MDN breaks it into [three CSP rules](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/connect-src): `script-src` decides whether the script loads, `connect-src` decides whether it can reach the vendor's servers, and `frame-src` decides whether an iframe chat window can open. Miss only `connect-src` and you get a bubble that opens and then never answers. For eesel, the docs say to allow `https://cdn.eesel.ai` for scripts and connections.

## Paths 4 and 5: when you have no helpdesk, or can't touch the code

Two situations stall a lot of teams: there's no helpdesk to hand off to, or the website is owned by someone else and changes take a month.

For the first, pick a widget whose exit doesn't need a helpdesk. eesel's bubble can hand off by email, or by creating a ticket in a helpdesk if you have one, and you set the rule in plain language ("always escalate to a human if someone mentions a refund"). When it hands over, it asks for the visitor's name and email, creates the ticket with a summary of the chat as the first message, and tags it.

For the second, skip the site entirely at first. A [public chat link](https://www.eesel.ai/integrations/public-chat-link) is a chat page hosted by the vendor that you link from your nav, footer or help center. eesel's has no sign-in, so anyone with the link can chat; that's fine for public support content and wrong for anything account-specific. An [inline embed](https://www.eesel.ai/integrations/inline-embed) is the middle ground: one iframe (420 by 600 pixels by default) pasted into a single page, like your contact page. eesel's docs note some page editors strip iframes when you save, so paste it into the page template instead.

## Path 6: the developer route, CLI and API

If your site is a custom app, or you'd rather your setup lived in code, load the script once in the app's root layout rather than on every page. eesel's docs show it for Next.js with `next/script` in `app/layout.tsx`, and for self-hosted WordPress the `wp_enqueue_script` [WordPress function](https://developer.wordpress.org/reference/functions/wp_enqueue_script/) with `in_footer` and `defer` keeps the widget from blocking the page.

The more interesting change is that setup itself no longer needs a dashboard. The [eesel CLI](https://docs.eesel.ai/apis-and-developer-resources/cli) (`@eesel/cli`, Node 18.17 or newer) is the same agent you'd configure in the dashboard, driven from a terminal. A person can run it, a script can automate it, and a coding agent like Claude Code, Cursor or Codex can run the whole setup because every command prints JSON:

```bash
npx @eesel/cli init chat-bubble --site https://your-site.com   # no account needed
eesel login                                                     # keep the workspace
eesel files upload ./refund-policy.pdf
eesel chat "what's our refund policy?"
eesel chat "run a simulation on our last 100 tickets and tell me what you would have got wrong"
```

`init chat-bubble` picks or creates an agent, adds the chat bubble channel and prints the embed snippet plus a hosted test link; an anonymous workspace gets $5 of usage for 7 days. Commands are safe to re-run, writes support `--dry-run`, and setup commands are free (only chat is billed). Two honest limits: styling the bubble and writing its handover rules have no command yet, so those happen in the dashboard chat. The workspace is also an [MCP server](https://www.eesel.ai/blog/mcp-for-customer-support), so `eesel mcp token` prints a ready-made `claude mcp add` line. If you want the AI with no widget at all, the [headless support](https://www.eesel.ai/blog/headless-ai-customer-support) guide covers that pattern, and the [AI agent CLI](https://www.eesel.ai/blog/ai-agent-cli) post compares CLIs across vendors.

## Step by step: add an AI agent to your website

Whichever path you picked, the sequence is the same. Here's the order I'd follow, with the install deliberately near the end.

### Step 1: connect the knowledge

Point the agent at your help center, the public pages that answer customer questions, and any PDFs or docs with policies. Limits vary: Freshworks allows [10 URLs per agent](https://support.freshdesk.com/en/support/solutions/articles/50000011712) and up to 3,000 pages per site, HubSpot can crawl [up to 5,000 URLs](https://knowledge.hubspot.com/customer-agent/manage-the-customer-agents-content-sources) in a domain, and Tidio's priority-page scan stops at 100 pages. HubSpot also warns that private sources won't be cited but their content may still appear in answers, so think before uploading internal docs. The [training an AI support agent](https://www.eesel.ai/blog/how-to-train-an-ai-support-agent) guide goes deeper.

### Step 2: connect the systems it should look up

Knowledge explains your return policy. Only an integration can tell a customer where their order is. If you sell online, connect your store so the agent can read live orders, stock and prices; if you're SaaS, think about account status. Start read-only. eesel's own docs advise keeping refunds, cancellations and anything that costs money behind an approval at first. [WISMO automation](https://www.eesel.ai/blog/wismo-automation) is the classic first use case.

### Step 3: write the rules and the handoff

Write the never-promise list from earlier as instructions, then set the exits: who gets the handoff, through which channel, and what the agent says while it happens.

![Hand-drawn flow of a website chat: visitor asks, the agent searches your knowledge, then either answers with a source and asks if it helped, or, with no good answer or a request for a person, asks for name and email, creates a ticket with a chat summary, and your team replies](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/blog-gen/generated/asset-1792452063389-26tmx2-20261019.png)

Every vendor here hands over on a direct request for a person. The differences are in the defaults. Gorgias has built-in handover signals that [can't be turned off](https://docs.gorgias.com/en-US/customize-how-ai-agent-hands-over-to-your-team-6008591), including anger and legal threats. Tidio doesn't deduct from your Lyro quota if Lyro hands off immediately. Freshworks stops the agent and hands chats to live agents when sessions run out. The thing to check on yours is the line the visitor sees while waiting, because "Someone will get back to you" with no email collected is a dead end.

> "If the only "customer support" a company offers is to talk to a chatbot, I think of that as the exact same thing as not having customer support at all, even if the chatbot can be talked into letting me talk to a human."
>
> -- [JohnFen, Hacker News](https://news.ycombinator.com/item?id=40145746)

### Step 4: test it on real questions before anyone sees it

Run your 20 to 30 questions from earlier, plus the awkward ones: the angry message, the two-questions-in-one, the question about a product you discontinued. Freshworks' [Evaluate agent](https://support.freshdesk.com/support/solutions/articles/50000011719-chat-ai-agent-setup-and-channels) runs up to 50 queries per batch and can import solved past conversations. eesel's simulation runs the agent against real past tickets, scores each answer and suggests instruction changes. Either way, read the wrong answers yourself. The [testing an AI agent](https://www.eesel.ai/blog/how-to-test-ai-agent-before-launch) guide has a fuller test plan.

The failure you're looking for is the confident wrong one:

> "The problem with 'hallucination' is quite apparant and the bot WILL generate a totally wrong answer with that greatest of eloquence and confidence, which might (rightfully so) throw some people off."
>
> -- [Rik H., Capterra](https://www.capterra.com/p/10012414/Chatbase/reviews/)

### Step 5: install the widget

Now paste the snippet, using the path from the widget above. Check it on mobile, check it doesn't sit on top of your cookie banner or a sticky add-to-cart bar (eesel's bubble has a bottom offset for exactly this), and check it on a slow connection. A slow widget costs you as much trust as a wrong answer, as that 67-test trial showed.

### Step 6: widen it slowly

Don't flip it on across the whole site on day one. Widen it in stages, and only move up a step when the answers on the current one hold up.

![Hand-drawn staircase of five rollout steps: private preview link for your team only, replay past questions, help center and contact page, whole site after hours, whole site always on, with an arrow reading widen only when answers hold up](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/blog-gen/generated/asset-1792452467087-64d11u-20261019.png)

The tools support this in different ways. HubSpot's coverage percentage and working hours, Tidio's option to answer only when agents are offline, and eesel's per-page snippet (paste it only on the pages you want) all let you start small. A [support pilot](https://www.eesel.ai/blog/how-to-run-an-ai-support-pilot) of a few weeks is a sensible first stage.

### Step 7: measure the right things

Track three numbers: how often the AI answered without a handoff, how often a handoff was actually needed and happened, and what customers rated the chats. Be careful with the first one. A customer who closes the chat in frustration isn't a resolution, which is why Zendesk now only bills verified resolutions and why SE Ranking tags every chat helpful or not helpful. The [pilot scorecard](https://www.eesel.ai/blog/ai-support-pilot-scorecard) and [AI support metrics](https://www.eesel.ai/blog/cx-ai-metrics) guides go into how to define these on your helpdesk.

## Common mistakes when adding an AI agent to a website

Most of these I've seen more than once, and none of them are about the AI model.

- **Shipping a bot that only collects emails.** If the first thing the widget does is ask for contact details and promise a reply, it's a contact form with a face. Answer first, collect details only at handoff.
- **Letting it read everything.** Old blog posts, discontinued products and press releases end up in answers. Exclude them before launch.
- **No exit.** The Hacker News thread above isn't an outlier; [one retail operator](https://news.ycombinator.com/item?id=48254352) with millions of customers wrote that they "had people canceling accounts literally because support agents weren't humans" and ripped their site chatbot out. A visible, working "talk to a person" option is what keeps an AI agent from becoming that story.
- **Two bubbles on one page.** Adding an AI widget next to your existing helpdesk chat confuses everyone. Either put the AI in the existing widget (Path 1) or replace it.
- **Giving it powers before it has earned them.** [One Hacker News commenter](https://news.ycombinator.com/item?id=43706185) put the fear well: "what if it hallucinated and gives the customer free service for life?" The answer is scoped actions behind approvals, not no actions.
- **Forgetting the install details.** Shopify app embeds left off, a Webflow site not republished, a Wix domain change that wiped the snippet, a CSP rule blocking the vendor. None of these show an error to the customer; the bubble just isn't there.

For a longer list, see the posts on [AI chatbot problems](https://www.eesel.ai/blog/ai-chatbot-problems) and [AI hallucinations](https://www.eesel.ai/blog/ai-hallucinations-in-support-and-how-to-prevent-them).

## What it costs to run an AI agent on your website

The install is free almost everywhere. What you pay for is the AI's work, and each vendor counts that work differently. The unit matters more than the headline price, because a vendor that bills per session charges for chats that went nowhere, and one that bills per resolution doesn't.

| Tool | What you pay per unit | What counts as one unit | Source |
| --- | --- | --- | --- |
| Zendesk AI agents | `$1.50` committed, `$2.00` pay-as-you-go | A verified automated resolution | [Zendesk pricing](https://www.zendesk.com/pricing/) |
| HubSpot Customer Agent | 50 HubSpot Credits (`$0.50`) | A resolved conversation, set 72 hours after the last reply | [HubSpot catalog](https://legal.hubspot.com/hubspot-product-and-services-catalog) |
| Freshworks Freddy AI Agent | `$49` per 100 sessions | Every interaction in a 24-hour window | [Freshworks FAQs](https://crmsupport.freshworks.com/support/solutions/articles/50000004664-freddy-ai-agent-sessions-faqs) |
| Gorgias AI Agent | `$0.85` to `$1.00`, plus ticket fee | An automated interaction | [Gorgias pricing](https://www.gorgias.com/pricing) |
| Tidio Lyro | From `$0.50` | A conversation, from Lyro's first reply | [Tidio AI agent](https://www.tidio.com/ai-agent/) |
| Voiceflow | `$0.005` per message, plus model tokens | Each message a user sends | [Voiceflow credits](https://www.voiceflow.com/docs/documentation/account-management/billing/credits-pricing-table) |
| eesel | `$299` a month for 500 credits, `$0.80` per extra | A chat, however many messages | [eesel pricing](https://www.eesel.ai/pricing) |

Remember the seat cost underneath. Zendesk's AI agents sit on Suite plans from `$55` per agent a month billed annually, HubSpot's Customer Agent needs Service Hub Professional (from `$90` per seat a month plus a `$1,500` onboarding fee), and Freshworks' chat AI agent needs a Freshdesk Omni plan. For a deeper comparison, the [chatbot cost](https://www.eesel.ai/blog/chatbot-cost) guide and the [Lyro pricing](https://www.eesel.ai/blog/lyro-ai-pricing) and [Voiceflow pricing](https://www.eesel.ai/blog/voiceflow-pricing) posts break each one down.

## How eesel goes on your website

eesel is an AI teammate you hire for support, and on a website it shows up as a [chat bubble](https://www.eesel.ai/blog/ai-chat-bubble), an inline chat on one page, or a hosted chat link, all running the same agent with the same knowledge. It answers from your help center, website, Google Drive, Notion, Confluence, Shopify and past tickets, and it works with any helpdesk or none.

![The eesel Chat Bubble page, describing a floating chat widget that installs with one script tag, with stats for under 5 minutes to add it and 80+ languages, as taken from [eesel](https://www.eesel.ai/integrations/chat-bubble)](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/eesel/images/eesel-chat-bubble-page-20261019.png)

Here's what that looks like on real sites:

- **[SamCart](https://www.eesel.ai/customers/samcart)** runs one agent on Freshdesk email tickets and a separate one on its website chat bubble, each with its own greeting and tone, both answering from about 280 help center articles. The chat asks for a name and email before it answers, so the team can follow up.
- **[BEAUTEK](https://www.eesel.ai/customers/beautek)** runs a German-language KI-Chat on beautek.de that answers product and order questions, says plainly that it's an AI answer, and gives the team's phone number for anything important. In one month it answered 77 website chats and created 20 Zendesk tickets, most of them sales leads.
- **[ClutchLoop](https://www.eesel.ai/customers/clutchloop)** named its agent Loopy. It answers order status, returns and product questions on clutchloop.com, looks up live prices and stock in Shopify, and creates a Gorgias ticket when a chat needs a person.

On pricing, eesel is [one fixed monthly price](https://www.eesel.ai/pricing): a chat is one credit however many messages go back and forth, plans start at `$299` for 500 credits, and there's no per-seat or platform fee. The free trial is 100 credits for 7 days with no card.

![The eesel pricing page showing a Free trial with 100 credits, the Teammate plan from $299 a month for 500 credits, and a custom Enterprise plan, as taken from [eesel pricing](https://www.eesel.ai/pricing)](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/blog-research/eesel/images/eesel-pricing-2026-10-20-20261019.png)

Where it's not the right fit: if you're happy with Zendesk's or Freshdesk's own AI and only need the basics, the built-in agent keeps everything in one bill. A handover from eesel's bubble into a second live-chat widget works only with Zendesk Messenger or Freshchat. Its SOC 2 Type II audit is [in progress](https://www.eesel.ai/security), with the observation period started 1 October 2026; it uses SOC 2 Type II certified processors and doesn't train models on your data.

## Add an AI agent to your website with eesel

If you want an agent on your site that answers from what you've already written and hands anything else to your team with a chat summary, eesel's [chat bubble](https://www.eesel.ai/integrations/chat-bubble) is one script tag, and you can try it from a preview link before a single customer sees it. Connect your help center, replay last month's questions through the simulation, and only then paste the snippet. If your team already lives in Zendesk or Freshdesk, it can sit inside that chat instead, the way SE Ranking runs it.

[Try eesel](https://www.eesel.ai/ai-helpdesk-agent) free for 7 days, or book a demo to see the setup running on your own site.
