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

# Create Eval Config Record

> Creates a new record for an AI evaluation configuration. Either provide a dialId to link an existing dial, or provide prompt fields to create a prompt-based record.



## OpenAPI

````yaml post /eval_configs/{id}/records
openapi: 3.0.3
info:
  title: Vogent - OpenAPI 3.0
  description: Test Description
  version: 1.0.11
servers:
  - url: https://api.vogent.ai/api
security:
  - bearerAuth: []
paths:
  /eval_configs/{id}/records:
    post:
      summary: Create Eval Config Record
      description: >-
        Creates a new record for an AI evaluation configuration. Either provide
        a dialId to link an existing dial, or provide prompt fields to create a
        prompt-based record.
      operationId: createEvalConfigRecord
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
          description: ID of the eval config.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAIEvalRecordInput'
        required: true
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIEvalRecord'
        '400':
          description: Invalid input
        '422':
          description: Validation exception
components:
  schemas:
    CreateAIEvalRecordInput:
      type: object
      description: >-
        Create either a dial-based record (provide dialId) or a prompt-based
        record (provide prompt fields).
      properties:
        recordType:
          $ref: '#/components/schemas/AIEvalRecordType'
          description: 'The type of record to create: DIAL or PROMPT.'
        dialId:
          type: string
          description: The ID of an existing dial to link (required for DIAL type).
        name:
          type: string
          description: The name of the prompt (for PROMPT type).
        description:
          type: string
          description: The description of the prompt (for PROMPT type).
        systemPrompt:
          type: string
          description: The system prompt (required for PROMPT type).
        maxTurns:
          type: integer
          description: >-
            The maximum number of conversation turns (for PROMPT type, defaults
            to 20).
        agentInputs:
          type: string
          description: >-
            JSON object of key-value pairs injected as agent variables (for
            PROMPT type).
      required:
        - recordType
    AIEvalRecord:
      type: object
      properties:
        id:
          type: string
          nullable: false
        recordType:
          $ref: '#/components/schemas/AIEvalRecordType'
        dialId:
          type: string
          nullable: true
        prompt:
          $ref: '#/components/schemas/AIEvalPrompt'
          nullable: true
      required:
        - id
        - recordType
    AIEvalRecordType:
      type: string
      enum:
        - DIAL
        - PROMPT
      description: The type of evaluation record.
      nullable: false
    AIEvalPrompt:
      type: object
      properties:
        id:
          type: string
          nullable: false
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        systemPrompt:
          type: string
          nullable: false
        maxTurns:
          type: integer
          nullable: false
        agentInputs:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
          nullable: false
      required:
        - id
        - systemPrompt
        - maxTurns
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        In the form `Bearer <api_key_here>`. You can find your api key in your
        dashboard.

````