01. Initialization
Before deploying to a client site, you must generate a cryptographic Client ID. This binds the widget instance to your specific RAG context.
Required Credentials
demo-client-abc-12302. Universal Module Script
The most direct deployment method. Inject our ES module directly into your HTML document. It loads asynchronously, ensuring zero impact on your Core Web Vitals. Drop this just before the closing </body> tag.
<scripttype="module"src="https://ai-widget-yt.vercel.app/index.js?clientId=demo-client-abc-123&theme=light"async></script>
03. WordPress Integration
For legacy CMS client sites. We provide a zero-bloat, vanilla JS injection plugin that handles the script placement and parameter passing automatically.
Install Package
Download the validated .zip from your deployment dashboard.
Inject ID
Navigate to Settings > Yeti and paste your Client ID.
04. Query Parameters
Configuration is handled strictly through URL query parameters appended to the script source. No complex global window objects required.
| Parameter | Type | Description |
|---|---|---|
| clientId | string | Required. Cryptographic identifier for the project instance. |
| theme | enum | Optional. Set to 'light' or 'dark' to force UI matching. Defaults to system preference. |