Website chat

Install the chat widget, choose its language, see how it looks and behaves for visitors, and keep it safe from abuse.

On this page

The website chat is a round button in the bottom-right corner of your site. It opens a small chat window where visitors talk to your agent, or to the flow you chose, without signing in. Their conversations land in your Inbox, like those from any other channel.

Install it

  1. Open the agent, go to its Channels tab and switch on Allow the public chat widget.
  2. Press Copy embed code.
  3. Paste the code into every page where the chat should appear, just before the closing </body> tag.
The website widget's embed snippet

The code looks like this:

html
<script
  src="https://www.zenhalab.com/www/nomongeta/widget.js"
  data-nomongeta-agent="<agent id>"
  data-nomongeta-lang="en"
  defer
></script>

Site builders call the place for it "custom code", "footer code" or "scripts" (WordPress, Wix, Shopify, Webflow and Squarespace all have one). Nothing else is needed: visitors don't sign in, and there is no other script to add.

To see it before you publish anything, press Preview the widget: it opens the chat on a page of its own.

A flow first, or just the agent

Out of the box, the agent answers the widget. To have a flow greet visitors (with a menu, a booking, a lead form), give the agent a website chat channel with that flow: Channels → Add channel → Website chat. An agent can have several website chats (one per site, say). Each one's card on Channels shows its own code, and that code stays the same when you change its agent or flow. Put it on your site walks through it, and Flows and agents explains who answers what.

Setting up a website chat: the agent and the flow

What visitors see

  • The agent's name at the top, and its greeting as the first message (set in Configure).
  • Choices as buttons. A tap sends that choice; visitors can also type.
  • "typing…" before a flow's message when the flow asks for it.
  • Images and files inline.
  • When a teammate takes over, "A teammate will reply here shortly.", and their replies appear in the same window while it's open.

The chat follows the visitor's light or dark mode, and its button and accents use Ñomongeta's colors.

Language

The widget speaks the language in data-nomongeta-lang (en, pt or es). Without that attribute it follows your page's <html lang>, then the visitor's browser; a language it doesn't speak falls back to English. This sets the widget's own words ("Type a message…", "Send"). Your flows say what you wrote, and your agent answers in the language its instructions ask for.

Keep it safe

The widget is public: anyone who opens your site can write to the agent. Three settings keep that in check: the first two on the agent's Configure tab.

SettingWhat it does
Messages per minutePast this, visitors read "Too many messages right now. Please try again shortly." until the minute is over.
Token budgetThe most AI tokens the agent may spend in total, across all its conversations. Once they're spent, it stops answering.
Pause (top of the agent's page)Stops the agent on every channel at once.

Your plan's monthly AI tokens apply on top; see plans and limits.

Turn it off

Switch Allow the public chat widget off. The code can stay on your site: the window then says "This assistant isn't available right now.". Conversations so far are kept.

For developers

The widget is one script and an <iframe>. Widget reference lists its attributes, how to embed the chat window directly in a page of your own, and what it can't do.

Still stuck?

Ask us. We read every message.

Privacy