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

# Update chatbot

> Update name, greeting, color, website, conversation starters (quickPrompts; [] clears them), the Cal.com booking link (calendarLink; null disconnects it) and behaviour (salesConfig: a partial patch merged into the current settings, null restores defaults). salesConfig.instructions steer the assistant only while salesConfig.enabled is true.



## OpenAPI

````yaml /api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_update
openapi: 3.1.0
info:
  title: CustomerGPT Agent API
  version: 1.0.0
servers:
  - url: https://api.customergpt.ai
security: []
tags:
  - name: Chatbots
  - name: Knowledge
  - name: Custom responses
  - name: Conversations
  - name: Analytics and account
  - name: API keys and team
  - name: Onboarding
paths:
  /api/v1/agents/actions/chatbots_update:
    post:
      tags:
        - Chatbots
      summary: Update chatbot
      description: >-
        Update name, greeting, color, website, conversation starters
        (quickPrompts; [] clears them), the Cal.com booking link (calendarLink;
        null disconnects it) and behaviour (salesConfig: a partial patch merged
        into the current settings, null restores defaults).
        salesConfig.instructions steer the assistant only while
        salesConfig.enabled is true.
      operationId: chatbots_update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                chatbotId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                websiteUrl:
                  type: string
                  maxLength: 2048
                  format: uri
                welcomeMessage:
                  type: string
                  maxLength: 500
                primaryColor:
                  type: string
                  pattern: ^#[0-9a-fA-F]{6}$
                quickPrompts:
                  maxItems: 10
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 200
                calendarLink:
                  anyOf:
                    - type: string
                      maxLength: 2048
                      format: uri
                    - type: 'null'
                salesConfig:
                  anyOf:
                    - type: object
                      properties:
                        enabled:
                          type: boolean
                        instructions:
                          type: string
                          maxLength: 6000
                        qualificationFields:
                          maxItems: 12
                          type: array
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                                pattern: ^[a-z][a-z0-9_]{0,39}$
                              label:
                                type: string
                                minLength: 1
                                maxLength: 200
                              required:
                                type: boolean
                            required:
                              - key
                              - label
                              - required
                            additionalProperties: false
                        bookingEnabled:
                          type: boolean
                        checkoutUrl:
                          anyOf:
                            - type: string
                              const: ''
                            - type: string
                              maxLength: 2048
                              format: uri
                        handoffKeywords:
                          maxItems: 30
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 80
                        hubspotEnabled:
                          type: boolean
                        proactive:
                          type: object
                          properties:
                            enabled:
                              type: boolean
                            pathPrefix:
                              type: string
                              maxLength: 300
                              pattern: ^\/.*
                            delaySeconds:
                              type: integer
                              minimum: 5
                              maximum: 600
                            message:
                              type: string
                              maxLength: 500
                          additionalProperties: false
                      additionalProperties: false
                    - type: 'null'
                dryRun:
                  default: false
                  type: boolean
                confirm:
                  default: false
                  type: boolean
              required:
                - chatbotId
              additionalProperties: false
      responses:
        '200':
          description: Result in {ok:true,data:...}
        '400':
          description: Invalid arguments
        '401':
          description: Authentication required
        '403':
          description: Confirmation required
      security:
        - apiKey: []
        - oauth:
            - agents:write
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.customergpt.ai/authorize
          tokenUrl: https://api.customergpt.ai/token
          scopes:
            agents:read: Read workspace data
            agents:write: Change workspace data

````

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