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

# Process Minecraft Chat Prompt

> Accepts a chat prompt and processes it using OpenAI. The function echoes the received prompt back as a success confirmation.



## OpenAPI

````yaml https://stash.seraph.si/json post /minecraft/chat
openapi: 3.1.0
info:
  contact:
    email: support@seraph.si
    name: API Support
    url: https://discord.gg/seraph
  title: Seraph API
  version: '4.0'
servers: []
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /minecraft/chat:
    post:
      tags:
        - Minecraft
        - AI
      summary: Process Minecraft Chat Prompt
      description: >-
        Accepts a chat prompt and processes it using OpenAI. The function echoes
        the received prompt back as a success confirmation.
      requestBody:
        content:
          application/json:
            schema:
              properties:
                prompt:
                  type: string
              type: object
        description: Chat prompt to send to the AI
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  prompt:
                    type: string
                type: object
          description: >-
            The original prompt received, indicating successful processing
            (Note: The actual AI response is not returned directly by this
            endpoint).
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/validation.ErrorResponse'
          description: Bad request, e.g., invalid prompt or an error from the OpenAI API
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/validation.ErrorResponse'
          description: Internal server error
components:
  schemas:
    validation.ErrorResponse:
      properties:
        cause:
          type: string
        code:
          type: integer
        documentation:
          type: string
        extra:
          items:
            $ref: '#/components/schemas/validation.ErrorObject'
          type: array
          uniqueItems: false
        msTime:
          type: integer
        success:
          type: boolean
      type: object
    validation.ErrorObject:
      properties:
        code:
          type: integer
        developer_reason:
          type: string
        name:
          type: string
        reason:
          type: string
      type: object

````