Chat box examples

Chat Box Widget: 8 Website Chat Box Examples and How to Embed One

A chat box widget is a small chat window that you add to a website with a line of code. Visitors type a question and get a reply from an AI, from your staff, or from both.

The most common chat box for websites is a floating button in the bottom corner. Others sit inside the page, open from your own button, or stay on screen as a search-style bar. Below are eight examples, the code to embed each type, and the questions that help you choose.

Two chat boxes can share the same AI and the same answers, yet get very different use. A button in the corner waits for the visitor to act. A box in the middle of a contact page is already open and ready for typing. So choose the form first, and think about the page where it will sit: a shop visitor asking about delivery and a student reading course notes need different things from the same widget.

8 website chat box examples

Each example shows the form, a line a visitor might see, and where it suits. The plan named is the Asyntai plan that includes it, so you can try the same form on your own site.

1. Floating bubble

A round icon in the corner. One click opens the chat over the page.

The form most visitors already know, and it follows them from page to page. It suits almost any site as a starting point. All plans.

2. Bubble with a greeting

"Not sure which size to order? Ask here."

A short message floats beside the button. Write something tied to your business, because "How can I help?" tells the visitor little. The text can run to 100 characters. All plans.

3. Open input field

"Ask about our delivery areas..."

A text field sits above the button, so the visitor sees where to type before opening anything. A click opens the chat with the cursor in place. All plans.

4. Labelled button

A pill or side tab that carries words as well as an icon.

Words make the purpose clear on a busy page. Asyntai has fifteen chat button designs. Pill, Reveal, Edge tab and Dock need Starter. Card, Split, Overhang and Typewriter need Standard.

5. Suggested questions

"Do you ship to Canada?" "What is your return period?"

Up to four clickable questions appear in an empty chat. They help people who do not know what the chat can do. Starter and above. Pro can also suggest different questions on each page.

6. Inline chat on the page

A "Chat with us" section with the chat window already open.

This form fits contact pages and help pages. The chat sits in your layout like any other content, and the floating bubble can stay active beside it. Embedded Chat is on all plans.

7. Your own button

"Talk to us about this plan" in your hero section or menu.

Any button or link on your site can open the chat, styled like the rest of your page. Use it when a corner icon does not fit your design. A custom open button is a small piece of code, shown below.

8. Ask AI bar

"Ask anything about the docs" in a centred field at the bottom of the page.

The bar expands into a fullscreen conversation when the visitor starts typing. It suits documentation and long content, and you can limit it to chosen pages. The Ask AI Bar is on Pro.

Which example fits your site

Your siteWhat visitors usually askTry this form
Online shop"Is this in stock in blue?"Bubble with a greeting on product pages
Local service"Do you cover my postcode?"Open input field, plus inline chat on the contact page
Software product"Does the plan include API access?"Your own button on the pricing page, with suggested questions
School or course site"When does enrolment close?"Inline chat on the admissions page
Documentation"How do I reset my token?"Ask AI bar on the docs pages only

These are starting points. Your chat logs will show which pages and questions really matter on your site.

How to embed a chat box on your website

Each form above comes from one of three pieces of code. In Asyntai, you copy your own code from the Setup section of your dashboard, because it holds your widget ID.

The floating chat box

Paste this before the closing </body> tag, or into the footer code field of your website builder. This code also powers the greeting, the input field, the button designs and the suggested questions. You turn those on in Widget Settings, with no new code.

<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>

The inline chat box

Keep the code above on the page. Then add this line at the exact place where the chat should appear.

<script src="https://asyntai.com/static/js/chat-embed.js" data-asyntai-id="YOUR_WIDGET_ID"></script>

The window measures 400 by 650 pixels on a desktop. On a phone it takes the full width at 550 pixels tall. Style the parent element to set its position. The inline box and the floating bubble share one conversation, so a visitor can move between them and keep the same chat.

Your own button

With the floating code on the page, this button opens the chat. To remove the corner icon, hide #mccs-chat-button with CSS, and make sure your own button is easy to find on every page.

<button onclick="window.AsyntaiWidget.open()">Chat with us</button>

When a platform refuses scripts

Notion, SharePoint and some page builders accept only an iframe. For those, use an iframe embed, which needs Starter or above. Use the script whenever your platform allows one, because a chat in an iframe cannot read the page around it and has no floating bubble. Our guide on how to add chat to your website lists where the code goes on each platform.

How to choose the best chat box for your website

Lists of the "best" chat box rarely match your site, because the look of a widget matters less than what it can say. Put these questions to any tool before you decide.

  1. Where do the answers come from? Some boxes only pass messages to your staff. Some follow scripts you build by hand. An AI chat box answers from your own pages and documents. Ask to test it with real questions from your inbox.
  2. What happens when it cannot answer? Check whether a visitor can reach a person, and what they see outside your working hours.
  3. Can you read the conversations? Logs show you wrong answers and missing content. Without them you cannot improve the chat.
  4. What does it count, and what does it cost at your volume? Vendors charge per agent, per conversation, or per message. Work out the cost with your own numbers.
  5. Does it look right on a phone? Open it on a real phone. Check that it does not cover your menu, your buy button or a cookie banner.
  6. Does it match your design? Check colours, position, and whose name appears in the footer of the window.

What you can change in the Asyntai chat box

Asyntai reads your website and answers visitors from your pages, your files and your instructions. These are its main visual settings and the plan each one needs. Colours are set on the same page.

SettingWhat it changesPlan
Welcome text and greetingThe first message and the floating bubble textAll plans
Auto-openOpens the chat or shows the bubble after 1 to 60 secondsAll plans
PositionBottom left or right, or custom offsets in pixelsStarter and above
Name, logo and iconThe name in the header, your logo and your own button imageStarter and above
Widget languagesTranslates the interface into 32 languagesStarter and above
Product cards and imagesShows products and pictures inside the repliesStandard and Pro
Font and branding removalSets your font and removes "Powered by Asyntai"Pro

Messages are the meter, and one message is one AI reply. The monthly allowance is 50 on Free ($0), 800 on Starter ($39), 15,000 on Standard ($139) and 50,000 on Pro ($449). See the full list on the pricing page.

Frequently asked questions

What is the difference between a chat box and a chatbot?

The chat box is the window on the page. The chatbot is the software that writes the replies. A chat box can also connect to your staff with no bot at all. Read more in live chat vs chatbot.

Can I embed a chat box without a floating button?

Yes. Add the inline code where the chat should appear, then hide the corner icon with CSS. The main widget code must stay on the page, because the inline box depends on it.

Can I show the chat box on some pages only?

Yes. Add the code only to those pages, or keep it site-wide and list the pages to hide in Exclude Pages.

Will a chat box work on my website builder?

If the builder accepts a script in a footer or custom code field, the floating chat box works. Some builders place embeds in a box of their own, so the chat stays inside that box and does not float. Your builder's guide in the installation documentation explains what to expect.

Try these chat box examples on your own site

Let Asyntai read your pages, choose a form, and ask it your real customer questions. The Free plan includes 50 messages a month, and the bubble and inline chat are both on it.

Start free

Explore Our Solutions

Find the right AI chatbot for your platform and use case.

Blog in other languages: Deutsch Français Português