X Enterprises
nuxt-x-app-admin

Ai Chat

AI chat interface with markdown rendering, suggestion chips, and streaming-friendly message handling.

Ai Chat

AI chat interface with markdown rendering, suggestion chips, and streaming-friendly message handling.

Components

<XAdminAIChat />

Props, events, and behaviour reflect the actual <script setup> of XAdmin/AI/Chat.vue in @xenterprises/nuxt-x-app-admin.

<XAdminAIChat />

Props

PropTypeDefaultDescription
endpointString'admin/ai/chat'API endpoint for chat messages (POST { message, sessionId, systemPrompt }).
agentNameString'AI Assistant'Display name for the assistant.
agentDescriptionString'Powered by AI'Subtitle shown beneath the assistant name.
userNameString'You'Display name for the human user.
userImageStringnullOptional avatar URL for the user.
systemPromptStringnullOverride the default system prompt for the conversation.
suggestionsArray'Show me today's metrics','List recent support tickets','Summarize user signups this week','What are the top selling products?'Suggestion chip labels rendered above the input.

Emits

EventPayloadDescription
settingsvariesFired when 'Settings' is clicked in the chat header.
attachvariesFired when 'Attach' is clicked in the chat input.
actionvariesFired when a chat-side action button is invoked.

AI Context

component: XAdminAIChat
package: "@xenterprises/nuxt-x-app-admin"
category: AI
source: app/components/XAdmin/AI/Chat.vue
use-when: AI chat interface with markdown rendering, suggestion chips, and streaming-friendly message handling.
Copyright © 2026