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

> Change a chatbot's settings. Send only the fields you want to change.

**id** `string` *required*

The chatbot's `id`, not its `widgetId`.

**name** `string`

Up to 100 characters.

**websiteUrl** `string`

The site the widget loads on, with `https://`. Changing it moves the widget to the new domain.

**welcomeMessage** `string`

Up to 500 characters.

**primaryColor** `string`

A hex code such as `#224CFF`.

**quickPrompts** `string[] | null`

Replaces all suggested questions. `null` removes them.

**rateLimitMaxMessages** `integer | null`

Maximum visitor messages per conversation; `null` for no limit. Growth plan and above.

**rateLimitMessagesPerMinute** `integer | null`

Maximum messages per minute in one conversation; `null` for no limit. Growth plan and above.

**webhookUrl** `string | null`

Where [webhooks](https://customergpt.ai/docs/developers/webhooks.md) are sent; `null` turns them off. Scale plan and above.

**webhookSecret** `string | null`

The signing secret, up to 255 characters. It's never returned. Scale plan and above.

**calendarLink** `string | null`

A Cal.com booking link; `null` removes it.

**salesConfig** `object | null`

Partial [Sales Automation](https://customergpt.ai/docs/leads/collect-leads.md) settings, merged into the current ones. Set `enabled` to turn it on or off. `null` restores the defaults.

Returns 200 with the updated chatbot. Returns 400 for invalid input or a setting your plan doesn't include, and 404 if the chatbot isn't in your workspace.

## 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 PATCH https://api.customergpt.ai/api/v1/chatbots/e8503caf-9761-4a69-a3bf-b677718d19cf \
  -H "X-Api-Key: $CUSTOMERGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"welcomeMessage": "Hi! Ask me anything about Acme.", "quickPrompts": ["Pricing", "Shipping"]}'
```

```json 200 theme={null}
{
  "id": "e8503caf-9761-4a69-a3bf-b677718d19cf",
  "name": "Acme Support",
  "websiteUrl": "https://acme.com",
  "widgetId": "YOUR_WIDGET_ID",
  "welcomeMessage": "Hi! Ask me anything about Acme.",
  "primaryColor": "#224CFF",
  "quickPrompts": ["Pricing", "Shipping"],
  "rateLimitMaxMessages": null,
  "rateLimitMessagesPerMinute": null,
  "webhookUrl": null,
  "calendarLink": null,
  "salesConfig": { "enabled": true, "bookingEnabled": true, "handoffKeywords": ["human agent", "custom contract"] },
  "createdAt": "2026-10-11T09:20:00.000Z"
}
```


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