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

# Generate Solution

> Generate solution draft content from sources, name, optional library links, and instructions



## OpenAPI

````yaml post /api/v2/solution/generate
openapi: 3.0.0
info:
  version: 1.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/solution/generate:
    post:
      tags:
        - Solution
      summary: Generate Solution
      description: >-
        Generate solution draft content from sources, name, optional library
        links, and instructions
      operationId: generateSolutions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                sources:
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - TEXT
                          - URL
                          - GOOGLE_DRIVE_FILE_ID
                          - GENERATIVE_NAME
                          - OID
                          - COMPANY_NAME
                          - FIELDWISE_DOCUMENT_ID
                          - RAG_DOCUMENT_ID
                          - RESOURCE
                          - REPORT
                          - REPORT_SECTION
                          - EVENT_OID_FINDINGS
                          - FINDING_OIDS
                      value:
                        type: string
                      name:
                        type: string
                        nullable: true
                      details:
                        type: string
                        nullable: true
                      useNameIfUrlFails:
                        type: boolean
                        nullable: true
                    required:
                      - type
                      - value
                instructions:
                  type: string
                brandVoiceOId:
                  type: string
                enableRagEnrichment:
                  type: boolean
                offeringOIds:
                  type: array
                  items:
                    type: string
                  default: []
                useCaseOIds:
                  type: array
                  items:
                    type: string
                  default: []
                personaOIds:
                  type: array
                  items:
                    type: string
                  default: []
                segmentOIds:
                  type: array
                  items:
                    type: string
                  default: []
                referenceOIds:
                  type: array
                  items:
                    type: string
                  default: []
                collateralOIds:
                  type: array
                  items:
                    type: string
                  default: []
                competitorOIds:
                  type: array
                  items:
                    type: string
                  default: []
                alternativeOIds:
                  type: array
                  items:
                    type: string
                  default: []
                buyingTriggerOIds:
                  type: array
                  items:
                    type: string
                  default: []
                objectionOIds:
                  type: array
                  items:
                    type: string
                  default: []
                proofPointOIds:
                  type: array
                  items:
                    type: string
                  default: []
                genericTextEntityOIds:
                  type: array
                  items:
                    type: string
                  default: []
              required:
                - name
                - sources
      responses:
        '200':
          description: Generated solution payload (not persisted)
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/GeneratedSolutionOutput'
                required:
                  - _metadata
                  - data
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          description: API usage
          example: 0
        requestId:
          type: string
          description: Request ID
          example: requestId
        message:
          type: string
          description: Message
          example: message
        timestamp:
          type: string
          description: Timestamp
          example: '2021-01-01T00:00:00.000Z'
      required:
        - requestId
        - timestamp
    GeneratedSolutionOutput:
      type: object
      properties:
        name:
          type: string
        internalName:
          type: string
          nullable: true
        summary:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        distinctCapabilities:
          type: array
          items:
            type: string
          default: []
        keyComponents:
          type: array
          items:
            type: string
          default: []
        customerBenefits:
          type: array
          items:
            type: string
          default: []
        challengesAddressed:
          type: array
          items:
            type: string
          default: []
        statusQuo:
          type: array
          items:
            type: string
          default: []
        differentiatedValue:
          type: array
          items:
            type: string
          default: []
        customFields:
          $ref: '#/components/schemas/CustomDataFields'
      required:
        - name
    CustomDataFields:
      type: array
      items:
        $ref: '#/components/schemas/CustomDataFieldItem'
    CustomDataFieldItem:
      type: object
      properties:
        title:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - title
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````