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

# Update AI agent settings

> Update the agent's drafts, routines, and deployment surfaces. Enabling a surface makes the agent answer customers there. Instructions, prompts, and the auto-reply switch are read-only here. Requires the admin scope.



## OpenAPI

````yaml openapi-v2.json patch /settings/ai-agent
openapi: 3.0.3
info:
  title: Productlane API
  description: Productlane API v2.
  version: 2.0.0
servers:
  - url: https://productlane.com/api/v2
security: []
paths:
  /settings/ai-agent:
    patch:
      tags:
        - settings
      summary: Update AI agent settings
      description: >-
        Update the agent's drafts, routines, and deployment surfaces. Enabling a
        surface makes the agent answer customers there. Instructions, prompts,
        and the auto-reply switch are read-only here. Requires the admin scope.
      operationId: settings-updateAiAgent
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                welcome_message:
                  type: string
                  maxLength: 2000
                example_questions:
                  type: array
                  items:
                    type: string
                    maxLength: 255
                  maxItems: 10
                create_linear_issues:
                  type: boolean
                generate_weekly_summary:
                  type: boolean
                drafts_enabled:
                  type: boolean
                drafts_trigger:
                  type: string
                  enum:
                    - EVERY_INBOUND_MESSAGE
                    - NEW_THREADS_ONLY
                drafts_close_the_loop_enabled:
                  type: boolean
                routines_enabled:
                  type: boolean
                deploy_slack:
                  type: boolean
                deploy_teams:
                  type: boolean
                deploy_api:
                  type: boolean
                deploy_support_portal:
                  type: boolean
                deploy_feature_requests:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  enabled:
                    type: boolean
                  welcome_message:
                    type: string
                  example_questions:
                    type: array
                    items:
                      type: string
                  custom_instructions:
                    type: string
                    nullable: true
                  create_linear_issues:
                    type: boolean
                  generate_weekly_summary:
                    type: boolean
                  auto_replies_enabled:
                    type: boolean
                  drafts_enabled:
                    type: boolean
                  drafts_trigger:
                    type: string
                    description: One of EVERY_INBOUND_MESSAGE, FIRST_MESSAGE_ONLY, MANUAL.
                  drafts_close_the_loop_enabled:
                    type: boolean
                  drafts_custom_prompt:
                    type: string
                    nullable: true
                  routines_enabled:
                    type: boolean
                  routines_prompt:
                    type: string
                    nullable: true
                  deployed_on:
                    type: object
                    properties:
                      slack:
                        type: boolean
                      teams:
                        type: boolean
                      api:
                        type: boolean
                      support_portal:
                        type: boolean
                      feature_requests:
                        type: boolean
                    required:
                      - slack
                      - teams
                      - api
                      - support_portal
                      - feature_requests
                    additionalProperties: false
                  updated_at:
                    type: string
                required:
                  - enabled
                  - welcome_message
                  - example_questions
                  - custom_instructions
                  - create_linear_issues
                  - generate_weekly_summary
                  - auto_replies_enabled
                  - drafts_enabled
                  - drafts_trigger
                  - drafts_close_the_loop_enabled
                  - drafts_custom_prompt
                  - routines_enabled
                  - routines_prompt
                  - deployed_on
                  - updated_at
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.