To add chat to your website, decide who will answer, sign up with a chat tool, and paste its script into your site's footer code area. Then publish and send yourself a test message from a private browser window.
The exact place for the code depends on your platform. The table in step 3 lists the common ones. If you run WordPress or Shopify, you can use an app or plugin in place of code.
Most of the effort in adding chat to a website comes before and after the paste. Before it, you decide who replies and what they know. After it, you check that the chat works on real pages and that someone reads the results. This guide follows that order, so you only install once.
Step 1: Decide who answers
This choice shapes your running cost and your work each week. Sort twenty recent customer emails by the kind of answer they needed, and the right model usually becomes clear.
An AI answers from your pages
Replies at any hour, on all Asyntai plans. Your work is keeping the content correct. It suits questions that your site or documents can answer.
Your team answers
Suits decisions and sensitive cases. Someone must be online, so plan your hours and say what happens outside them.
AI first, then a person
The AI takes the repeat questions and your team takes the rest. In Asyntai, escalation and human takeover are on Standard and Pro.
Start with AI and read the logs
Chat logs are on all plans. They show which questions need a person, and you can add your team later with no new code.
For more on this choice, read live chat vs chatbot. The steps below use Asyntai. The paste itself works the same way with most chat tools.
Step 2: Prepare the chat and copy your code
- Create an account and add your website. The Free plan includes 50 messages a month and up to 50 crawled pages.
- Let it read your site. The crawler follows your links from the homepage. Add files or FAQs for anything that your pages leave out, such as your returns process or your delivery areas.
- Ask your real questions in the Test Chat. You find it on the Setup tab of the dashboard. Test Chat messages do not use your quota, so ask freely, for example: "Do you deliver on Saturdays?" or "Can I pay by invoice?" Fix each weak answer in your content or instructions.
- Copy your embed code. It is in the Embed Code section of the Setup tab. It looks like the example below, with your own ID in place of YOUR_WIDGET_ID.
<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>
Step 3: Paste the code in the right place
Find your platform below. A footer code area is best, because it adds the chat to every page from one place.
| Platform | Where the code goes | Good to know |
|---|---|---|
| WordPress | Install the Asyntai plugin, or paste into the Footer section of WPCode | Purge your cache afterwards |
| Shopify | Install the Asyntai app and turn on its app embed in theme settings, or paste before </body> in theme.liquid | Open the store in a private window to test |
| Wix | Settings → Development & integrations → Custom Code. Choose All pages and Body - end. | Needs a Premium plan with a connected domain |
| Squarespace | Pages → Custom Code → Code Injection → Footer | Needs Core, Plus, Advanced, or an older Business or Commerce plan |
| Webflow | Site Settings → Custom Code → Footer Code | Publish the site to apply it |
| Duda | More → Settings → Head HTML → Body End HTML | Publish the site to apply it |
| HubSpot | Settings → Website → Pages → Site footer HTML | Page-level footer HTML also works |
| Google Sites | Insert → Embed → Embed code, on each page | The chat stays inside the embed area |
| Plain HTML | Before </body>, in your shared footer file or on each page | Upload the changed files |
Many more platforms, including Magento, Joomla, Drupal and Ghost, have their own page in the installation documentation.
Add the chat through one method only. Two copies of the code can cause trouble that is hard to trace. To add a chat window inside a page, as well as the corner button, follow the Embedded Chat guide. Our article on chat box widget examples shows the forms you can choose from.
Step 4: Test it like a visitor
Open a private window. Look for the button, by default in the bottom right corner. Ask a question that only your site can answer.
Open your chat logs and find that conversation. If it is there, the widget is connected to your account.
Open and close the chat. Make sure that a sticky menu, a cookie banner or a buy button does not clash with it.
If the chat does not appear
| Check | Why it matters |
|---|---|
| Cached page | A cache plugin, host or CDN can keep serving the old page. Purge each one, then reload in a new private window. |
| Code not in the page | View the page source and search for data-asyntai-id. If it is missing, the code did not save or the site was not published. |
| Damaged code | A visual text editor can change the code. Copy it again and paste it into a code field. |
| Your own browser | An ad blocker or privacy extension can hide the chat for you alone. Test in a clean browser profile. |
| Hidden page | The page may be on your Exclude Pages list. |
Integrated chat: connect it to the rest of your website
The steps above give the chat your public pages. An integrated chat for a website goes further and uses data from your other systems. Add these one at a time, once visitors are asking for them.
| You want the chat to | Use this | Plan |
|---|---|---|
| Answer about current products and stock | Shopify or WooCommerce sync, or a real-time data feed | Standard and Pro |
| Show products in the reply | Product cards | Standard and Pro |
| Know the signed-in customer's details | User Context | Standard and Pro |
| Take appointments | Bookings | Standard and Pro |
| Collect emails and phone numbers | Leads. Reach your CRM by CSV export or by GET /leads/ in the REST API. | Starter and above |
| Answer on other channels | Instagram, Messenger, WhatsApp and Discord connections. Zapier carries messages to other apps. | Starter and above |
Work out which plan you need
Asyntai counts messages, and one message is one AI reply. Estimate with your own numbers. If you have no chat history yet, start from your monthly contact emails and calls. These figures are only an example.
The allowance on Free ($0) is 50 messages a month, and on Pro ($449) it is 50,000. After launch, your real numbers replace the guess. The pricing page compares the plans in full.
The first weeks after you add chat
- Read the conversations. Read a set of chats each week, and note each wrong or weak answer. Fix the content behind it, because the question will come back.
- Adjust the opening. Change the welcome text to name what the chat can help with. On Starter and above, add suggested questions.
- Crawl again after changes. Run the crawl when you publish new prices, products or policies.
Frequently asked questions
Can I add chat to a website without coding?
Yes. On WordPress and Shopify, use the plugin or app. On most website builders, you only paste the code into a settings field, and you write nothing yourself.
Where should the chat code go in the HTML?
Put it just before the closing </body> tag. Your website builder's footer code field does the same job.
Can I add chat to some pages and not others?
Yes. Paste the code only on those pages, or install it site-wide and list the rest in Exclude Pages. Exclude Pages is on all plans and matches exact URLs.
Can I use one account for several sites?
Yes, up to your plan's limit: 1 website on Free, 2 on Starter, 3 on Standard and 20 on Pro.