Skip to main content

Web Chat on your website

The Web Chat Widget puts your Mihu AI agent on your own website. Visitors open a chat bubble, write in their own words, and the same agent that answers your calls and WhatsApp messages answers them — with the same knowledge, the same working hours and the same handover to your team. Web Chat is a full channel in Mihu, not a separate tool:
  • Conversations land in the same inbox as calls, WhatsApp and e-mail, under the Web Chat channel.
  • They follow your queues, so the right team sees them, and a team member can take over from the AI agent at any moment.
  • Every conversation belongs to a contact in Contacts. With Chat Identification your signed-in customers are recognised and get answers with their own details.

What visitors can do

A chat survives page changes and refreshes: the visitor keeps their thread while they browse your site.

Create a widget

1

Open Web Widgets

In Mihu, open Web Widgets and click Create. Enter your website address and pick the AI agent that will answer. Every widget is bound to one agent.
2

Answer the brief

Choose how proactive the widget should be, which Mihu modules it may use (appointments, tables, knowledge, contacts and more) and the goals it should pursue. Mihu reads your site and suggests goals that fit your business.
3

Design it

Pick a style and adjust it in the designer: launcher, position, colours, font, greeting, first-screen options, languages and texts. The preview shows the widget on top of your real website, on desktop and mobile.
4

Publish

Click Publish. Each publish creates a version you can roll back to. The website always shows the last published version, so you can keep editing a draft without touching the live widget.

Add it to your website

Copy the snippet from Embed snippet in your widget and paste it before the closing </body> tag of every page where the chat should appear:
That is the whole installation. Design changes you publish in Mihu reach your website without touching this snippet again.

Allowed websites

The widget only loads on the website you entered and on the domains you add under Allowed domains in the designer. Wildcards cover subdomains: *.example.com allows shop.example.com and example.com. On any other website the widget does not appear.

Content Security Policy

If your website sends a Content-Security-Policy header, allow your workspace host for scripts and frames:

Control the widget from your page

The snippet exposes a small mihu object: Calls made before the widget has loaded are delivered once it is ready when you add this line before them:
A typical use is a “Chat with us” button of your own:

Recognise your customers

By default every visitor is an anonymous Web visitor. When your website has its own sign-in, Chat Identification links the chat to the customer’s record in Contacts by e-mail or phone number, signed by your server. The AI agent then answers with the customer’s own name, appointments and history, and your team sees one continuous record. Without it, the widget works fully; visitors simply stay anonymous, and the AI agent can still collect a name or an e-mail as part of the conversation.

How the AI agent answers

Web Chat uses the agent’s existing setup. Nothing has to be configured twice:
  • Knowledge, guidelines and intents of the agent apply to web chat exactly as they do to WhatsApp.
  • Working hours, human-first mode and daily limits from the agent’s text settings are respected.
  • Appointments can be offered and booked in the chat when the Appointments module is on.
  • Handover: when the AI agent hands over, or a team member takes over in the inbox, the visitor keeps writing in the same thread and sees the team member’s name.
  • Several messages sent in a row are answered together, in one reply.

Pause, update, roll back

Privacy

  • Add your privacy policy link in the designer; it is shown under the message box.
  • The chat does not rely on cookies. The widget keeps the visitor’s chat in the browser’s local storage for up to 7 days so the thread survives page changes.
  • The online team row shows first names and photos of available team members only when you add that block to the widget.

Troubleshooting

Next steps

Chat Identification

Match signed-in customers to their contact by e-mail or phone number

Contact Management

The contacts your web chat conversations belong to