SDK Overview
MonoChat’s Custom Function SDK allows developers to extend the platform with custom logic written in JavaScript. Depending on the function type, the sdk object provided as a parameter offers different capabilities optimized for either client-side or server-side execution.
There are two main SDK contexts:
- Client SDK: Available for functions that run in the browser, primarily
Custom View. - Server SDK: Used for all other function types running on the server.
Further details and API references for both SDKs will be provided in their respective sections.
Custom Function Types
MonoChat supports multiple types of custom functions, each serving a specific purpose within the platform:
Custom View (Client)
Client-side functions that allow developers to create custom UI components or entire views within the MonoChat interface. These functions leverage the client SDK and can use built-in UI components provided by MonoChat.
Custom Flow Node (Server)
These are functions that can be added as nodes in agent or workflow flows. They are executed server-side and can handle business logic, integrations, or data transformations.