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

# Attach Skill to PAL

> Attach a skill to a PAL, or overwrite the configuration of an existing attachment. The skill is active on the PAL's next conversation.

Skills with no configuration (like `internet_search`) take an empty body or `{"config": {}}`. See [Skills](/sections/conversational-video-interface/skills/overview) for each skill's configuration fields. For `magic_canvas`, see [Canvas configuration](/sections/conversational-video-interface/magic-canvas/api/configuration).


<Info>
  For AI agents, use `https://docs.tavus.io/openapi.yaml` for the full HTTP API contract.
</Info>


## OpenAPI

````yaml put /v2/pals/{pal_id}/skills/{skill_id}
openapi: 3.0.3
info:
  title: Tavus Developer API Collection
  version: 1.0.0
  contact: {}
servers:
  - url: https://tavusapi.com
security:
  - apiKey: []
tags:
  - name: Videos
  - name: Faces
  - name: Voices
  - name: Conversations
  - name: Deployments
  - name: PALs
  - name: Tools
  - name: PAL Tools
  - name: Pronunciation Dictionaries
  - name: Replacements
  - name: Transcriptions
  - name: Documents
paths:
  /v2/pals/{pal_id}/skills/{skill_id}:
    parameters:
      - name: pal_id
        in: path
        required: true
        description: The unique identifier of the PAL.
        schema:
          type: string
          example: pcb7a34da5fe
      - name: skill_id
        in: path
        required: true
        description: The unique identifier of the skill.
        schema:
          type: string
          example: presentation
    put:
      tags:
        - Skills
      summary: Attach Skill to PAL
      description: >
        Attach a skill to a PAL, or overwrite the configuration of an existing
        attachment. The skill is active on the PAL's next conversation.


        Skills with no configuration (like `internet_search`) take an empty body
        or `{"config": {}}`. See
        [Skills](/sections/conversational-video-interface/skills/overview) for
        each skill's configuration fields. For `magic_canvas`, see [Canvas
        configuration](/sections/conversational-video-interface/magic-canvas/api/configuration).
      operationId: attachSkillToPersona
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                config:
                  type: object
                  description: >
                    The configuration for the skill, validated against the
                    skill's config schema. Defaults to `{}`.


                    - `presentation`: `document_ids` (required array), optional
                    `slides_trigger` (`on_demand` (default) or `walk_the_deck`),
                    optional `prompt`.

                    - `magic_canvas`: optional sparse `components` overlay - see
                    [Canvas
                    configuration](/sections/conversational-video-interface/magic-canvas/api/configuration).
                  example:
                    document_ids:
                      - d1234567890
                      - d2468101214
                    slides_trigger: walk_the_deck
                    prompt: Walk the participant through the Q4 roadmap deck.
            examples:
              no_config:
                summary: Skill without configuration
                value:
                  config: {}
              presentation:
                summary: Presentation skill
                value:
                  config:
                    document_ids:
                      - d1234567890
                      - d2468101214
                    slides_trigger: walk_the_deck
                    prompt: Walk the participant through the Q4 roadmap deck.
              magic_canvas:
                summary: Magic Canvas skill
                value:
                  config:
                    components:
                      scheduling_embed:
                        provider: calendly
                        scheduling_url: https://calendly.com/your-team/30min
      responses:
        '200':
          description: Successfully attached the skill
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillAttachment'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: >-
                      Bad Request: {'document_ids': ['Missing data for required
                      field.']}
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Invalid access token
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unknown skill 'my_skill'
      security:
        - apiKey: []
components:
  schemas:
    SkillAttachment:
      type: object
      description: A skill attached to a PAL.
      properties:
        skill_id:
          type: string
          description: The unique identifier of the attached skill.
          example: presentation
        config:
          type: object
          description: >
            The skill's configuration. Empty object for skills with no
            configuration.


            Shape depends on `skill_id` - see
            [Skills](/sections/conversational-video-interface/skills/overview).
            For `magic_canvas`, `config.components` is a sparse overlay; see
            [Canvas
            configuration](/sections/conversational-video-interface/magic-canvas/api/configuration).
          example:
            document_ids:
              - d1234567890
              - d2468101214
            slides_trigger: walk_the_deck
            prompt: Walk the participant through the Q4 roadmap deck.
        attached_at:
          type: string
          description: ISO 8601 timestamp of when the skill was first attached to the PAL.
          example: '2026-06-10T14:30:45.123456+00:00'
        updated_at:
          type: string
          description: ISO 8601 timestamp of when the attachment was last modified.
          example: '2026-06-10T14:30:45.123456+00:00'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````