⌘ K

Search

Search portal content

AI customer support in one tabAI customer support in one tab
⌘ K

Search

Search portal content

AI customer support in one tabAI customer support in one tab
  • Set up your help center
  • Publish articles
  • Organize collections
  • Set up redirects
  • Import articles
  • Use a custom domain
  • Add AI chat to your site
  • Set up customer accounts
  • Help center analytics
  1. Home
  2. Help center & AI chat

Add AI chat to your site

Paste one script tag on your website to add a chat button. Visitors search your articles and ask the AI, and it hands off to your team by email.

Add AI chat to your site

Paste one script tag on your website to add a chat button. Visitors search your articles and ask the AI, and it hands off to your team by email.

The AI chat puts a small chat button on your website. Visitors can search your help center, browse your collections, and ask a question in their own words. The AI answers from your published articles. If it can't help, it hands the conversation to your team as a ticket.

In the app this page is called Chat widget.

Add the chat to your site

  1. Go to AI & Knowledge > Help Center > Chat widget.
  2. Under How to install, select the copy button (Copy the chat widget snippet).
  3. Paste the snippet before the closing </body> tag of every page where the chat should appear. You can also add it through your tag manager.
  4. Deploy your site.
  5. Open your site and look for the chat button in the bottom corner.

The snippet looks like this:

<script async src="https://{your-public-id}.kb.center/widget.js"></script>
The Chat widget page with the install snippet and copy button
Copy the snippet and paste it into your site.

The script loads async, so it doesn't slow your page down. The chat runs in its own frame, so your site's CSS doesn't change how it looks.

The snippet always uses your kb.center address, even if you connect your own domain. Leave it as it is. {your-public-id} is your organization's Public ID.

What visitors see

  • A round button in the bottom corner opens the chat. The button uses your Brand color.
  • The panel opens on a home view with Ask AI (a card for the AI assistant), a Search articles... field, and your collections.
  • Selecting a collection or article opens it inside the chat panel.
  • The panel's labels follow the visitor's browser language: English, Spanish, Portuguese (Brazil), Dutch, French, German, or Italian. The AI replies in the language the visitor writes in.
  • On a phone, the panel fills the screen.

To change the color or the name the chat shows, go to AI & Knowledge > Help Center > Settings. See Set up your help center.

The help center site shows the same chat button on its own pages. You don't need to add anything there.

What the chat answers from

For each question, the AI looks up the most relevant published articles and answers from them.

It uses It doesn't use
Your published articles Drafts and archived articles
Internal notes and your tickets
Billing, orders, or customer account data

If the answer isn't in a published article, the chat can't give it. To improve its answers, publish or fix the article. See Publish articles.

The chat also reads the title and address of the page the visitor is on, the browser language, and the time zone. It uses them to understand the question. Messages are limited to 1,000 characters.

When the chat can't answer

The AI hands the conversation to a person when:

  • The visitor asks for a human, asks to open a ticket, or asks to contact support.
  • No article matches the question.
  • The visitor says the steps it gave didn't work.
  • The visitor needs something an article doesn't cover, or an action on their account.

Before it creates the ticket, the AI asks for the visitor's name and email, so your team can reply. Then it creates a ticket in your default inbox with the conversation as the first message. The visitor gets a confirmation in the chat.

Your team replies by email, not in the chat. The chat doesn't show replies from people on your team.

If your inbox shows ticket numbers to customers, the confirmation includes the number. See Choose ticket numbering.

Find chat tickets

Chat tickets arrive as new tickets in your default inbox, with the subject the AI wrote from the conversation. The first message begins "Support request escalated from help center chat."

Developer options

You can set options before the snippet loads. Put this above the script tag:

1
2
3<script>
  window.InitdeskWidgetSettings = { position: "left" };
</script>
  • position: "left" or "right" (default "right").
  • launcherIcon: "solid" (default) or "stroke", the style of the chat button's icon.

After the script loads, InitdeskWidget("open"), InitdeskWidget("close"), and InitdeskWidget("toggle") open and close the chat from your own button.

See how it's used

Chat messages and sessions are counted on the Analytics page. See Help center analytics.

If something's not working

If the chat button doesn't appear

Check that the snippet is on the page and sits before </body>. Check that your help center is Published under AI & Knowledge > Help Center > Settings.

If the chat says "I could not generate an answer right now."

The AI didn't respond. The visitor can ask again in a moment. If it keeps happening, contact initdesk from Help.

If the chat gives a wrong answer or says it can't find something

The answer is probably missing from, or unclear in, a published article. Fix or add the article. See Improve AI answers.

Related

  • Set up your help center
  • Publish articles
  • How AI works
  • Help center analytics
Use a custom domain

Serve your help center from an address like help.yourcompany.com. Add the DNS records initdesk gives you, and initdesk handles the SSL certificate.

Set up customer accounts

Turn on Customer accounts so customers sign in to your help center with an email code, then view their tickets, reply, and open new ones.

Powered by initdesk
On this page
  • Add AI chat to your site
  • Add the chat to your site
  • What visitors see
  • What the chat answers from
  • When the chat can't answer
  • Find chat tickets
  • Developer options
  • See how it's used
  • If something's not working
  • If the chat button doesn't appear
  • If the chat says "I could not generate an answer right now."
  • If the chat gives a wrong answer or says it can't find something
  • Related