embedWidget():
Tray
100vh - 100px).
Best for: Help widgets, customer support, contextual assistants that shouldn’t dominate the page.
Full-screen
Chatbar
Chatbar-Specific Options
The chatbar type accepts additional configuration through theoptions property:
| Option | Type | Default | Description |
|---|---|---|---|
placeholder | string | "Ask me anything" | Placeholder text in the input field |
keyboardShortcutEnabled | boolean | true | Press Space anywhere on the page to focus the input (only when no other input is focused) |
conversationStarters | string[] | [] | Suggested prompts displayed above the input when focused |
theme | ChatbarTheme | — | Visual overrides for the chatbar. See Customization |
Keyboard Shortcuts
WhenkeyboardShortcutEnabled is true (the default):
- Space — Focuses the chatbar input (only when no other text field is active)
- Escape — Blurs the chatbar input
Conversation Starters
When the input is focused and the chat window is closed, the starters appear as clickable chips labeled A, B, C, etc. Clicking one sends it as the first message and opens the chat window.Choosing a Type
| Criteria | Tray | Full-screen | Chatbar |
|---|---|---|---|
| Presence on page | Floating button | Floating button | Inline input bar |
| Space when open | Compact panel | Full viewport | Window above input |
| Best for | Help / support | Focused AI tasks | Search / main UX |
| Mobile behavior | Full-screen | Full-screen | Input stays; window goes full-screen |