ObjectStackObjectStack

Ai Chat Nav Params — UI Protocol reference

Ai Chat Nav Params schemas of the ObjectStack UI Protocol: AiChatNavParams — each property with its type, default and a TypeScript example.

Source: packages/spec/src/ui/ai-chat-nav-params.zod.ts

TypeScript Usage

import { AiChatNavParamsSchema } from '@objectstack/spec/ui';
import type { AiChatNavParams } from '@objectstack/spec/ui';

// Validate data
const result = AiChatNavParamsSchema.parse(data);

AiChatNavParams

Params of an ai:chat navigation entry: the copy the AI inquiry home page draws before the first question.

Properties

PropertyTypeRequiredDescription
titlestringoptionalWelcome heading drawn above the question box (at most 60 characters). Absent: the page's default heading.
subtitlestringoptionalOne or two lines under the heading saying what the reader can ask about (at most 200 characters).
placeholderstringoptionalPlaceholder text inside the empty question box (at most 100 characters).
suggestionsstring[]optionalSuggested questions offered as one-click starters, 1 to 4 non-empty entries of at most 100 characters each, shown in this order.

On this page