Skip to main content
POST
/
api
/
v2
/
persona
/
generate
Generate Personas
curl --request POST \
  --url https://app.octavehq.com/api/v2/persona/generate \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "primaryOfferingOId": "o_123456",
  "linkingStrategy": {
    "mode": "ALL"
  },
  "personas": [
    {
      "name": "Enterprise Sales Leader",
      "sources": [
        {
          "type": "TEXT",
          "value": "VP of Sales professionals who manage enterprise deals and drive revenue growth"
        }
      ]
    },
    {
      "sources": [
        {
          "type": "URL",
          "value": "https://example.com/target-customer-profile"
        }
      ]
    }
  ],
  "playbookOId": "pb_456",
  "brandVoiceOId": "bv_789"
}'
{
  "_metadata": {
    "usage": 0,
    "requestId": "requestId",
    "message": "message",
    "timestamp": "2021-01-01T00:00:00.000Z"
  },
  "data": [
    {
      "oId": "p_1234",
      "name": "VP of Sales",
      "internalName": "Sally the Sales Leader",
      "description": "<string>",
      "createdAt": "2021-01-01",
      "deletedAt": "2021-01-01",
      "archivedAt": "2021-01-01",
      "updatedAt": "2021-01-01",
      "unrecognized": false,
      "rejected": false,
      "active": true,
      "data": {
        "internalName": "<string>",
        "primaryResponsibilities": [
          "Responsibility 1",
          "Responsibility 2"
        ],
        "painPoints": [
          "Pain Point 1",
          "Pain Point 2"
        ],
        "keyConcerns": [
          "Concern 1",
          "Concern 2"
        ],
        "keyObjectives": [
          "Objective 1",
          "Objective 2"
        ],
        "commonJobTitles": [
          "Job Title 1",
          "Job Title 2"
        ],
        "whyTheyMatterToUs": [
          "Reason 1",
          "Reason 2"
        ],
        "whyWeMatterToThem": [
          "Reason 1",
          "Reason 2"
        ],
        "customFields": [
          {
            "title": "<string>",
            "value": [
              "<string>"
            ]
          }
        ]
      },
      "qualifyingQuestions": [
        {
          "question": "<string>",
          "rationale": "<string>",
          "fitType": "GOOD",
          "weight": "MEDIUM",
          "archivedAt": "<string>"
        }
      ],
      "user": {
        "oId": "u_1234",
        "firstName": "John",
        "lastName": "Doe"
      },
      "workspace": {
        "oId": "wa_1234"
      }
    }
  ]
}

Authorizations

api_key
string
header
required

Body

application/json

Persona generation input with source materials

personas
object[]
required

Array of persona generation requests - each object generates one persona

Minimum length: 1
Example:
[
{
"name": "Enterprise Sales Leader",
"sources": [
{
"type": "TEXT",
"value": "VP of Sales professionals who manage enterprise deals and drive revenue growth"
}
]
},
{
"sources": [
{
"type": "URL",
"value": "https://example.com/target-customer-profile"
}
]
}
]
primaryOfferingOId
string

Primary Offering to use as context when generating personas. If not provided, the primary company attached to the Workspace will be used.

Example:

"o_123456"

linkingStrategy
object

Strategy for linking this persona to products/offerings Strategy for linking generated personas to products/offerings

  • Option 1
  • Option 2
playbookOId
string

Optional playbook ID to link the generated personas to

Example:

"pb_456"

brandVoiceOId
string

Optional brand voice ID to apply to generated personas

Example:

"bv_789"

Response

Personas generated successfully

_metadata
object
required
data
object[] | null
I