Bot protection (Cloudflare Turnstile)
Stop bots from opening webchat conversations. Hay.chat checks each visitor with Cloudflare Turnstile before their first message is accepted.
What is bot protection?#
Bots can flood a website chat with fake conversations, which fills your inbox with noise. The Bot protection plugin uses Cloudflare Turnstile, a security check that tells people and bots apart, usually without asking the visitor to do anything. Hay.chat checks each visitor before their first webchat message is accepted, so a conversation is only created once the check has passed.
This is not an agent tool. It does not change what your AI agent can do. It only protects your Web Chat.
How to Set Up Bot Protection#
Bot protection is switched on automatically for new workspaces, in Invisible mode. To check it or change it:
- Go to Integrations → Marketplace in the Hay.chat dashboard
- Find Bot protection (Cloudflare Turnstile) and open it (click Connect if it is not on yet)
- Choose how strict it is under Protection:
- Invisible (recommended): checks visitors in the background and only asks for a click when Cloudflare is unsure
- Challenge everyone: shows the check to every visitor before their first message
- Off: no check
- Save
You do not need a Cloudflare account. The Site key and Secret key fields are provided by Hay.chat, so leave them as they are.
What Your Visitors See#
- In Invisible mode, most visitors see nothing. The check runs while they type their first message
- When Cloudflare is unsure, or in Challenge everyone mode, a small panel appears in the chat: "Quick security check before we send your message." The visitor completes it and their message is sent
- If the check fails, the visitor sees: "We couldn't verify your message. Please refresh the page and try again." No conversation is created
The check happens once, before the conversation starts. Visitors are not checked again on later messages.
If Cloudflare Is Unavailable#
Hay.chat never locks real customers out because Cloudflare is down or the check could not load (for example, when a browser extension blocks it). In Invisible mode the conversation goes through and is marked as unverified, and Hay.chat's spam check takes that into account. A visitor is only refused when Cloudflare rejects their check, or when every visitor must be checked and theirs did not complete.
Under-attack Mode#
When your chat is being flooded, turn on Under-attack mode in the Security tab of the Web Chat settings. For a few hours, every visitor must pass the check before their first message, whatever you chose under Protection, even Off. It also turns on by itself when an unusual number of new chats arrive at once, and switches off on its own when the time is up.
Under-attack mode needs the Bot protection plugin.