0.4.2 • Published 13 days ago

@zauberware/hermine-chat v0.4.2

Weekly downloads
-
License
ISC
Repository
github
Last release
13 days ago

Hermine-Chat

Hermine-Chat is a react package to integrate a hermine.ai-based chat component on any website. Come and create and account on hermine.ai to get started. Build custom GPTs and profit from the knowhow of talented data engineers, software-developers and product owners.

Integration

It doesn't matter if it's hosted via a bundled javascript environment or plain javascript.

Integration via npm

To install the package run:

npm install --save @zauberware/hermine-chat

Setup the Chat component by doing this:

import HermineChat from '@zauberware/hermine-chat'
HermineChat({
    accountId: '<your-account-id>',
    agentSlug: '<your-agent-slug>',
    // your settings going in here
})

Integration via CDN

Add import script tag.

<script type="module" src="https://cdn.zauberware.com/hermine-chat/esm/index.js" crossorigin="anonymous"></script>

Setup the Chat component by doing this:

window.HermineChat({
    accountId: '<your-account-id>',
    agentSlug: '<your-agent-slug>',
    // your settings going in here
})

If you put this in your html template file, do not forget to put it inside <script type="module">-tags.

Configuration Options

OptionRequiredDescriptionTypeExample
accountIdyesYour accountId generated by hermine.aiuuid11111111-2222-3333-4444-555555555555
agentSlugyesYour agentSlug generated by hermine.aislughermine-gpt
location-The location of the chat button.'top' \| 'center' \| 'bottom'hermine-gpt
chatTitle-The title of the chat window.stringHermine-Chat
spacingBottom-Space to bottom of screen (in addition with location 'bottom').css size10px \| 10% \| 10vh
spacingTop-Space to top of screen (in addition with location 'top').css size10px \| 10% \| 10vh
spacingRight-Space to right of screen.css size10px \| 10% \| 10vh
floatingButtonBorderColor-Border color of the floating button.css colorrgb(15, 15, 15) \| 'red' \| #e20
buttonBackgroundColor-Background color of the send button.css colorrgb(15, 15, 15) \| 'red' \| #e20
buttonColor-Text color of send button.css colorrgb(15, 15, 15) \| 'red' \| #e20
messageColor-Text color of ai message bubbles.css colorrgb(15, 15, 15) \| 'red' \| #e20
messageBackgroundColor-Background color of ai message bubbles.css colorrgb(15, 15, 15) \| 'red' \| #e20

FAQ

How to change the image in the floating button?

The image from the floating button is loaded from the hermine.ai application. The property used for the image is the logo.

How to change the avatar in the ai chat messages?

The image from the floating button is loaded from the hermine.ai application. The property used for the image is the ai_icon.