---
title: "AI Generated Template Response"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/schemas/AiTemplateResponse"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f.md

# AI Generated Template Response

AI-generated inspection template

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    TemplateItemValueType:
      type: string
      description: Defines the type of data element within a template
      enum:
        - CHECK
        - METER
        - TEXT
        - LOCATION
        - PHOTO
    AiTemplateResponse:
      title: AI Generated Template Response
      type: object
      properties:
        comment:
          maxLength: 120
          minLength: 0
          pattern: ^(?!\s)(?!.*\s$)[\S\s]+(?<!\s)$
          type: string
          description: Notes about the template
        name:
          maxLength: 60
          minLength: 3
          pattern: ^\S[^\n]+\S$
          type: string
          description: Name of the generated template
        fallabckInspectable:
          maxLength: 60
          minLength: 3
          pattern: ^\S[^\n]+\S$
          type: string
          description: Name of the inspectable to use as a fallback when no specific
            inspectable is identified
        templateItems:
          maxItems: 200
          minItems: 0
          type: array
          description: List of template items generated by AI
          items:
            type: object
            properties:
              position:
                maximum: 199
                minimum: 0
                type: integer
                description: Display order position of the template item (zero-based index)
                format: int32
              valueType:
                $ref: "#/components/schemas/TemplateItemValueType"
              name:
                maxLength: 120
                minLength: 3
                pattern: ^\S[^\n]+\S$
                type: string
                description: Name of the template item
              comment:
                maxLength: 2000
                minLength: 0
                pattern: ^(?!\s)(?!.*\s$)[\S\s]+(?<!\s)$
                type: string
                description: Additional comment for the item
              requireValue:
                type: boolean
                description: Whether this item requires a value
                default: false
              tags:
                maxItems: 1
                minItems: 0
                type: array
                description: Tags to categorize the item
                items:
                  maxLength: 80
                  minLength: 1
                  pattern: ^\S[^\n]*\S$
                  type: string
      additionalProperties: false
      description: AI-generated inspection template
```
