Overview
The long-awaited chat widget native to the platform. We wanted to go simple with a lot of functionality and a clean interface. The widget is able to book, call tools, and converse using all of your assistantβs configuration (find & replace, tools, etc.). This is also the first instance of a decoupled framework from us meaning this widget and the code behind it is completely separate from our main server so it will run even if we go down for whatever reason. This widget also β as long as your OAuth is up-to-date and valid β will save all messages as a guest contact and show in your GoHighLevel conversation logs.Installation Guide
Steps
- Copy the code and put it in a sheet or element where you can edit it
- Fill in your assistant ID and your GoHighLevel location ID for your assistant and OAuth to populate
- Replace the highlighted areas with your number and leadconnector inbound webhook URL
- Configure the inputs and settings as you please
- Copy the code and paste it in a JavaScript/HTML element on the page OR in the page header
- Youβre ready to go!
Widget Code
Basic Chat Widget Script
Make sure to fill in your Assistant ID for the field that says"data-assistant-id"
and fill in your location ID for the field that says "data-account-id"
. Check all highlighted areas in code. This will allow for OAuth access and your assistant to populate correctly.
Advanced Call Interface Widget
For a more comprehensive implementation with call functionality:Configuration Options
Required Parameters
data-assistant-id
- Description: Your assistantβs ID
- Required: Yes
- Example:
"172β¦00"
data-account-id
- Description: Your GoHighLevel Location ID where the assistant is from
- Required: Yes
- Example:
"jβ¦O"
Appearance Settings
data-color
- Description: The hex code of your choice that is responsible for the color of the widget
- Default:
"#44008a"
- Example:
"#667eea"
data-position
- Description: The position on the screen
- Choices: (all lowercase)
bottom-right
bottom-left
top-right
top-left
- Default:
"bottom-right"
data-theme
- Description: Dark or light theme
- Choices: (all lowercase)
light
dark
- Default:
"light"
data-button-icon
- Description: The icon of the idle widget button to open the actual conversation window
- Choices: (all lowercase)
chat
(default): Speech bubble iconmessage
: Message box iconquestion
: Question mark iconheadset
: Support headset icon
- Default:
"chat"
Content Settings
data-show-prompt
- Description: true or false to show the message above the widget button on idle
- Choices: (all lowercase)
true
false
- Default:
"true"
data-prompt-message
- Description: The message in the prompt popup (if visible)
- Example:
"Ask me about voice AI π"
data-assistant-name
- Description: The name displayed on the widget for the assistant
- Example:
"AI Assistant | buildassistants.app"
data-startup-message
- Description: Initial message shown when widget loads
- Example:
"How can I help you today?"
data-greeting-message
- Description: The first message in the chat widget from the assistant (the pre-determined message that shows when the user opens the widget)
- Example:
"π Hey there! My name is {assistant_name} and I'm here to help you with your automation needs."
data-prompts
- Description: Allows you to add prompts to the widget to get the user to click on pre-determined questions (that could be fine-tuned in your knowledge base) to start the conversation
- Format: JSON array of objects with text properties
- Example:
Key Widget Features
- β Decoupled architecture - runs independently of main servers
- β OAuth integration with GoHighLevel for seamless contact management
- β Guest contact creation with automatic conversation logging
- β Tool integration supporting all assistant configurations
- β Customizable appearance with themes, colors, and positioning
- β Interactive prompts for guided user engagement
- β Mobile responsive design for all device types
- β Real-time chat functionality with instant responses
Implementation Best Practices
Widget Placement:- Place script in page header for consistent loading
- Ensure OAuth credentials are current and valid
- Test widget functionality before deploying to production
- Use brand colors that match your website design
- Write clear, engaging prompt messages
- Configure assistant name to reflect your brand
- Set up relevant quick-start prompts for common questions
- Widget loads independently for reliability
- Decoupled architecture ensures uptime
- Guest contacts automatically sync with GoHighLevel
Troubleshooting
Widget not appearing:- Verify assistant ID and account ID are correct
- Check OAuth connection status
- Ensure script is properly embedded in page
- Confirm OAuth credentials are up-to-date
- Verify GoHighLevel location ID is accurate
- Check contact permissions and settings
- Validate hex color codes
- Ensure position values are lowercase
- Check theme compatibility with website