AIAgentSelector
Portal only
Works only inside an ONLYOFFICE Apps portal: it needs the portal's API client, stores and translations, and is not part of the public API.
AIAgentSelector is a selector panel for choosing an AI agent room.
Features
- Live API mode — Fetches AI agent rooms from the ONLYOFFICE Apps API with infinite scroll
- Init data mode — Accepts pre-loaded items for SSR or offline scenarios via
withInit - Security filtering — Disable items that lack the
UseChatpermission viadisableBySecurity - Exclusion list — Skip already-selected agents via
excludeItems - Padding control — Toggle inner padding with
withPadding - Callbacks —
onSubmit,onClose, andsetIsDataReadyhooks
Default
A basic AIAgentSelector with default settings.

import AIAgentSelector from "@onlyoffice/apps-ui-kit/selectors/AIAgent";
<AIAgentSelector
withPadding
onSubmit={(items) => console.log(items)}
onClose={() => setOpen(false)}
/>