> ## 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.

# Create chatbot

> Create a chatbot. Add a source separately to train it.



## OpenAPI

````yaml /api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_create
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_create:
    post:
      tags:
        - Chatbots
      summary: Create chatbot
      description: Create a chatbot. Add a source separately to train it.
      operationId: chatbots_create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                websiteUrl:
                  type: string
                  maxLength: 2048
                  format: uri
                dryRun:
                  default: false
                  type: boolean
                confirm:
                  default: false
                  type: boolean
              required:
                - name
                - websiteUrl
              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.