- Execute Client-Side Actions: Run custom actions directly in the user’s browser. This is perfect for when you need more flexibility with your action’s code or want to send an API request on behalf of the user, from the client side.
- Listen for Key Events: Track and respond to important events within the agent’s lifecycle. You can listen for when a user or the assistant sends a message, or when a custom action is called and returns a result, allowing you to build more interactive and responsive applications.
- Programmatically Control the Chat Widget: Use simple JavaScript methods to open, close and reset chat widget from anywhere in your application. This allows for seamless integration with your user interface.
- Enrich User Data: Update the chat widget with the current user’s information from your application, providing a more personalized and context-aware conversation.