Developers

SDK Customization

Introduction

While the configuration of the build method offers several ways to customize the Chat SDK, it is also necessary to allow external custom features.

In order to offer a fully programmable Chat, Inbenta implemented several functionalities:

  • Actions have a direct impact in the Chat. As the name indicates, they perform different actions, such as "build an answer", "open the main window", etc.
  • Subscriptions subscribe callbacks to specific actions. Their purpose is to set the Chat behavior; subscriptions make custom code available for the Chat SDK when a particular action occurs, to call other actions or to modify the data that the action sends to the state.
  • Adapters are functions that are passed to the adapter's array in the build configuration. The adapter function receives one argument: the Chat instance, which contains all available actions, the middleware subscriptions and the API client.
  • Helpers provides tools for event binding and modifying the DOM elements of the chat SDK.
  • Custom HTML allows you to change the HMTL of several components to adapt their use and functionalities as required.

Click here to see a tutorial on how to build an adapter, along with a selection of fully functional examples that you can use and adapt to fit your specific needs.

Note

All examples shown are set in a Production environment.