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

# Generate Scenario Instructions V3

> Write caller instructions and an expected outcome for a new evaluator of the agent, guided by `extra_instructions`, and return them. Nothing is saved. Usually takes under a minute.



## OpenAPI

````yaml post /test_framework/v3/scenarios/generate-instructions/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /test_framework/v3/scenarios/generate-instructions/:
    post:
      tags:
        - test_framework
      summary: Generate scenario instructions with AI
      description: >-
        Write caller instructions and an expected outcome for a new evaluator of
        the agent, guided by `extra_instructions`, and return them. Nothing is
        saved. Usually takes under a minute.
      operationId: scenarios-v3-generate-instructions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateInstructionsV3Request'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/GenerateInstructionsV3Request'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/GenerateInstructionsV3Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - completed
                      - failed
                    description: >-
                      `failed` when the job could not produce its result; see
                      `error` / `errors`.
                  agent_id:
                    type: integer
                  instructions:
                    type:
                      - string
                      - 'null'
                  expected_outcome_prompt:
                    type:
                      - string
                      - 'null'
                  error:
                    type:
                      - string
                      - 'null'
                    description: Why the job failed, when it did.
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  field_name:
                    type: array
                    items:
                      type: string
          description: ''
        '403':
          description: No access to the agent, project or metric the job runs on.
        '504':
          description: >-
            The job did not finish within 15 minutes. It may still complete in
            the background.
      security:
        - api_key: []
        - oauth2: []
        - supabase_session: []
components:
  schemas:
    GenerateInstructionsV3Request:
      type: object
      properties:
        agent_id:
          type: integer
          description: Agent the evaluator will test.
        extra_instructions:
          type: string
          description: What the evaluator should test, in plain language.
      required:
        - agent_id
        - extra_instructions
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-CEKURA-API-KEY
      description: >-
        API Key Authentication. It should be included in the header of each
        request.
    oauth2:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth access token issued by Cekura for connected apps.
    supabase_session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Cekura dashboard session token. Not a customer API credential.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.