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

# Generate Persona

> Generate a draft persona via the org's BYOK LLM profile (not persisted).



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/personas/generate
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/personas/generate:
    post:
      tags:
        - personas
      summary: Generate Persona
      description: Generate a draft persona via the org's BYOK LLM profile (not persisted).
      operationId: generate_persona_api_v1_personas_generate_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/PersonaGenerateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonaGenerateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PersonaGenerateRequest:
      properties:
        llm_profile_id:
          type: string
          format: uuid
          title: Llm Profile Id
        brief:
          type: string
          maxLength: 8000
          minLength: 1
          title: Brief
        role:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Role
        language:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Language
        tone:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Tone
        name:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Name
      type: object
      required:
        - llm_profile_id
        - brief
      title: PersonaGenerateRequest
      description: Generate a draft persona from a brief using a BYOK LLM profile.
    PersonaGenerateResponse:
      properties:
        name:
          type: string
          title: Name
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        goals:
          anyOf:
            - type: string
            - type: 'null'
          title: Goals
        tone:
          anyOf:
            - type: string
            - type: 'null'
          title: Tone
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        language_secondary:
          anyOf:
            - type: string
            - type: 'null'
          title: Language Secondary
        product_context:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Context
        boundaries:
          anyOf:
            - type: string
            - type: 'null'
          title: Boundaries
        faqs:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Faqs
        example_dialogs:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Example Dialogs
        system_prompt:
          type: string
          title: System Prompt
        override_system_prompt:
          type: boolean
          title: Override System Prompt
          default: false
      type: object
      required:
        - name
        - system_prompt
      title: PersonaGenerateResponse
      description: Draft persona fields from AI generation (not persisted).
    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

````