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

# Create AI analysis prompt

> Creates a new prompt configuration for AI document analysis. Defines when and how AI should analyze specific document types in cases. Requires `admin.platform.super` permission.



## OpenAPI

````yaml api-reference/ai.yaml post /prompts/create
openapi: 3.0.3
info:
  title: ai
  description: >-
    The AI Service acts as the intelligence hub of the arbitration platform,
    powering smart automation, analysis, and decision support. It centralizes
    all AI integrations, ensuring seamless and consistent AI functionality
    across every part of the system.
  version: 1.0.0
servers:
  - url: https://ai.platform.arb.inc
security: []
tags:
  - name: /
  - name: analysis
  - name: demo
  - name: generate-award
  - name: generate-document
  - name: process
  - name: prompts
paths:
  /prompts/create:
    post:
      tags:
        - prompts
      summary: Create AI analysis prompt
      description: >-
        Creates a new prompt configuration for AI document analysis. Defines
        when and how AI should analyze specific document types in cases.
        Requires `admin.platform.super` permission.
      operationId: createPrompt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - documentID
                - ruleSet
                - prompt
              properties:
                documentID:
                  type: string
                  minLength: 1
                  maxLength: 50
                  description: Document type identifier
                  example: statementOfClaim
                ruleSet:
                  type: string
                  minLength: 1
                  maxLength: 50
                  description: Rule set identifier for case type
                  example: small-claims-v1
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 50000
                  description: AI prompt text for document analysis
                  example: >-
                    Analyze the statement of claim and extract key facts, legal
                    arguments, and relief requested. Identify any procedural
                    issues or missing information.
                active:
                  type: boolean
                  description: Whether this prompt is active
                  example: true
                triggerOnDocket:
                  type: boolean
                  description: Trigger analysis when document is docketed
                  example: true
                triggerOnDraft:
                  type: boolean
                  description: Trigger analysis when document is drafted
                  example: false
                includeEvidence:
                  type: boolean
                  description: Include case evidence in analysis context
                  example: true
                includeFullCase:
                  type: boolean
                  description: Include full case docket in analysis context
                  example: false
      responses:
        '200':
          description: Prompt created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
        '409':
          description: Prompt already exists for this document and rule set combination
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````