Skip to content

Add floating help chat widget powered by Docs Q&A #391

Closed

Description

@vybe

Summary

Add a floating help chat widget to the Trinity UI that allows users to ask questions about Trinity and get instant answers, powered by the same Vertex AI Search backend used by the Trinity Docs Q&A system.

Context

We now have a working documentation Q&A endpoint (ask-trinity Cloud Function) that:

  • Answers questions from indexed Trinity documentation
  • Supports multi-turn conversations with session memory
  • Uses Gemini 2.0 Flash for concise, markdown-formatted responses
  • Has a friendly but professional tone

This should be accessible directly within Trinity for users who need help without leaving the app.

Acceptance Criteria

  • Floating chat button in bottom-right corner of Trinity UI (collapsible)
  • Chat panel opens on click with conversation history
  • Messages sent to existing ask-trinity Cloud Function endpoint
  • Session persistence across page navigations (localStorage session_id)
  • Markdown rendering in responses (headers, code blocks, lists)
  • Loading indicator while waiting for response
  • Mobile-responsive design
  • Accessible (keyboard navigation, ARIA labels)

Technical Notes

  • Endpoint: https://us-central1-mcp-server-project-455215.cloudfunctions.net/ask-trinity
  • Request: POST { question, session_id? } → Response: { answer, state, session_id }
  • Session persists ~30 min server-side
  • Consider reusing chat UI patterns from existing AgentChat component
  • Feature flow: docs/memory/feature-flows/trinity-docs-qa.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowpriority-p2type-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions