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

# Analyze Proposal Competitiveness

> Analyze proposal competitiveness and get suggestions for improvement.

**Required scope:** `read`

Evaluates:
- Price competitiveness (is the price fair for the market?)
- Timeline assessment (is the estimate realistic?)
- Value proposition (does the scope justify the cost?)

Returns a score 1-10 and actionable suggestions for improvement.
This is perfect for an n8n agent to iterate and improve proposals.



## OpenAPI

````yaml /openapi/openapi-external.json post /ai/analyze-proposal
openapi: 3.1.0
info:
  title: Quikly.ai External API
  version: 1.0.0
  description: >-
    REST API for external integrations with Quikly.ai. Authenticate using an API
    key passed in the X-API-Key header. Use these endpoints from n8n, Zapier,
    custom scripts, or any HTTP client.
servers: []
security:
  - ApiKeyAuth: []
tags:
  - name: Proposals
    description: Create, read, update, and manage client proposals.
  - name: Profile
    description: Read and update the authenticated user's profile.
  - name: Templates
    description: Manage reusable proposal templates.
  - name: AI Services
    description: >-
      AI-powered analysis: rate recommendations, brief analysis,
      differentiators.
  - name: Public API
  - name: Usage
    description: Query API usage and quota information.
  - name: Webhooks
    description: Manage webhook subscriptions for real-time events.
  - name: Agent
    description: Interact with the AI agent for automated workflows.
  - name: Lead Sessions
    description: Track and manage lead capture sessions.
paths:
  /ai/analyze-proposal:
    post:
      tags:
        - AI Services
      summary: Analyze Proposal Competitiveness
      description: |-
        Analyze proposal competitiveness and get suggestions for improvement.

        **Required scope:** `read`

        Evaluates:
        - Price competitiveness (is the price fair for the market?)
        - Timeline assessment (is the estimate realistic?)
        - Value proposition (does the scope justify the cost?)

        Returns a score 1-10 and actionable suggestions for improvement.
        This is perfect for an n8n agent to iterate and improve proposals.
      operationId: >-
        analyze_proposal_competitiveness_api_external_v1_ai_analyze_proposal_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProposalAnalysisRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProposalAnalysisResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ProposalAnalysisRequest:
      properties:
        requirements:
          items:
            $ref: '#/components/schemas/app__schemas__ai__RequirementInput__1'
          type: array
          title: Requirements
        totalPrice:
          anyOf:
            - type: number
            - type: string
          title: Totalprice
        estimatedDays:
          type: integer
          title: Estimateddays
        currency:
          type: string
          title: Currency
          default: USD
        hourlyRate:
          anyOf:
            - type: number
            - type: string
          title: Hourlyrate
        proposalType:
          type: string
          title: Proposaltype
          default: technical
        hourBucketHours:
          anyOf:
            - type: integer
            - type: 'null'
          title: Hourbuckethours
        hourBucketValidityDays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Hourbucketvaliditydays
        hourBucketExpiryPolicy:
          anyOf:
            - type: string
            - type: 'null'
          title: Hourbucketexpirypolicy
        hourBucketMinBillingIncrement:
          anyOf:
            - type: integer
            - type: 'null'
          title: Hourbucketminbillingincrement
        hourBucketGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Hourbucketgovernanceterms
        hourBucketRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Hourbucketrisks
        technicalGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Technicalgovernanceterms
        technicalRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Technicalrisks
        warrantyDays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Warrantydays
        revisionRounds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Revisionrounds
        tamEstimatedHoursMin:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tamestimatedhoursmin
        tamEstimatedHoursMax:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tamestimatedhoursmax
        tamBillingCadence:
          anyOf:
            - type: string
            - type: 'null'
          title: Tambillingcadence
        tamBudgetCap:
          anyOf:
            - type: number
            - type: 'null'
          title: Tambudgetcap
        tamGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Tamgovernanceterms
        tamRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Tamrisks
        tamReimbursableExpenses:
          anyOf:
            - type: string
            - type: 'null'
          title: Tamreimbursableexpenses
        tamApprovalThreshold:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tamapprovalthreshold
        retainerMonthlyHours:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retainermonthlyhours
        retainerDiscountedRate:
          anyOf:
            - type: number
            - type: 'null'
          title: Retainerdiscountedrate
        retainerMinCommitmentMonths:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retainermincommitmentmonths
        retainerRolloverPercent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retainerrolloverpercent
        retainerSlaTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Retainerslaterms
        retainerGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Retainergovernanceterms
        retainerRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Retainerrisks
        retainerLicensesResponsibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Retainerlicensesresponsibility
        milestoneGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Milestonegovernanceterms
        milestoneRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Milestonerisks
        milestoneDepositPercent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Milestonedepositpercent
        milestoneApprovalDays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Milestoneapprovaldays
        milestoneRevisionRounds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Milestonerevisionrounds
        milestonePhases:
          anyOf:
            - items:
                type: object
              type: array
            - type: 'null'
          title: Milestonephases
        staffAugContractMonths:
          anyOf:
            - type: integer
            - type: 'null'
          title: Staffaugcontractmonths
        staffAugBillingCadence:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffaugbillingcadence
        staffAugGovernanceTerms:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffauggovernanceterms
        staffAugRisks:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffaugrisks
        staffAugNoticePeriod:
          anyOf:
            - type: integer
            - type: 'null'
          title: Staffaugnoticeperiod
        staffAugWorkingHours:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffaugworkinghours
        staffAugIpOwnership:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffaugipownership
        staffAugMode:
          anyOf:
            - type: string
            - type: 'null'
          title: Staffaugmode
        managedOverlay:
          anyOf:
            - type: object
            - type: 'null'
          title: Managedoverlay
        blendedRateEnabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Blendedrateenabled
        blendedRatePerHour:
          anyOf:
            - type: number
            - type: 'null'
          title: Blendedrateperhour
        rampUpDiscountPercent:
          anyOf:
            - type: number
            - type: 'null'
          title: Rampupdiscountpercent
        staffAugSlaAcknowledgeTime:
          anyOf:
            - type: integer
            - type: 'null'
          title: Staffaugslaacknowledgetime
        staffAugSlaResolutionTime:
          anyOf:
            - type: integer
            - type: 'null'
          title: Staffaugslaresolutiontime
        staffAugSlaPenaltyPercent:
          anyOf:
            - type: number
            - type: 'null'
          title: Staffaugslapenaltypercent
        staffAugSlaBonusPercent:
          anyOf:
            - type: number
            - type: 'null'
          title: Staffaugslabonuspercent
        phases:
          anyOf:
            - items:
                type: object
              type: array
            - type: 'null'
          title: Phases
        availableTeam:
          anyOf:
            - items:
                type: object
              type: array
            - type: 'null'
          title: Availableteam
        proposalTeam:
          anyOf:
            - items:
                type: object
              type: array
            - type: 'null'
          title: Proposalteam
        agencyMargin:
          anyOf:
            - type: number
            - type: 'null'
          title: Agencymargin
        internalCost:
          anyOf:
            - type: number
            - type: 'null'
          title: Internalcost
        blendedRate:
          anyOf:
            - type: number
            - type: 'null'
          title: Blendedrate
        sowOutOfScope:
          anyOf:
            - type: string
            - type: 'null'
          title: Sowoutofscope
        sowAcceptanceCriteria:
          anyOf:
            - type: string
            - type: 'null'
          title: Sowacceptancecriteria
        providerType:
          type: string
          title: Providertype
          default: freelancer
        role:
          type: string
          title: Role
        seniority:
          type: string
          title: Seniority
        location:
          type: string
          title: Location
        clientName:
          anyOf:
            - type: string
            - type: 'null'
          title: Clientname
        companySize:
          anyOf:
            - type: string
            - type: 'null'
          title: Companysize
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        clientType:
          anyOf:
            - type: string
            - type: 'null'
          title: Clienttype
        includeDifferentiators:
          type: boolean
          title: Includedifferentiators
          default: false
        differentiatorsSummary:
          anyOf:
            - type: string
            - type: 'null'
          title: Differentiatorssummary
        language:
          type: string
          enum:
            - es
            - en
          title: Language
          default: en
        apiKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Apikey
        aiProvider:
          anyOf:
            - type: string
              enum:
                - gemini
                - openai
                - anthropic
            - type: 'null'
          title: Aiprovider
          default: gemini
        openaiApiKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Openaiapikey
        anthropicApiKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Anthropicapikey
      type: object
      required:
        - requirements
        - totalPrice
        - estimatedDays
        - hourlyRate
        - role
        - seniority
        - location
      title: ProposalAnalysisRequest
      description: Schema for proposal competitiveness analysis request.
    ProposalAnalysisResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        competitivenessScore:
          type: integer
          title: Competitivenessscore
        analysis:
          type: object
          title: Analysis
        suggestions:
          items:
            type: string
          type: array
          title: Suggestions
        overallReasoning:
          type: string
          title: Overallreasoning
        modelSpecificInsights:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Modelspecificinsights
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - competitivenessScore
        - analysis
        - suggestions
        - overallReasoning
      title: ProposalAnalysisResponse
      description: Schema for proposal analysis response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    app__schemas__ai__RequirementInput__1:
      properties:
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          default: ''
        complexity:
          type: integer
          title: Complexity
          default: 3
        priority:
          type: string
          title: Priority
          default: medium
      type: object
      required:
        - name
      title: RequirementInput
      description: Simplified requirement for analysis.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from Quikly.ai Settings → API Keys.
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````