Open Chat Studio Widget¶
The Open Chat Studio Widget is a customizable chat component that allows you to easily embed conversational AI bots into any website. Create engaging user experiences with minimal setup and extensive customization options.
Features¶
- Easy Integration: Add to any website with just a few lines of code
- Flexible Embedding: Choose between widget component or iframe methods
- Custom Styling: Match your brand with CSS variables and custom themes
- Welcome Messages: Greet users with personalized messages
- Starter Questions: Guide users with pre-defined clickable questions
- File Uploads: Allow users to attach files to their messages
- Responsive Design: Works seamlessly across desktop and mobile devices
Getting Started¶
Before embedding, you must create a bot in Open Chat Studio.
-
Add the widget script to your site's
<head>section: -
Getting the Embed Code
- Log in to Open Chat Studio.
- Navigate to the Chatbot you wish to embed.
- Click on the (plus) icon and select Embedded Widget from the dropdown.
- Complete the form (provide a name and any configuration options) and click Create.
A new dialog will open with all the necessary details to embed your bot. You can either copy the chatbot ID and embed token for manual setup or use the Copy Widget Embed Code to copy a fully configured HTML snippet.
-
Insert the widget where you want the chat button.
The embed code snippet should look something like this:
Embed Key Required
The embed-key parameter is required for all embedded widget channels. If you are upgrading from a previous version, you must create a new Embedded Widget channel (following the steps above) to obtain your embed key.
Test the Chatbot¶
- Open your website in a web browser.
- Ensure the chatbot appears and functions as expected.
- Try sending a message to confirm it responds correctly.
Troubleshooting¶
If the chatbot does not appear:
- Ensure you copied and pasted the embed code correctly.
- Clear your browser cache and refresh the page.
- Check that your website allows embedding external scripts.