Chatbase home pagelight logodark logo
  • Support
  • Dashboard
  • Dashboard
User Guides
Developer Guides
Integrations
FAQs
Javascript SDK
  • Identity Verification
  • Chatbot Event Listeners
  • Client-Side Custom Actions
  • Control Widget
  • Custom Initial Messages
  • Client-Side Custom Forms
  • Floating Initial Messages
API
  • Contacts
  • Create a chatbot
  • Get chatbots
  • Update a chatbot
  • Delete a chatbot
  • Upload chatbot icon
  • Delete chatbot icon
  • Upload chatbot profile picture
  • Delete chatbot profile picture
  • Update chatbot settings
  • Message a chatbot
  • Streaming messages
  • Get conversations
  • Get leads
  • Webhooks
Javascript SDK

Control Widget

​
Overview

You can dynamically open/close the widget using the open and close methods.

Copy
Ask AI
window.chatbase.open(); // opens the widget
window.chatbase.close(); // closes the widget
Client-Side Custom ActionsCustom Initial Messages
xlinkedinyoutube
Powered by Mintlify
On this page
  • Overview
Assistant
Responses are generated using AI and may contain mistakes.