> ## 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.

# Generate document field values from evidence

> Extracts and generates document field values from provided evidence files using AI and document type schemas. Supports optional reference documents for context and can populate complex document structures based on evidence analysis.



## OpenAPI

````yaml api-reference/ai.yaml post /generate-document
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:
  /generate-document:
    post:
      tags:
        - generate-document
      summary: Generate document field values from evidence
      description: >-
        Extracts and generates document field values from provided evidence
        files using AI and document type schemas. Supports optional reference
        documents for context and can populate complex document structures based
        on evidence analysis.
      operationId: generateDocumentFields
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - documents
                - documentType
              properties:
                documents:
                  type: array
                  minItems: 1
                  description: Evidence or source documents to analyze
                  items:
                    type: object
                    required:
                      - gsUrl
                      - contentType
                    properties:
                      gsUrl:
                        type: string
                        format: uri
                        description: Google Cloud Storage URL beginning with gs://
                        example: gs://platform-evidence/2025/invoice-2025-001.pdf
                      contentType:
                        type: string
                        description: MIME type of the document
                        example: application/pdf
                      description:
                        type: string
                        maxLength: 1000
                        description: Optional description of the document
                        example: Invoice showing unpaid parking fees
                documentType:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: Document type identifier matching platform document schema
                  example: statementOfClaim
                context:
                  type: string
                  maxLength: 10000
                  description: Optional user-provided context to guide document generation
                  example: Focus on extracting party information and claim amounts
                referenceDocuments:
                  type: array
                  maxItems: 5
                  description: Previously filed documents to reference for context
                  items:
                    type: object
                    required:
                      - documentType
                      - gsUrl
                    properties:
                      documentType:
                        type: string
                        minLength: 1
                        maxLength: 100
                        description: Document type identifier
                        example: statementOfClaim
                      gsUrl:
                        type: string
                        format: uri
                        description: Google Cloud Storage URL beginning with gs://
                        example: >-
                          gs://platform-cases/2025/case-123/statement-of-claim.pdf
      responses:
        '200':
          description: Generated document fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  documentType:
                    type: string
                    example: statementOfClaim
                  fields:
                    type: object
                    description: Map of field IDs to extracted values
                    example:
                      claimantName: Vanguard Parking Solutions
                      claimantAddress: 3389 SHERIDAN ST BOX
                      claimantCity: HOLLYWOOD
                      claimantState: FL
                      claimantZipcode: '33021'
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````