diff --git a/src/index.tsx b/src/index.tsx index 8270e63..14a72db 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -20,7 +20,18 @@ import { MessageBody } from "@crema/agent-ui" /* Public types */ /* ------------------------------------------------------------------ */ -export type AgentRef = { id: string; name: string } +export type AgentRef = { + id: string + name: string + /** Optional "try saying…" prompts shown to the user above the empty + * composer on first chat. Click sends the prompt verbatim. The dock + * doesn't curate or persist these — the host app decides what to + * suggest (e.g. derived from the agent's focus areas). + * + * Limit ~4 to keep the panel light; the dock won't truncate but + * more rows make the chat feel cluttered. */ + starter_suggestions?: string[] +} /** Structured page-awareness signal. Travels to the platform as its own * field — never concatenated into the user message — so page content @@ -314,12 +325,43 @@ export function AgentDock({ {/* Messages */}
+ {agentId + ? "Ask anything. I can see what page you're on." + : agents && agents.length === 0 + ? "No agents available yet." + : "Loading…"} +
+ {agentId && + currentAgent?.starter_suggestions && + currentAgent.starter_suggestions.length > 0 ? ( ++ Try saying +
++ Click any to send — or write your own. +
+