Skip to content

Public Q&A Widget

The public Q&A widget on lumenflow.cloud answers visitor questions about LumenFlow and Sidekick from the public documentation. The widget is read-only and rate-limited; it never accesses workspaces, user data, or operator actions.

What you can do#

The public Q&A widget provides a chat interface for website visitors to ask questions about your product. It uses LumenFlow's knowledge corpus and hybrid retrieval to generate accurate, grounded answers without requiring authentication.

CapabilityDescriptionStatus
Streaming chatReal-time SSE streaming responsesShipped
Hybrid retrievalCombines corpus knowledge with semantic searchShipped
Rate limitingPer-client rate limitingShipped
Abuse controlsMessage length limits, conversation cap, payload sizeShipped
AnalyticsAggregate metrics (no transcript storage)Shipped

How it works#

The public chat endpoint streams AI responses grounded in your knowledge corpus. When a visitor asks a question:

  1. The message is validated for length, payload size, and abuse
  2. Rate limits are checked (per client)
  3. Relevant knowledge is retrieved using hybrid search (keyword + semantic)
  4. The AI generates a streaming response grounded in the retrieved context
  5. Aggregate analytics are emitted (topics, turn count, message length bucket)
Info

The public chat does not store conversation transcripts. Only aggregate analytics (topic distribution, turn counts, rate limit events) are logged.

Limits#

  • Conversation turns -- maximum 10 turns per conversation
  • Message length -- enforced server-side per message
  • Payload size -- request body size capped for abuse prevention
  • Rate limiting -- per client: a per-minute burst limit plus a per-visitor daily ceiling so a single source can't drive unbounded usage over a day

Knowledge corpus#

The widget draws answers from the public knowledge corpus built into LumenFlow. This includes product documentation, feature descriptions, and frequently asked questions.

Embedding the widget#

The public chat endpoint is available at:

POST /api/public/sidekick/chat

Send a JSON body with a messages array following the standard chat message format. The response is an SSE stream compatible with the Vercel AI SDK useChat hook.