> ## 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 a chatbot

> Create a chatbot. It knows nothing until you add a source to train it.

**name** `string` *required*

The name visitors see in the chat window. Up to 100 characters.

**websiteUrl** `string` *required*

The site the widget will load on, with `https://`. The widget works on this domain and its subdomains only.

**welcomeMessage** `string`

The first message in the chat. Up to 500 characters.

**primaryColor** `string`

The widget's main color, as a hex code such as `#224CFF`.

**quickPrompts** `string[]`

Suggested questions shown before the first message.

Returns 201 with the new chatbot. Returns 400 if the input is invalid, or if your plan's chatbot limit is reached.

To train the chatbot, add a source with the [`sources_add`](https://customergpt.ai/docs/api-reference/knowledge/add-knowledge-source) action, the [CLI](https://customergpt.ai/docs/cli/overview.md), or the dashboard.

## Response

**id** `string`

The chatbot's ID (UUID). Use it in API calls.

**name** `string`

The name visitors see in the chat window.

**websiteUrl** `string`

The site the widget is allowed to load on, together with its subdomains.

**widgetId** `string`

The public ID used in the embed code. It isn't secret and isn't the chatbot's `id`.

**welcomeMessage** `string`

The first message in the chat.

**primaryColor** `string`

The widget's main color, as a hex code.

**quickPrompts** `string[]`

Suggested questions shown before the first message.

**rateLimitMaxMessages** `integer | null`

Maximum visitor messages per conversation, or `null` for no limit.

**rateLimitMessagesPerMinute** `integer | null`

Maximum messages per minute in one conversation, or `null` for no limit.

**webhookUrl** `string | null`

Where [webhooks](https://customergpt.ai/docs/developers/webhooks.md) are sent. The signing secret is never returned.

**calendarLink** `string | null`

The Cal.com booking link the chatbot offers, or `null`.

**salesConfig** `object`

[Sales Automation](https://customergpt.ai/docs/leads/collect-leads.md) settings: `enabled`, `instructions`, `qualificationFields`, `bookingEnabled`, `checkoutUrl`, `hubspotEnabled`, `handoffKeywords`, and `proactive`.

**createdAt** `string`

When the chatbot was created, in ISO 8601.

```bash cURL theme={null}
curl -X POST https://api.customergpt.ai/api/v1/chatbots \
  -H "X-Api-Key: $CUSTOMERGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Support", "websiteUrl": "https://acme.com"}'
```

```json 201 theme={null}
{
  "id": "e8503caf-9761-4a69-a3bf-b677718d19cf",
  "name": "Acme Support",
  "websiteUrl": "https://acme.com",
  "widgetId": "YOUR_WIDGET_ID",
  "welcomeMessage": "👋 Hi! How can I help you today?",
  "primaryColor": "#224CFF",
  "quickPrompts": [],
  "rateLimitMaxMessages": null,
  "rateLimitMessagesPerMinute": null,
  "webhookUrl": null,
  "calendarLink": null,
  "salesConfig": { "enabled": true, "bookingEnabled": true, "handoffKeywords": ["human agent", "custom contract"] },
  "createdAt": "2026-10-12T08:00:00.000Z"
}
```


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