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

# Scenario From Session

> Convert a finished text conversation into a scripted scenario draft.

The voice equivalent is `/from-call`. Both produce the same draft and both
default to review rather than save, because a derived scenario asserts
whatever the agent did that day — mistakes included.



## OpenAPI

````yaml /openapi.json post /v1/eval-scenarios/from-session
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 0.1.0
servers: []
security: []
paths:
  /v1/eval-scenarios/from-session:
    post:
      tags:
        - evals
      summary: Scenario From Session
      description: >-
        Convert a finished text conversation into a scripted scenario draft.


        The voice equivalent is `/from-call`. Both produce the same draft and
        both

        default to review rather than save, because a derived scenario asserts

        whatever the agent did that day — mistakes included.
      operationId: scenario_from_session_v1_eval_scenarios_from_session_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScenarioFromSessionRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Scenario From Session V1 Eval Scenarios From Session
                  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ScenarioFromSessionRequest:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        save:
          type: boolean
          title: Save
          default: false
        tags:
          items:
            type: string
          type: array
          maxItems: 32
          title: Tags
      type: object
      required:
        - session_id
      title: ScenarioFromSessionRequest
      description: >-
        Derive a scenario from a text conversation (#87).


        The same idea as `from-call` for SMS, the Chat API and WhatsApp text —
        and

        the source a manual test in a console produces, which had no route in.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````