# Agents on your website

> The chatbot and the web agent — what each one is, when to use which, and how to put them on your site.

Source: https://docs.cleartalk.ai/docs/guides/website-agents

Two agents live on your website rather than on a phone number. They look similar in the sidebar and do quite different jobs.

<Compare
  left={{
  title: "Chatbot",
  subtitle: "Text chat in a widget",
  points: [
    "Visitors type; the agent replies in text.",
    "Always driven by a pathway.",
    "Floating bubble or mounted inline on the page.",
    "Quick actions can link out to a phone number, email, or booking page.",
  ],
}}
  right={{
  title: "Web agent",
  subtitle: "Voice call in the browser",
  points: [
    "Visitors talk; the agent talks back.",
    "Driven by a prompt or a pathway — your choice.",
    "Card, orb, or full-screen mobile treatment.",
    "Can book appointments during the call.",
  ],
}}
  caption="Both embed with a snippet. The question is whether your visitors would rather type or talk."
/>

<Key>
  **Chatbot for questions, web agent for conversations.** Someone checking your hours wants to type. Someone deciding whether to book a $9,000 job would rather talk — and will tell you far more in ninety seconds of speech than in a chat thread.
</Key>

## Building a chatbot

The settings are the same in both editor layouts; only the arrangement differs.

**In the [new editor](/docs/agents#the-new-editor-and-the-classic-editor)** it's one page. **Chatbot Name** and **Routing** are the two required rows, and an **On your website** card below them works through four steps: **How it sits on the page** (**Floating bubble** or **Inline on page**), **Pick a template** (**Classic**, **Modern**, **Glassmorphism**, or **Custom**, which is inline only), **Style it**, and **Put it on your site**. Styling is split into tabs — Text, Colors, Bubble or Layout depending on placement, and Buttons. The preview on the right is live: type into it and the replies come from the published version of the pathway picked under Routing, even before you save. Webhooks, tools and bookings in that pathway run for real.

**In the classic editor** it's a wizard of tabs you work straight through, described below. The **Embed** tab appears once the chatbot is saved.

<Screenshot
  src="/img/chatbot-form.png"
  alt="The new chatbot editor: the Chatbot Name and Routing rows, the On your website card with placement and template choices, and a live preview of the chat widget on the right."
  caption="A live preview of the widget updates as you fill the form. Use it — this is what your visitors see."
  pins={[
  { x: 21, y: 43.4, from: "left", at: -2, label: "The two required rows: Chatbot Name and Routing." },
  { x: 21, y: 65.2, from: "left", at: -2, label: "On your website: placement first, then a template and its styling." },
  { x: 96.6, y: 55, from: "right", at: 102, label: "The live preview. Check the greeting reads well before you go near the embed." },
]}
  redactions={[{ x: 3.4, y: 93.6, w: 11.6, h: 5.2, reason: "Account name and email hidden" }]}
/>

**Identity** — the avatar, header title, greeting line, input placeholder, and the welcome message that appears as the first bubble. The welcome message matters more than the rest: it's what decides whether anyone types at all. "How can I help?" gets less engagement than "Want a price for your postcode?"

**Routing** — every chatbot is backed by a pathway. Pick the one that drives replies. You can also point an events webhook at your own system.

**Appearance** — embed mode and the colours. Floating bubble launches on top of the page; inline mounts the chat into a container you place. Inline adds layout controls for the on-page panel.

**Bubble** — the icon, position, size, and whether the widget opens automatically on page load.

**Buttons** — persistent quick actions above the input box, linking to a phone number, an email address, a booking page, or any URL. These are underused. A "Call us now" button on a chatbot is not an admission of defeat; it's the shortest path for someone who's decided.

**Embed** — the snippet. Paste it into your site's HTML, just before the closing `</body>` tag. It loads on every page that includes it. You get it once the chatbot has been created.

<Callout title="Auto-open with care">
  Auto-opening lifts engagement and annoys people, in roughly equal measure. If you turn it on, don't do it instantly — and never on a page someone landed on to find your phone number.
</Callout>

## Building a web agent

Closer to the voice agent editors, because it is one.

**In the new editor**, **Identity**, **Voice** and **Agent Instructions** are the required rows. Below them, an **On your website** card has three steps: **Pick a template**, style it — tabs such as Text, Colors, Size & shape and Placement, depending on the template — and **Put it on your site**. **Calendar** is the one optional row, shown on a prompt-based agent. The preview on the right follows every change, and an agent that follows a pathway gets a **Test chat** button at the top.

**In the classic editor** it's a wizard of tabs, described below.

<Screenshot
  src="/img/web-agent-form.png"
  alt="The new web agent editor: the Identity, Voice and Agent Instructions rows, the On your website card with Card, Orb and Mobile templates, and a live preview of the voice-call card."
  caption="Same shape as the chatbot, but the preview is a call button rather than a chat thread — this one talks."
  pins={[
  { x: 21, y: 51.3, from: "left", at: -2, label: "Three required rows this time: Identity, Voice and Agent Instructions." },
  { x: 21, y: 82.9, from: "left", at: -2, label: "Pick a template: Card, Orb or Mobile." },
  { x: 96.6, y: 85, from: "right", at: 102, label: "The preview shows the Card template, with its Voice Call button." },
]}
  redactions={[{ x: 3.4, y: 93.6, w: 11.6, h: 5.2, reason: "Account name and email hidden" }]}
/>

**Identity** — name, model, language, and the first sentence the visitor hears when the call connects. Also the widget title and greeting shown on the card and mobile treatments.

**Voice** — which voice it speaks with.

**Agent Instructions** — the same Input Type toggle the phone agents have: a plain-English **Prompt**, or an attached **Pathway**. Unlike the chatbot, you're not forced into a pathway here.

**Calendar** — hook it up to a calendar so it can offer and book time during the call. Only offered on a prompt-based agent; a pathway books through its own steps. See [Booking in conversations](/docs/calendars/booking-in-conversations).

**Appearance** — three on-page templates:

| Template   | What it looks like    |
| ---------- | --------------------- |
| **Card**   | A floating chat card  |
| **Orb**    | A pulsing call button |
| **Mobile** | Full-screen call      |

The preview updates live as you tune the colours. On the card and the orb, **Placement** sets where on the page it sits and how big it is. Those apply to the Floating code below; an iframe shows it wherever you paste it.

**Embed** — the code for your site, once the agent has been created. Three formats:

| Format             | What it does                                                                                                      |
| ------------------ | ----------------------------------------------------------------------------------------------------------------- |
| **Floating**       | Sits in a corner of every page you add it to, at the position and size you set for the widget. Card and orb only. |
| **iframe snippet** | Shows inside your page, exactly where you paste it.                                                               |
| **Direct URL**     | The widget on its own page — link to it or load it in your own frame.                                             |

The code always uses the template you **saved**. If you've picked a different one and not saved yet, the embed step says so. The iframe snippet and the direct URL can switch template per page, so you can run the orb on your homepage and the card on your pricing page. **Mobile** only works inline: on a page carrying the Floating code, it shows the card instead.

## Which pages to put them on

Not all of them.

<DoDont
  goodTitle="Worth embedding on"
  badTitle="Usually not worth it"
  good={[
  "Pricing pages — where hesitation happens.",
  "Service and location pages, where people have specific questions.",
  "Anywhere a form is the only way to reach you.",
  "High-traffic landing pages from paid ads.",
]}
  bad={[
  "Your careers page.",
  "Blog archives.",
  "Checkout or payment pages, where it's a distraction.",
  "Every page, indiscriminately.",
]}
/>

## Testing before you ship

1. **Load it on a real page**, not just the preview. Check it doesn't cover your navigation or a call-to-action.
2. **Try it on a phone.** Most visitors are on one, and a widget that works on a desktop can be unusable on mobile.
3. **Have the conversation yourself**, and read it back in [Conversations](/docs/guides/conversations) — website sessions appear there alongside calls and texts.
4. **Ask it something it shouldn't know**, and see what it does. A knowledge base helps here — see [Knowledge bases](/docs/guides/knowledge-base).

<Callout type="warn" title="Web agents need microphone permission">
  A browser will ask the visitor for microphone access before a voice conversation can start. Some will decline, and some are on a device where it won't work at all. Make sure there's still a visible way to reach you for people who don't take the call.
</Callout>

## What you get back

Both channels record full conversations in [Conversations](/docs/guides/conversations), with the same results and post-conversation analysis as calls and texts. A chatbot session where someone asked about pricing and left is data — and it's usually the most honest feedback about your website you'll ever get.
