Guides

Embed an AI chat widget on any site: what to decide first

Seven decisions to settle before you embed an AI chat widget: its job, placement, triggers, greetings, mobile behavior, speed and accessibility. No code, works on any site.

By the Askocto team · · 7 min read

Before you embed an AI chat widget on your website, decide what it is for, where it sits, when it opens, how it behaves on a phone, what it costs in page speed and who can use it with a keyboard or a screen reader. Settling these takes an hour and saves weeks of rework. This guide covers each decision in plain terms, so it applies to any site builder or stack.

In short: Give the widget one job per page, keep it clear of key buttons, never open it uninvited on arrival, design for the phone first, load it after the page content and check that it works from the keyboard.

Decide the job of the widget

A widget that tries to do everything ends up doing nothing well. Start by choosing the job it has on each part of your site.

  • Support: answers questions, checks an order, collects details for a person. Best on help pages, account pages and order pages.
  • Sales: answers product questions, qualifies visitors and books meetings. Best on marketing and pricing pages.
  • Guidance: walks someone through your product, step by step. Best inside the app or on setup pages.

Askocto offers these as separate agent types, a support agent, a sales agent and a guidance agent, so one site can show a different agent in each area. You can do the same with any tool by changing the greeting and the knowledge behind it.

Write down what success looks like for each job: a question resolved, a meeting booked, a setup step completed. You will need it when you review results. The full launch sequence is in the guide to adding an AI chatbot to your website.

Choose placement and launcher style

The launcher is the small button that opens the chat. Three decisions matter.

  • Position. The bottom right corner is the common convention for left-to-right languages. Check it against what already lives there: cookie banners, back-to-top buttons, sticky add-to-cart bars and bottom navigation on mobile.
  • Label. An icon alone is easy to miss or misread. An icon plus a short label such as "Ask a question" tells a new visitor what it does.
  • Offset. Keep the launcher clear of anything a visitor needs to tap. If a sticky bar appears on some pages, move the launcher up on those pages.

Do not hide the widget on pages where people get stuck, such as login and checkout. Keep it quiet there instead: no prompts, just a launcher that is available.

Set triggers and page-specific greetings

Triggers

The rule is simple: never auto-open the chat when someone arrives. A visitor who did not ask for help reads a pop-up as an interruption. Pick the quietest trigger that does the job.

Trigger Good for Risk
Launcher only Every page Some visitors never notice it
Prompt after time on page or deep scroll Long help articles, pricing pages Feels pushy if it fires too early
Behavior-based prompt, such as repeat visits to one page Pricing and product pages Can feel like surveillance if worded badly
A "Chat with us" link that opens the widget Contact page, error pages, failed payment messages None, because the visitor chose it

Whatever you pick, show at most one prompt per visit, remember when it was dismissed and keep prompts off checkout steps and half-filled forms.

Greetings that match the page

A greeting should reflect where the visitor is. Keep it to one or two lines and say that it is an AI assistant.

Page Example greeting Job
Pricing "Questions about plans? Ask me and I will point you to the right one." Sales
Product page "Need help with sizing or delivery?" Support or sales
Help article "Not what you were looking for? Describe the problem." Support
Order page "Is something wrong with this order?" Support
Inside the app "Stuck on this screen? I can walk you through it." Guidance
Checkout No greeting, launcher only Support

Plan mobile behavior first

Check your own analytics. If most visits come from phones, design for the phone and then scale up. On a small screen the widget stops being a floating box and becomes the whole page, so a few details decide whether it works.

  • It opens full screen or close to it, with a close button that is easy to hit.
  • The message box stays visible when the on-screen keyboard opens.
  • The launcher does not cover bottom navigation, sticky buy buttons or the browser's safe areas.
  • Tap targets are large enough for a thumb, and suggested questions wrap cleanly.
  • You have decided what the back gesture does: close the chat, not leave the page.
  • Long answers, lists and links read well in a narrow column.

Test on real phones, not only in a desktop browser's small-screen mode, and test once on a slow connection.

Keep performance in check

A chat widget is extra code from another source, loaded on every page it appears on. It is cheap to manage if you plan for it.

  • Load it after the main content so it never blocks the page from showing.
  • Load the heavy part only when the visitor opens the chat, if your tool allows it.
  • Reserve a fixed position so the launcher appears without shifting the layout.
  • Measure load time and layout shift before and after with the page speed tool you already use, and compare.
  • If your site restricts which outside sources can load, ask your developer to allow the widget's source.

Run the comparison on a typical page and on your slowest page. If the widget adds a visible cost, restrict it to the pages where it earns its place.

Make it accessible

A chat window is an interface like any other, and it should work for people who use a keyboard, a screen reader, zoom or reduced motion. A basic checklist:

  1. The launcher and every control inside the chat can be reached and used with the keyboard, and Escape closes the window.
  2. Focus moves into the chat when it opens and returns to the launcher when it closes.
  3. The launcher has a clear text name for screen readers, and new messages are announced without stealing focus.
  4. Text and buttons meet contrast guidelines and stay usable when the page is zoomed.
  5. Motion, such as a bouncing launcher or typing animation, respects the visitor's reduced motion setting.
  6. The route to a person is as reachable as the AI, by keyboard and by screen reader.

Test with the keyboard alone for five minutes. It finds most problems.

Run a pre-launch checklist

Work through this list before the widget goes on every page. The guide to testing an AI support agent covers the content side.

  1. Start with a few pages, not the whole site.
  2. Check the notice about AI use and data in the widget. The GDPR checklist for AI support chatbots lists what to cover.
  3. Ask for a person during opening hours and outside them. Make sure the customer sees what happens next. The AI to human handoff guide explains what should travel with the conversation.
  4. Check that the launcher does not collide with other elements on the ten most visited pages.
  5. Test on two phones, one tablet and two desktop browsers.
  6. Confirm the widget and the other channels give the same answer. The omnichannel AI support guide explains why shared knowledge matters.
  7. Review the first week of conversations and adjust greetings and triggers.

In Askocto the website chat widget, email, voice and Slack share the same knowledge, so the answer a visitor gets in the widget matches what they would get elsewhere. To see how a widget would look on your pages, create a free account.

Frequently asked questions

Where should an AI chat widget go on a page?

The bottom corner is the usual place, but check it against cookie banners, sticky bars and mobile navigation. Move the launcher where it covers nothing a visitor needs to tap.

Should the chat widget open automatically?

Not on arrival. A launcher with a clear label works for most pages. Use a gentle prompt only where a page is long or hard to use, and never at checkout.

Does a chat widget slow down my website?

It can, because it adds code from another source. Load it after the main content, measure page speed before and after, and limit it to the pages where it helps.

Can I show different greetings on different pages?

Yes. Match the greeting to the page, such as plans on a pricing page or order trouble on an order page, and keep each one to a line or two.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
Guidesadd ai chatbot to website
May 15, 20265 min read

How to add an AI chatbot to your website: a 10-step plan

Ten steps to add an AI chatbot to your website, from goal and content to fallback, testing, a soft launch and your first review. No install code, just the plan.

Read article
Guidesconnect ai agent helpdesk crm
Oct 27, 20267 min read

Connect an AI agent to your helpdesk and CRM: what to sync

Connecting an AI agent to your helpdesk and CRM is four decisions: what it reads, what it writes back, which actions it may take and how you prevent duplicates. Here is how to make each one.

Read article
Guidesmultilingual ai customer support
Oct 17, 20266 min read

Multilingual AI customer support: how to cover more languages

How to add languages to AI support without losing quality: choose languages from real tickets, decide how to store content, keep a term list, test with native speakers and route handovers.

Read article