Brain query API endpoint (/brain/query) #22

Closed
opened 2026-01-28 19:05:41 +00:00 by jason.woltje · 0 comments
Owner

Implement the brain query API for MoltBot integration.

Endpoint:

  • POST /api/brain/query

Request:

  • query: string (natural language)
  • context: optional (current view, recent items)
  • user_id: from auth

Response:

  • type: tasks | events | briefing | action
  • data: relevant items
  • formatted: PDA-friendly text response

Query types:

  • "what's on my calendar" → calendar events
  • "show my tasks" → task list
  • "morning briefing" → today's overview
  • "add task: X" → create task
  • "today" → today's view

Requirements:

  • Intent classification
  • Context-aware responses
  • PDA-friendly formatting
  • Rate limiting
Implement the brain query API for MoltBot integration. **Endpoint:** - POST /api/brain/query **Request:** - query: string (natural language) - context: optional (current view, recent items) - user_id: from auth **Response:** - type: tasks | events | briefing | action - data: relevant items - formatted: PDA-friendly text response **Query types:** - "what's on my calendar" → calendar events - "show my tasks" → task list - "morning briefing" → today's overview - "add task: X" → create task - "today" → today's view **Requirements:** - Intent classification - Context-aware responses - PDA-friendly formatting - Rate limiting
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-28 19:05:41 +00:00
jason.woltje added the p0api labels 2026-01-28 19:05:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#22