Talk to our live AI agent right now —Call our live AI —IN +91 79711 70843
NutaanNutaanVOICE AI

How to Add an AI Chat Widget to Your Website: The Complete Setup Guide

One script tag gets the widget live — but the difference between a gimmick and a salesperson is in the setup most guides skip: knowledge tuning, style, quick links, voice, and weekly transcript review.

Chat WidgetTutorial
1 Jun 2026 · updated 12 Jun 2026 · 9 min read · Nutaan Team
How to Add an AI Chat Widget to Your Website: The Complete Setup Guide

An AI chat widget turns a website from a brochure into a salesperson — one that answers product questions at midnight, shows recommendations with prices, and books the appointment while your competitor's visitor is still hunting through menu pages. The installation itself takes ten minutes. The difference between a widget that embarrasses you and one that quietly resolves 90% of queries is everything around the installation — and that is what this guide actually covers, based on watching hundreds of Nutaan deployments succeed and occasionally faceplant.

Before you install: the one decision that matters

Decide what the widget is for, in one sentence, before touching code. "Answer product and shipping questions so support email drops." "Qualify property inquiries and book site visits." "Book appointments and answer fee questions." This sentence determines your knowledge sources, your quick links, your handoff rules, and how you will judge success in week four. Widgets configured as "general assistant for everything" measure badly at everything; widgets with one job measure brilliantly and earn expansion.

Also decide your AI honesty policy now: will the bot disclose it is AI (we recommend yes — visitors trust a competent AI more than a fake human), and what must it never do (quote unlisted discounts, give medical advice, promise delivery dates)? These become configuration in step four.

Step 1–2: Workspace and knowledge base (the part that determines quality)

Create the workspace at nutaan.com — free tier, ₹100 welcome credits, no card. Then point the Knowledge Base at your website URL. The crawler indexes your pages — products, prices, policies, FAQs, about, contact — into the retrieval layer the AI answers from. This crawl is the ceiling on answer quality: the AI can only be as accurate as what it indexed.

So spend your effort here. Check what the crawl captured. If your prices live in images or PDFs, upload the price list as a document. If your return policy is three sentences on a checkout page, write the full version and upload it. If staff answer the same five questions on the phone daily, write those Q&As down and add them — phone-FAQ knowledge is almost never on the website, and it is exactly what visitors ask the widget. Twenty minutes of knowledge curation here outperforms any amount of later prompt fiddling.

Re-crawl whenever your site changes meaningfully — new products, revised prices, policy updates. A stale knowledge base is how widgets end up confidently quoting last season's prices, which is worse than no widget.

Step 3: Styling, quick links and the home screen

In Customize Widget, pick a style that matches the job: Classic (home screen + chat + voice call tabs) for service businesses; Chat Only for a focused Q&A bubble; Voice Only for phone-first businesses like booking lines; Modern Dark or Minimal Glass for brand-forward sites. Set your brand colors, the greeting, and the header so the widget reads as yours, not as a third-party sticker.

Then build quick links — the buttons on the widget's home screen — from your top recurring questions. Each can carry an instant canned reply (zero latency, zero cost, perfectly consistent) or hand the question to the AI, or open a URL (your pricing page, booking form, catalogue PDF). Six well-chosen quick links typically absorb a third of all widget interactions before the AI is even invoked. Mine your phone logs and support inbox for what those six should be.

Step 4: The embed — platform by platform

Copy your embed snippet — one script tag carrying your API key and widget key — and paste it before the closing </body> tag. WordPress: Appearance → Theme File Editor → footer.php, or any header-footer plugin if you prefer not to touch theme files. Shopify: Online Store → Themes → Edit code → theme.liquid. Wix / Squarespace: Settings → Custom Code, applied to all pages. Custom sites: paste it in the base template once. The widget appears bottom-right immediately; no rebuild, no app install.

Two things worth checking on day one: that the widget loads on mobile (it should occupy the thumb-reachable corner without covering your checkout button), and that your Content-Security-Policy, if you have one, allows the widget script and its WebSocket connection for voice.

Step 5: Voice, handoff and the inbox — closing the loop

If you want visitors to talk to your AI, enable the voice widget in Customize → Voice: pick which voice agent answers the Call tab, set the opening line, and the widget gains a phone experience — visitors tap Call and speak to the same grounded AI, no phone number dialled. Voice transcripts land in the same inbox as chats.

Configure handoff honestly: the AI should raise a ticket — with sentiment, intent and the full transcript — whenever a visitor asks for a human, asks something outside the knowledge base, or shows frustration. Then actually staff the inbox: the hybrid model works because humans pick up the 5–10% that needs them quickly. A widget whose escalations go nowhere trains your visitors that the chat is a dead end.

The tuning ritual: what separates great widgets from abandoned ones

Week one: read every transcript. It takes twenty minutes a day and tells you precisely what the AI gets wrong — usually three to five recurring gaps. Patch the knowledge base for each (add the missing policy, fix the ambiguous product name, write the FAQ). Quality compounds fast: most deployments go from "decent" to "this thing is good" within two weeks of this loop.

Ongoing: a fifteen-minute weekly review of flagged conversations and the analytics panel (resolution rate, handoff rate, sentiment trend, product clicks). Watch for the silent killers: a price change that never got re-crawled, a new product line the widget does not know, seasonal questions (festival delivery cutoffs!) that need temporary quick links. The widget is a team member — a stunningly cheap one — and like any team member it performs to the level of its briefing.

Total cost to run all of this: pay-as-you-go at ₹2 per AI message, or unlimited messages on Pro at ₹2,400/month (~$29) — with the free tier's credits covering your entire evaluation. The honest summary: installation is trivial, knowledge is the product, and the weekly fifteen minutes is the habit that makes it pay.

About this article

Written by the Nutaan team — we build and operate the AI calling and chat platform described here, running production voice and chat workloads for businesses across retail, healthcare, real estate, education and hospitality. Updated 12 June 2026. Pricing figures reference Nutaan's published rates; costs on other platforms vary. Questions or corrections: avishek@nutaan.com.

Keep reading

Everything Nutaan Does: AI Calling, WhatsApp Automation, CRM and Commerce (2026)
9 Oct 2026 Product

Everything Nutaan Does: AI Calling, WhatsApp Automation, CRM and Commerce (2026)

Nutaan CRM: The Real Estate CRM with AI Calling, WhatsApp and a Mobile App
9 Oct 2026 CRM

Nutaan CRM: The Real Estate CRM with AI Calling, WhatsApp and a Mobile App

10 Best AI Tools for Real Estate Lead Conversion in 2026
3 Aug 2026 AI Workforce

10 Best AI Tools for Real Estate Lead Conversion in 2026

AI that answers every call, in your customer’s language.

Free credits to start · 30+ languages · live in minutes