AI Conversation

Unified V3 chat handler

Handles PLAN phase (create/modify) and EXECUTE/REJECT phase.

PLAN phase (when action is not present):

  • If stackId provided → MODIFY existing stack
  • If no stackId → CREATE new stack
  • LLM generates plan, stores in context.v3Plan, waits for approval

EXECUTE/REJECT phase (when action is present):

  • If approve → executes via ActionExecutor
  • If reject → clears plan and resets phase

Response is Server-Sent Events (SSE) stream.

post/api/v3/ai/conversation/{conversationId}/chat

Request

  • Base URL
    https://stackby.com
  • Auth
    none declared

Path parameters

conversationIdstring required

Unique identifier for the conversation

Request body

messagestring
stackIdstring
isCreateFlowboolean
web_searchboolean
action'approve' | 'reject'

Response

Server-Sent Events stream with conversation updates

Changes

No recorded changes to this operation across all 1 revision of this API.