Skip to content

Client Chat Interface & AI Integration #3

@tkowalczyk

Description

@tkowalczyk

Parent PRD

#1

What to build

Client-facing chat interface accessible via the project's unique link. No login required — the slug is the access method.

Frontend: Chat UI at the project's unique URL. Message input, scrollable message history, loading states during AI response. On page load, fetch and display full conversation history from the database.

Backend: Endpoint to send a client message and receive an AI response. Calls Claude API with system prompts that initiate the discovery interview (first phase only — phase transitions handled in a separate issue). Persists both user and assistant messages to the Message table.

Resume: When the client returns to the same link, the full conversation loads and the AI continues from where it left off by receiving the message history in the Claude API call.

Acceptance criteria

  • Client opens project link and sees a chat interface with no login
  • Client sends a message and receives an AI response
  • AI response follows the discovery interview structure
  • All messages (user + assistant) persist to the database
  • Closing and reopening the link loads full conversation history
  • AI resumes the interview from where it left off
  • Chat handles loading/streaming states gracefully

Blocked by

User stories addressed

  • User story 1
  • User story 2
  • User story 3
  • User story 18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions