Skip to main content
Unlock the full potential of your agent with the ChatNode JavaScript Embed SDK. This powerful toolkit allows you to create a deeply integrated and dynamic user experience by giving you granular control over the chat widget directly within your application. With the ChatNode JavaScript Embed SDK, you can go beyond standard agent interactions and build a truly custom experience. The SDK empowers you to:
  • 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.
I