@oneie/plugin-chat
v0.1.1
Published
ONE chat widget — served from one.ie, zero bundle cost, no source in your repo
Downloads
205
Readme
@oneie/plugin-chat
ONE chat widget — served from one.ie, zero bundle cost.
import { chat } from '@oneie/plugin-chat'
export default defineOne({
plugins: [chat({ agent: 'my-agent-id' })],
})Injects a <script> tag that loads the chat widget from one.ie at runtime. No chat source code ships to your repo. The widget connects to the agent you specify and handles the full conversation UI.
Options
chat({
agent: string, // agent ID or slug
ws?: string, // workspace slug (defaults to one.config.ts backend)
position?: 'right' | 'left',
})