Limit how long a visitor’s message can be
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
- Open ChatBot → Settings → Appearance and click Customize ChatBot Design .
- In the chat window designer, go to the Message box section.
- 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.
- 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, 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
- Open your site in a private browser window and open the chat.
- Paste a long text into the message box. It stops at your limit, and you see the counter and the notice.
- Send it. The bot answers the shortened message.
Related articles
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.
Was this article helpful?
Sorry about that. Get help another way:

