---
title: "Create bot with AI"
method: POST
path: "/bot/ai"
tags: ["Bot"]
---

# Create bot with AI

`POST /bot/ai`

## Request body

- AiCreateBotInput
  - `name` string, nullable — The name of the new bot
  - `description` string, nullable — The prompt to use to create the new bot
  - `category` string, nullable — The source category of the new bot (GHL, WebHook, etc.)
  - `folderId` string, nullable — The folder/group to place the newly created bot

## Response `200`

Success

- BotDto
  - `id` string, nullable
  - `name` string, nullable
  - `modifiedAt` string, nullable
  - `modifiedBy` string, nullable
  - `versions` BotVersionDto[], nullable
    - `version` string, nullable
    - `name` string, nullable
    - `published` boolean
    - `modifiedAt` string, date-time
    - `modifiedBy` string, nullable
  - `sources` BotSourceDto[], nullable
    - `id` string, nullable
    - `category` string, nullable
    - `key` string, nullable
    - `name` string, nullable
    - `tags` ContactTag[], nullable
      - `name` string, nullable
      - `approveDeny` boolean
      - `id` string, nullable
    - `tagFilterConfig` TagFilterConfig
      - `operator` string, nullable
      - `groups` TagFilterGroup[], nullable
        - `operator` string, nullable
        - `rules` TagFilterRule[], nullable
          - `tagName` string, nullable
          - `tagId` string, nullable
          - `condition` string, nullable
    - `channelList` string[], nullable
    - `personaNameOverride` string, nullable
    - `enabled` boolean
    - `flowVariableValues` object, nullable
  - `personaIds` string[], nullable
  - `favorited` boolean
  - `locked` boolean
  - `reschedulingEnabled` boolean
  - `category` string, nullable
  - `folderId` string, nullable
  - `followUpActive` boolean
  - `followUpSequences` FollowUpSequenceDto[], nullable
    - `order` integer
    - `duration` integer
    - `unit` string, nullable
  - `smartFollowUp` boolean
  - `followUpRepeat` boolean
  - `followUpVarianceMinutes` integer
  - `followUpExtraPrompt` string, nullable
  - `tools` BotToolDto[], nullable
    - `id` string, nullable
    - `type` string, nullable
    - `enabled` boolean
    - `options` BotToolOptions
  - `followUpStates` FollowUpStateDto[], nullable
    - `id` integer
    - `name` string, nullable
    - `isDefault` boolean
    - `sequences` FollowUpSequenceDto[], nullable
      - `order` integer
      - `duration` integer
      - `unit` string, nullable
    - `repeatFinal` boolean
    - `extraPrompt` string, nullable
    - `order` integer

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
