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

# Create chatbot

> Create a new chatbot using a template or from scratch.

## Request parameters

### Body

**name** `string` *required*

The chatbot name.

**template\_id** `integer`

The ID of the chatbot template to use. You can get the list of available templates using the [List chatbot templates](https://docs.chatling.ai/api-reference/v2/chatbots/list-chatbot-templates.md) endpoint.

Leave blank to create a chatbot from scratch.

## Response

**status** `string`

The status of the request. Will be `success` if the request was successful, otherwise `error`.

**data** `object`

**properties**

**id** `integer`

The unique identifier of the chatbot.

**name** `string`

The name of the chatbot.

**version** `string`

The version of the chatbot.

**visibility** `string`

The visibility of the chatbot.

**created\_at** `string`

The date and time when the chatbot was created.

```json theme={null}
{
    "status": "success",
    "data": {
        "id": "9761342719",
        "name": "My chatbot",
        "version": "2.0",
        "visibility": "public",
        "created_at": "2024-06-17T12:00:00+00:00"
    }
}
```


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