A library for creating and managing happyml browser side actions
npm install @happyml/browser-side-actionsThis package enables the execution of browser side actions for a HappyML chatbot.
``bash`
npm install @happyml/browser-side-actions
`javascript`
import { ChatWidget } from "@happyml/browser-side-actions";
`javascript
import React from "react";
import { ChatWidget } from "@happyml/browser-side-actions";
function App() {
return
}
`
| 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. |