Search by

hazelchat / kirby-hazelchat

jpdpeters

Adds the Hazelchat AI chat agent to every page of a Kirby site from one pasted installation code. It answers visitors from the pages you approve and passes on their enquiries. Needs a Hazelchat account; the Free plan covers one website.

Package info

github.com/hazelchat-co/kirby-hazelchat

Homepage

Documentation

Type:kirby-plugin

pkg:composer/hazelchat/kirby-hazelchat

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-20 22:29 UTC

This package is auto-updated.

Last update: 2026-10-21 06:11:17 UTC


README

Adds your Hazelchat AI chat agent to every page of a Kirby site from one pasted installation code. The agent answers visitors from the pages you approved, shows its sources and passes on their enquiries.

  • Kirby 4 and 5, PHP 8.1 or later (Kirby 5 needs PHP 8.2).
  • Needs a Hazelchat account. The Free plan covers one website and stays free.
  • Hosted service: visitors' browsers load the chat from app.hazelchat.co, and Hazelchat processes their questions and any enquiry details they send (privacy notice, terms). The plugin itself sends nothing.

Install

  1. In Hazelchat, add your website and copy its installation code (create a free account).

  2. Install the plugin: composer require hazelchat/kirby-hazelchat, or download the latest release and put its folder into site/plugins/hazelchat.

  3. In the Panel, open Hazelchat in the menu, paste the installation code and save. Or set it in site/config/config.php:

    return [
        'hazelchat.kirby.code' => '<your installation code or its key>',
    ];
  4. Back in Hazelchat, click Publish and switch on. Hazelchat finds the chat on your live page and verifies the website.

What it does

  • Every HTML page gets one tag just before </body>: <script src="https://app.hazelchat.co/widget.js" id="hazelchat-kirby" defer data-agent="<key>"></script>
  • The installation code may be the pasted code or just its 64-character key. Only a valid key is saved or printed; anything else, such as an API key, is refused.
  • Wait for my consent manager (off; 'hazelchat.kirby.consent' => true in config.php) adds data-require-consent="true": the chat starts only once your consent manager allows it. See Visitor consent.
  • The Panel never loads the chat, and JSON, RSS and other content representations stay as they are. Pages from Kirby's page cache carry the tag; saving in the dialog clears that cache.
  • The Hazelchat dialog is for administrators only. It saves the key and the switch in your site content (hazelchat_key, hazelchat_consent). A value in config.php takes precedence.
  • Panel texts in English and German.
  • No requests from Kirby to Hazelchat, no database, no tracking.

Remove

Clear the installation code in the Hazelchat dialog (or remove the option from config.php), or uninstall the plugin (composer remove hazelchat/kirby-hazelchat, or delete site/plugins/hazelchat). Your Hazelchat account and plan are not affected.

Deutsch

Hazelchat fügt Ihren KI-Chat-Agenten mit einem einzigen Installationscode in jede Seite Ihrer Kirby-Site ein (Kirby 4 und 5). Installieren Sie das Plugin (composer require hazelchat/kirby-hazelchat oder den Ordner nach site/plugins/hazelchat kopieren), öffnen Sie im Panel Hazelchat, fügen Sie den Code aus Hazelchat ein und speichern Sie. Die Browser Ihrer Besucher laden den Chat von app.hazelchat.co; deren Fragen und Anfragedaten verarbeitet Hazelchat. Sie brauchen ein Hazelchat-Konto; der Free-Tarif gilt für eine Website und bleibt kostenlos.

Licence

MIT. Kirby is a trademark of its makers; Hazelchat is not affiliated with or endorsed by them. A live Kirby site needs its own Kirby licence.