Chatbase home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
Javascript SDK
Control Widget
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
Help Page
Help Page Proxy
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
On this page
Overview
Javascript SDK
Control Widget
Copy page
Copy page
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 Actions
Custom Initial Messages
Assistant
Responses are generated using AI and may contain mistakes.