# AssistantModal URL: /docs/ui/assistant-modal Floating chat bubble for support widgets and help desks. *** title: AssistantModal description: Floating chat bubble for support widgets and help desks. --------------------------------------------------------------------- import { ParametersTable } from "@/components/docs/tables/ParametersTable"; import { InstallCommand } from "@/components/docs/fumadocs/install/install-command"; import { AssistantModalSample } from "@/components/docs/samples/assistant-modal-sample"; A floating chat modal built on Radix UI Popover. Ideal for support widgets, help desks, and embedded assistants. ## Getting Started ### Add `assistant-modal` This adds `/components/assistant-ui/assistant-modal.tsx` to your project, which you can adjust as needed. ### Use in your application ```tsx title="/app/page.tsx" {1,6} import { AssistantModal } from "@/components/assistant-ui/assistant-modal"; export default function Home() { return (
); } ```
## Anatomy The AssistantModal component is built with the following primitives: ```tsx import { AssistantModalPrimitive } from "@assistant-ui/react"; {/* Thread component goes here */} ``` ## API Reference ### Root Contains all parts of the modal. Based on Radix UI Popover. void", description: "Callback when the open state changes.", }, { name: "unstable_openOnRunStart", type: "boolean", description: "Automatically open the modal when the assistant starts running.", }, ]} /> ### Trigger A button that toggles the modal open/closed state. This primitive renders a `