> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Brief From Chat

> Parse a chat message into a structured brief preview.



## OpenAPI

````yaml /openapi.json post /api/v1/teams/{team_id}/brief/chat
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/teams/{team_id}/brief/chat:
    post:
      tags:
        - Teams
      summary: Brief From Chat
      description: Parse a chat message into a structured brief preview.
      operationId: brief_from_chat_api_v1_teams__team_id__brief_chat_post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatBriefRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BriefPreview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ChatBriefRequest:
      properties:
        message:
          type: string
          title: Message
        agent_member_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Member Id
      type: object
      required:
        - message
      title: ChatBriefRequest
      description: Request body for briefing a task from chat.
    BriefPreview:
      properties:
        task_type:
          type: string
          title: Task Type
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        assigned_agent:
          type: string
          title: Assigned Agent
        credit_cost:
          type: integer
          title: Credit Cost
        marketplace_price_usd:
          type: number
          title: Marketplace Price Usd
      type: object
      required:
        - task_type
        - title
        - description
        - assigned_agent
        - credit_cost
        - marketplace_price_usd
      title: BriefPreview
      description: Structured brief preview returned from chat-based briefing.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````