Skip to content

Docs

build_voice_profile

Learn how this brand writes from past published posts and/or writing samples you provide, and save it as the workspace's voice profile: a plain-language description plus structured traits every other AI action reads.

Learn how this brand writes from past published posts and/or writing samples you provide, and save it as the workspace's voice profile: a plain-language description plus structured traits every other AI action reads.

Uses heyeveryone AI and costs 3 credits (3 credits per rebuild). Tell the person before calling it.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: 3 credits per rebuild.
  • Requires confirmation: false
  • Accepts idempotency key: true

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "samples": {
      "items": {
        "properties": {
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "maxItems": 50,
      "type": "array"
    },
    "useRecentPosts": {
      "default": true,
      "type": "boolean"
    },
    "idempotencyKey": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "voiceProfile": {
      "additionalProperties": false,
      "properties": {
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "traits": {
          "type": "object"
        },
        "samples": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "text": {
                "type": "string"
              },
              "source": {
                "type": "string"
              }
            },
            "required": [
              "text"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "updatedByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "updatedByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "workspaceId",
        "description",
        "traits",
        "samples",
        "updatedByAccountId",
        "updatedByAgentClientId",
        "createdAt",
        "updatedAt"
      ],
      "type": "object"
    }
  },
  "required": [
    "voiceProfile"
  ],
  "type": "object"
}

Errors

[
  "insufficient_samples",
  "ai_generation_failed",
  "insufficient_credits",
  "plan_limit_reached",
  "idempotency_conflict"
]

Annotations

{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Build the voice profile"
}