# Limit how long a visitor’s message can be

> Set the most characters a visitor can type or paste into one chat message, with a counter near the limit and server-side enforcement.

Source: https://www.wpbot.pro/help/chatbot-maximum-message-length/  
Section: ChatBot › Setup and display  
Updated: 2026-12-04

You can limit how many characters a visitor can type or paste into one chat message. A limit keeps messages readable, stops visitors pasting whole documents into the chat, and keeps your AI costs predictable.

## Steps

1. Open **ChatBot → Settings → Appearance**  and click **Customize ChatBot Design**  .
2. In the chat window designer, go to the **Message box**  section.
3. In **Maximum message length (characters)**  , enter the most characters one message can have. You can choose from 50 to 10,000. The default is 1,000.
4. Save your changes.

\\\\\\\[Screenshot: the Maximum message length (characters) setting\\\\\\\]

## What visitors see

- **Typing stops at the limit.**  The message box doesn't accept more characters.
- **A counter shows near the limit,**  for example "180 / 200", so visitors know how much room is left.
- **Pasted text that is too long is shortened**  to the limit, with a short notice, for example "Your message was shortened to 200 characters." You can change the notice in the [Language Center: every chatbot text, in every language](/help/chatbot-language-center/), under **Chat window hints**  .
- **The limit also applies on the server.**  Every visitor message is shortened to the limit before WPBot uses it: AI answers (including the earlier messages sent with them), search, forms, the support email, live chat and messaging channels. A message sent another way, for example straight to the chat's API, can't get around it.

## Choose a limit

- **1,000 characters**  (the default) fits a long question with some detail, about 150 to 200 words.
- **300 to 500 characters**  suits a sales or support chat where you want short questions.
- **Raise it**  if visitors need to paste error messages, order details or code into the chat.

## Check that it worked

1. Open your site in a private browser window and open the chat.
2. Paste a long text into the message box. It stops at your limit, and you see the counter and the notice.
3. Send it. The bot answers the shortened message.

## Related articles

- [Chat window and bot response options](/help/chatbot-window-and-response-options/)
- [Set AI spending limits and alerts](/help/ai-spending-limits-and-alerts/)

## Availability

In WPBot Free and every WPBot Pro edition (Starter, Professional and Master), in the same place. Coming in the next WPBot update after WPBot Pro 16.2.1.
