@happyml/browser-side-actions
v0.4.8
Published
A library for creating and managing happyml browser side actions
Readme
HappyML Browser Side Actions
This package enables the execution of browser side actions for a HappyML chatbot.
Installation
npm install @happyml/browser-side-actionsUsage
import { ChatWidget } from "@happyml/browser-side-actions";Example
import React from "react";
import { ChatWidget } from "@happyml/browser-side-actions";
function App() {
return <ChatWidget botId="your-bot-id" chatId="your-chat-id" />;
}ChatWidget Properties
| Property | Type | Required | Description |
| -------- | -------- | -------- | --------------------------------------------------------------------------------- |
| botId | string | Yes | Unique identifier for the HappyML chatbot. |
| chatId | string | No | Identifier for an existing chat session. Set to null or omit for a new session. |
