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

# Add rows to a scenario using AI

> Initiates an asynchronous task to generate and add a specified number of new rows to a scenario's dataset using AI. A description can be provided to guide the content generation.



## OpenAPI

````yaml /openapi.json post /simulate/scenarios/{scenario_id}/add-rows/
openapi: 3.0.0
info:
  title: FutureAGI Unified API
  version: 1.0.0
  description: >-
    Complete API documentation for FutureAGI platform - Simulate module
    (scenario management, agent definitions, test executions, call analytics)
    and Model Hub Evaluations API (evaluation templates, playgrounds, metrics,
    and execution tracking)
  contact:
    email: support@futureagi.com
servers:
  - url: https://api.futureagi.com
    description: Production API
security: []
tags:
  - name: Health
    description: Health check operations for monitoring server status
  - name: Authentication
    description: User authentication and token management
  - name: Scenarios
    description: Test scenario management and execution
  - name: Agent Definitions
    description: Agent definition CRUD operations
  - name: Agent Versions
    description: Agent version control and management
  - name: Simulator Agents
    description: Simulator agent operations
  - name: Run Tests
    description: Test execution management
  - name: Test Executions
    description: Test execution tracking and analytics
  - name: Call Executions
    description: Individual call execution details
  - name: Call Transcripts
    description: Transcript management and retrieval
  - name: Personas
    description: Persona management for testing
  - name: Analytics
    description: Analytics and reporting
  - name: Export Simulate
    description: Data export operations
  - name: Datasets
    description: >-
      Operations related to datasets, including creation, modification, and data
      management.
  - name: Eval Groups
    description: Evaluation group management
  - name: Eval Templates
    description: Base evaluation template operations
  - name: Custom Eval Templates
    description: Custom evaluation template CRUD operations
  - name: Eval Playground
    description: Test and run evaluations in playground environment
  - name: Eval Logs & Metrics
    description: Evaluation logs, metrics, and execution tracking
  - name: Eval Configuration
    description: Evaluation configuration and templates retrieval
  - name: API Keys
    description: API key management
  - name: Prompt Workbench
    description: Prompt template version labeling and lookup by name, version, or label
paths:
  /simulate/scenarios/{scenario_id}/add-rows/:
    post:
      tags:
        - Scenarios
      summary: Add rows to a scenario using AI
      description: >-
        Initiates an asynchronous task to generate and add a specified number of
        new rows to a scenario's dataset using AI. A description can be provided
        to guide the content generation.
      operationId: addScenarioRowsWithAI
      parameters:
        - name: scenario_id
          in: path
          required: true
          description: The UUID of the scenario to which rows will be added.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                num_rows:
                  type: integer
                  description: >-
                    The number of new rows to generate and add. The value must
                    be between 1 and 100.
                  minimum: 1
                description:
                  type: string
                  description: >-
                    An optional description to guide the AI in generating the
                    content for the new rows.
                  nullable: true
              required:
                - num_rows
            examples:
              add-rows-with-description:
                summary: Add 5 rows with guidance
                value:
                  num_rows: 5
                  description: >-
                    Generate conversations where customers are asking for a
                    refund.
              add-rows-without-description:
                summary: Add 3 rows without guidance
                value:
                  num_rows: 3
      responses:
        '202':
          description: >-
            Accepted. The request to generate rows has been queued and is being
            processed in the background.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Started generating 5 new rows for scenario
                  scenario_id:
                    type: string
                    format: uuid
                  dataset_id:
                    type: string
                    format: uuid
                  num_rows:
                    type: integer
                    example: 5
        '400':
          description: >-
            Bad Request. The request is invalid. This can happen if the scenario
            does not have an associated dataset or if the 'num_rows' is out of
            the valid range (1-100).
        '401':
          description: >-
            Unauthorized. Authentication credentials were not provided or are
            invalid.
        '404':
          description: Not Found. The scenario with the specified ID could not be found.
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
      security:
        - ApiKeyAuth: []
          SecretKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API Key for authentication. Click
        [here](https://app.futureagi.com/dashboard/keys) to access API Key
    SecretKeyAuth:
      type: apiKey
      in: header
      name: X-Secret-Key
      description: >-
        Secret Key for authentication. Click
        [here](https://app.futureagi.com/dashboard/keys) to access Secret Key

````