The copied script is only part of the work. The chat window has to load reliably, behind it the bot needs correct information, and your team needs to be clear about who looks after which request.
An example: a wood stove dealer in Trento with 22 employees sells stoves through its online shop, also to customers in Austria and Bavaria. Today, Chiara from customer service answers the emails from the evening before every morning. "Is this stove enough for 70 square metres?" "When will my order arrive?" "Can someone call me back?" In future, a chat on the website should answer questions about the stoves and record callback requests in the ticket system Chiara's team uses to work through requests.
Key takeaways
- Start with a few tasks, and settle knowledge, permitted actions and open requests in advance.
- Compare four ways to add the chat: a built-in feature of your shop or helpdesk, a provider widget, an embedded view or your own interface.
- Find out which data is transmitted when the page loads, when the chat opens and when a message is sent.
- The integration is only complete when chat window, data access, knowledge, handover and operation have been checked together.
01 / 16
Adding an AI chatbot to your website: what should it do?
Start with a few tasks that you can describe precisely, such as product questions, contact requests or status information, for example on an order, for customers who are allowed to see it. For each task, write down three things. Which documents does the bot take its answers from? What may it do itself, for example record a callback? And where does a request go that it cannot resolve? At the stove dealer, it goes to Chiara.
You can start on this this week. Sit down with the person who answers your emails today, go through the requests of the last few weeks and write down the questions that come up often. From that list, pick the few tasks the bot starts with.
02 / 16
Where does the chat belong on your website?
A chat should help where visitors really have a question. On the product page of a stove, it can explain the features, such as the heat output, and on the contact page, it can take a request so that Chiara has everything she needs straight away. During payment, however, the chat window must not cover important buttons, error messages or legal information.
Tell customers as soon as the chat opens what it can help with and how they reach a person in your team. A greeting that keeps popping up by itself can get in the way of shopping. So test whether customers find the chat when they need it, and whether it leaves them alone otherwise. Do not just try to get as many opened chat windows as possible.
Important information should also be available without the chat. This includes opening hours, services, contact details and relevant conditions, such as the delivery costs at the stove dealer. They should reach customers without a conversation too, for example on normal pages of the website. This helps customers who do not want to chat, and your service then does not depend entirely on an additional supplier.
03 / 16
Built-in feature, widget or your own interface: which route fits?
What is still open is how the chat gets onto the website. Here, a widget means a ready-made chat window from a provider. An API is an interface through which programs exchange data. Four routes are possible:
| Route | When it may fit | What to check first |
|---|---|---|
| Built-in feature of your shop or helpdesk | Your existing software covers the tasks | Plan, knowledge sources, handover to your team and access to the account |
| Provider widget | Standard chat window with an installation the provider documents | Loading, appearance, cookies and channels |
| Embedded view | Separately hosted interface in a defined frame | Size, focus, authentication and rules for embedded frames |
| Your own interface using a supported API | Particular interaction or logic from your systems | Development, access, security and ongoing operation |
Use the route the provider documents for live operation. Microsoft, for example, explicitly distinguishes between its demo website and live embedding, and the demo is not intended for public live use. We checked this source on 26 September 2026.
Your own interface should answer a concrete need. If the standard widget is accessible and reliably does what your customers need, your own development may add unnecessary maintenance. Conversely, do not give up something important just because the standard window can be up quickly.
04 / 16
Who owns the chat account and the access?
Several companies with different roles may work on a website chat. At the stove dealer, the web agency installs the chat, Chiara's customer service runs it, and an IT provider connects it to the ticket system. Settle who owns the account with the chat provider and who holds administrator rights in it. The ongoing access and the necessary contracts should stay with you, so that you can carry on even if a partner is no longer available.
Separate testing from live operation as far as the products allow. If Chiara requests a callback in a test, no real customer may receive a message and no payment may be triggered. Have someone write down which settings are genuinely separate and which are shared.
A widget can accidentally be installed in several places on the website. A customer may then see two chat windows on top of each other, or your statistics count conversations twice. Decide on one place where the chat is installed, and who looks after it.
05 / 16
Which data flows before the customer types anything?
A visitor opens a product page, and the chat script may already transmit data before they click on the chat. Have someone find out what flows at three moments: when the page loads, when the visitor opens the chat and when they send a message. This may include technical identifiers, the page they are on and, later, the content of the conversation. A visible cookie banner does not by itself prevent an already loaded script from having made connections earlier.
The stove dealer has customers in Austria and Germany. For Austria, the Data Protection Authority explains what applies to cookies and which requirements exist.
In Germany, section 25 TDDDG, which concerns access to the visitor's device, is among the relevant rules. Have the purpose of your widget and the technology behind it assessed for the target market. A checkbox in the settings of the chat product is not yet blanket legal approval.
Then try out what happens when a visitor declines everything optional in the cookie banner. Can they still find a useful way to reach you? Do they understand how to switch the chat on if they want to use it after all? Avoid an empty panel that silently waits for consent the visitor has not given.
06 / 16
When may the chat show personal data?
"Do you also deliver to Munich?" Anyone may ask that, even without a customer account. "When will my stove arrive?" is different. For the chat to read an order or a contract, the chat needs the approved route for checking who the customer is and what they may see. A typed reference number, such as an order number, or an email address alone is not enough to show personal details.
Connect the sign-in to the data and actions permitted for that customer. Test explicitly what happens when the account or session changes, including on a shared device. For example, a couple shares a tablet. After he has signed out, the chat that is still open must not show any protected information.
If the secure connection is not there yet, the chat can send the customer to an existing account portal, at the stove dealer the customer account in the shop. That is a clear route your system already supports. But the bot must not claim it has checked the order when it has only read the general shipping rules.
07 / 16
How does the bot know what is right?
The stove dealer's folder contains old price lists, notes from sales and two country pages with different delivery times. If you upload everything, the answers do not get better by themselves. Select approved sources for the agreed tasks. Resolve old price lists, internal notes and contradictory country pages before the bot goes live.
For each source, note who owns it, which market and language it applies to and how long it is valid. Then ask the bot real questions, and read which passage it found and what it answers from it. A successfully uploaded document does not yet mean that the bot finds the right passage or respects an exception in it, such as a discontinued model no longer being delivered to Germany.
If the bot cannot answer a question, it needs a clear follow-up question or a handover to Chiara. It should not present general assumptions of a language model as a commitment from your company, such as what such a model generally knows about wood stoves. If it links to a page, that page must support what it said, and the visitor must be able to open it.
08 / 16
How a product question with a callback works
Tuesday, 21:40. A customer from Rosenheim writes from his phone: "Is the Lindau stove enough for 70 square metres? We have an old chimney in the house." The bot answers with what is in the approved product description, such as the heat output. Then it says openly that it cannot judge whether the old chimney is suitable. The customer would like a callback about this.
The bot asks only for name, phone number and when the customer can be reached. Then it shows a short summary that the customer can correct: "Callback for Thomas Huber, mornings, question: does the Lindau stove fit the old chimney?" Only when the ticket system confirms that the request has been created does the bot write: "Your request has reached us." It may confirm a fixed appointment such as "Wednesday at 10:00" only if that appointment is really booked in the team's calendar.
Before launch, Chiara tries the same case while the ticket system does not respond. The chat window stays usable and shows another way, such as the shop's phone number. The bot does not claim that a callback has been recorded, and it does not blindly send the request again. Afterwards, Chiara checks whether the request was created anyway and only the confirmation got lost.
Got a workflow like this?
Tell me about it. Honest take and a rough price, usually within a day.
09 / 16
Does the chat work on a phone and for all customers?
Test the chat on a narrow phone screen with the keyboard open. Send and close must remain reachable, and longer messages must remain readable. If the chat window covers the cookie banner or the payment button, you have a problem, even if all answers are correct.
Some customers use a website only with the keyboard or have it read aloud by a screen reader. Check with a keyboard and screen reader whether people can open the chat, type, notice new answers, open links, understand errors and close the chat.
A new answer must not keep pulling the customer out of the input field. If an error occurs, their text should be kept, and the message should say clearly what they can correct. Check the whole way into the account portal or the contact form. An easy-to-use chat window alone is not enough.
10 / 16
Does the chatbot slow the website down?
Measure typical pages once with and once without the chat, on comparable devices. At the stove dealer, these are, for example, a product page and the shopping cart. The Web Vitals documentation describes what matters, such as how fast the page loads, how quickly it responds and whether the layout stays stable, so that nothing shifts. Also check whether your customers can still reach the main content and the important buttons promptly.
Loading the chat later than the rest of the page may make sense. But it has to fit what the chat should do, and the legal assessment. Test the first start of the chat as well as later visits. A fast page helps little if the chat waits for a long time without explanation after the click.
Also click through several pages and use the back button. The chat must not accidentally start several times or keep a contact from the previous customer account.
11 / 16
Does a chatbot replace content for search engines?
The chat does not replace well-structured pages about your services or help pages. An answer the bot writes during a conversation for a single customer is not a dependable public information page.
Keep the important answers on accessible, maintained pages, and let the chat link to them. At the stove dealer, the question of the right stove size belongs on its own guide page. A widget is no guarantee of better positions on Google or of mentions in AI search systems.
Repeated questions from the chat can still give you pointers for new content if you evaluate them anonymised. Produce editorially reviewed pages from these, not unreviewed conversation exports.
12 / 16
What happens if the chat does not load?
Some visitors use browser extensions, such as an ad blocker, or networks that block external chat services. So also test what your website looks like when the chat does not load at all. The website should keep doing everything else, and a visible way to reach you must remain available without the widget. A loading spinner that turns endlessly is not a useful error message.
Also check what happens when the connection drops, for example when the customer from Rosenheim has typed half of his question and then the network is gone. His text should be kept, and he should see clearly how he can send again. He must not have to guess whether his request now arrives twice. The chat may confirm receipt only once the program that handles the request has really acknowledged receipt. A green tick that only the chat window itself shows is not enough for that.
13 / 16
What do you record for launch, switch-off and operation?
Before launch, write down which tasks the chat may take on, which version of the documents applies, where it is installed, which programs it may connect to and who the contact people are. Then test the published version in a new session and at least one chat that was already running. The preview and the customer view may show different versions.
Agree how you switch off a faulty function or the whole chat window in a targeted way. Chiara can, for example, switch off only the callbacks while the bot keeps answering questions about the stoves. Contact details and important website content must remain available. Once the fault is fixed, try the affected cases again before you switch the function back on.
At the stove dealer, the integration is complete when the chat window, the data access, the bot's knowledge, the handover to Chiara and ongoing operation have been checked together. The chat button is where the work starts. The goal is that customers understand what happens to their request and get a real confirmation.
14 / 16
For your IT team
The steps above form a complete plan for installation and acceptance. They have not been tested as an installation in a particular CMS, the program you use to maintain your website.
A test domain may need its own allowed origins and its own configuration. Look for existing chat and tracking installations. A widget may already be present in the theme, in a plugin and in the tag manager. If the same service loads several times, it may create duplicate events or overlapping interfaces.
With a Content Security Policy (CSP), the website controls which scripts, connections and embedded content are permitted. The MDN CSP guide explains this. Add only the provider destinations that are actually needed, and test them within the intended security policy.
If the widget is blocked at first, do not switch off the protections wholesale. Establish with the provider which destinations and embedding methods it supports. Record them, so that a later provider change does not leave an undocumented collection of overly broad exceptions.
Secret credentials for the CRM, your customer database, or for the model do not belong in publicly delivered website code. These connections must use server-side or provider-protected routes. A visible widget identifier can be part of the public installation, but it is not the same as an API key with special rights.
If the chat window is modal, meaning it blocks the rest of the page, the W3C dialog pattern helps. Do not apply it to a window that is not modal without designing the behaviour to match.
Modern websites do not reload completely on every page change. This is why a widget can start several times or keep a contact from the previous account. Include these cases in browser acceptance.
For JavaScript websites, Google describes crawling, rendering and indexing as steps to consider.
15 / 16
Take the worksheet
Worksheet
Download the editable CSV table
| Area | Decision | Test |
|---|---|---|
| Pages | Useful placement | Product and contact pages |
| Knowledge | Approved sources | Known and unknown question |
| Actions | Information or account access? | Forbidden change |
| Handover | Receiving team | Available and absent |
| Interface | Mobile and assistive use | Open, type, close |
Columns to fill in, in the file: Your value / observation, Owner, Next action.
Download the editable CSV table (CSV). Add your own values, names and open points. This worksheet contains no measured client results.
16 / 16
Related decisions
If you are choosing a provider next, or settling data protection and accessibility, read on here:
- AI chatbots for customer service
- Compare chatbot providers for customer service
- Review chatbot data, suppliers and deletion
- Test chatbot accessibility and alternative contact routes
For a first conversation, a short description is enough: which questions the chat should take on, which programs you work with and which special cases exist. Discuss it with modernagents.



