--- name: livechat-widget description: Add the Hibira Live Chat widget (chat.hibira.io) to a website or web app, in any framework, so visitors can chat with the business and its AI assistant. Use when the user wants a live chat, support chat or chat bubble on their site with Hibira Live Chat, an Intercom, Crisp or tawk.to alternative, or wants to open the chat from their own button. --- # Hibira Live Chat widget The widget is one plain script with no dependencies. It draws a chat button and panel in a shadow root (it cannot clash with the site's CSS), speaks the visitor's language (en, ja, ko, zh-TW, zh-CN, th, vi) and talks to `chat.hibira.io`. ```html ``` ## Steps 1. **Find the workspace ID.** It starts with `ws_`. It is on the Live Chat portal's **Widget** settings page (`https://chat.hibira.io/portal/widget`), in the snippet shown there. If the `hibira-live-chat` MCP server is connected, `get_sso_setup` returns it as `workspace.id`. The ID is public (it ships in the page), so it may go in source or a public env variable such as `NEXT_PUBLIC_HIBIRA_CHAT_WORKSPACE`. There is no secret to handle. 2. **Allow the site.** In the same Widget settings, under "Sites the widget may run on", the user adds each origin the widget runs on, one per line (`https://shop.example.com`, and `http://localhost:3000` for development). The widget refuses any other site. You cannot do this for them; tell them exactly which origins to add. 3. **Add the script once, on every page that should show the chat**, just before `` or in the shared layout. Follow the project's way of adding third-party scripts: - Plain HTML, PHP, Rails, Django, Laravel Blade: the tag in the base layout. - Next.js: `