- Custom buttons: create your own buttons that instantly start a specific conversation (e.g., “Get a Quote”). Programmatically create AI buttons relevant to each page.
- Text links and headers: turn any text into an interactive trigger. Perfect for clarifying complex terms or pricing details right where they appear.
- Search bars: connect your search input to the AI, so users get answered immediately instead of seeing a “no results” page.
Accessing the API
Depending on which product you are using, the API is available through a different global object on your page. Both objects support the exact same methods.- AI Nav: use
window.expertiseAi - Widget: use
window.chatsimpleWidget
The examples below use
window.expertiseAi; replace it with
window.chatsimpleWidget if you are using the classic widget.Examples
1. Talk to AI button
Turn your hero button into a conversation starter. Instead of sending visitors to a form, let them talk directly to your AI Agent.2. Help links in your content
Add links within your content that open the AI Agent. When visitors hit a complex topic, they can instantly ask for clarification without losing their place.API reference
The available methods to control the agent programmatically.sendMessage(message)
Opens the chat window and sends the specified message as the user. This is the primary way to start a conversation from a specific context. Parameters:message(string): the text to send to the AI.