### Minimal Widget Setup Source: https://tluma.ai/widget-api A basic implementation requiring only the mandatory 'source' parameter to connect the widget to a project repository. ```html ``` -------------------------------- ### Configure and Initialize Tluma Widget Source: https://tluma.ai/widget-api The standard method for installing the Tluma widget involves defining a global 'tlumaConfig' object before loading the widget script. This configuration controls the source project, visual styling, and behavioral settings. ```html ``` -------------------------------- ### Configure Prefill Starter Prompt (HTML) Source: https://tluma.ai/widget-api This snippet demonstrates how to prefill the starter prompt in the Tluma AI widget without sending it immediately. It requires defining `window.tlumaConfig` with the `source` and `prefillStarterPrompt` properties before loading the widget script. ```html ``` -------------------------------- ### Configure Auto-Send Starter Prompt (HTML) Source: https://tluma.ai/widget-api This snippet shows how to configure the Tluma AI widget to automatically send a starter prompt on the first fresh page load. It involves setting `window.tlumaConfig` with `source` and `autoSendStarterPrompt` before the widget script is loaded. ```html ``` -------------------------------- ### Customized Theme and Brand Styling Source: https://tluma.ai/widget-api Demonstrates how to override default visual settings by specifying a light theme, a custom brand color, and specific launcher positioning. ```html ``` -------------------------------- ### Control Tluma AI Widget with JavaScript API Source: https://tluma.ai/widget-api This JavaScript code demonstrates various methods available through the `window.TlumaAskAi` object to control the Tluma AI widget after it has loaded. These methods allow programmatic interaction such as opening, closing, toggling, prefilling prompts, sending prompts, and destroying the widget instance. ```javascript window.TlumaAskAi.open(); window.TlumaAskAi.close(); window.TlumaAskAi.toggle(); window.TlumaAskAi.prefillPrompt("How do I configure SSO?"); window.TlumaAskAi.sendPrompt("Show me the fastest production deploy path"); window.TlumaAskAi.destroy(); ``` -------------------------------- ### Hidden Launcher Configuration Source: https://tluma.ai/widget-api Sets the button to 'hidden' to prevent the default launcher from appearing, useful when the widget should only be triggered programmatically. ```html ``` -------------------------------- ### Mount Widget Inline in Container Source: https://tluma.ai/widget-api Mounts the widget into a specific DOM element by providing a 'containerId', causing it to behave as inline content rather than a floating widget. ```html
``` -------------------------------- ### Disable Background Preload Source: https://tluma.ai/widget-api Disables the automatic background iframe warming process by setting 'preloadAfterMs' to false. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.