# Handoff and spam protection

> Let customers ask for a person, offer one when the AI is unsure, and limit messages and pause spam so abuse never burns your credits.

This page covers the settings that decide when a chat moves to a person and how you protect your widget from abuse. You can offer a human, ask the AI to offer one when it is unsure, cap messages per visitor and pause spam automatically.

Limits and spam checks apply per agent. They protect your message credits, and a reply blocked by a limit does not use any.

## Before you start

- Talking to a person needs live chat, which is on the Growth plan and up. 
- You need to be an admin or owner of the workspace to change these settings.

## Steps

#### New dashboard

1. Open **Behaviour** under **Your agent**, then **Handoff and spam protection**.
2. Under **A person takes over**, switch on **Customers can ask for a person**, edit the **Button text**, and use **Set office hours**.
3. Under **Limits**, set **Messages per visitor** and **Pause spam automatically**.

#### Previous dashboard

1. For handoff, open **Channels** › **Web widget** and switch on **Let visitors talk to a human**. Then set office hours in the **Help Desk**.
2. For limits and spam, open **Settings** › **Security** and find **Chat guardrails**.
3. Click **Save guardrails**.

## A person takes over

When live chat is on, visitors see a button (default **Talk to a human**) after the first exchange. The AI can also hand a chat over itself when a customer asks for a person or has a problem it cannot solve. The chat moves to your Inbox with the full history. How it works end to end is in [Hand off to a person](/actions/hand-off-to-a-person/).

Outside your office hours, a customer who asks for a person is told when your team is back. Office hours are in [office hours](/inbox/office-hours/).

Two related switches live on the same page:

- **Ask for contact details when they show buying interest** asks for a name and email when a visitor talks about pricing, a demo or booking, and saves a lead. See [collect leads](/actions/collect-leads/).
- **Require an email before the chat starts** makes every conversation carry an email, but some visitors leave instead.

## Offer a person when the AI is unsure

When AskVault is not sure of an answer (not a plain "I don't know"), the widget adds one line under it: "I'm not fully sure, want me to check with a human?" with **Ask a human** and **No thanks**. It shows only where a visitor can already ask for a person, and the score itself is never shown to the visitor.

## Visitor limits

### Messages per visitor

Limit how many messages one visitor can send in a window, for example 5 messages every 30 seconds.

- **Messages**: 1 to 1,000.
- **Window**: 1 second to 24 hours (the previous dashboard counts in seconds, 1 to 86,400).
- **Message when the limit is reached**: up to 500 characters. The visitor sees exactly this text as a normal reply, and that turn uses no credits.

The window is counted per visitor device, so one abusive visitor cannot lock out everyone else.

**Which channels the limits cover.** Today the message limit and the spam check run on your website chat and your hosted chat page. We are rolling them out to every other channel: email, the API, WhatsApp, Telegram, SMS, Slack, Discord, Messenger and Instagram. Once that is on for your agent, the **Chat guardrails** card in **Settings** › **Security** says so. There the window is counted per sender (a phone number, a chat, an email address, or an API end user), a sender over the limit gets your limit message, an email sender gets no reply, and an API call gets HTTP 429 with your message and a `Retry-After` header. Phone calls are not limited, because cutting a caller off mid-call is worse than the abuse it stops.

**Blocked countries need to know the country.** Blocking by country only works when a request carries the visitor's country, which AskVault's servers do not receive today. It never applies to email, the API or messaging channels.

### Pause spam automatically

Describe, in up to 2,000 characters, what counts as spam for your agent, for example "crypto promotions, link dumps, repeated nonsense". AskVault checks after a visitor's 2nd, 4th, 8th and 16th message, not on every turn. When a conversation is judged to be spam, the AI is paused for that conversation, the visitor is told, and the chat stays in your Inbox so you can still reply by hand.

If the check cannot run for any reason, the conversation is allowed through. We would rather serve a spammer than silence a real customer.

## Check it worked

- Send more messages than your limit from the widget on your site and confirm you see your limit message.
- Click the handoff button and check the chat appears in the Inbox.

## If it doesn't work

**The handoff button does not show.** Live chat is off, or your plan does not include it. The switch names the plan you need.

**A real customer was paused as spam.** Open the chat in the Inbox, reply by hand, and tighten the spam description.

## What these settings are not

They reduce nuisance traffic and runaway credit spend. They are not a security boundary. To control where the widget can load, restrict its allowed domains in the widget settings.

## Related

- [Your agent](/agent/)
- [Hand off to a person](/actions/hand-off-to-a-person/)
- [Assign chats to your team](/inbox/assignment/)

Source: https://docs.askvault.co/agent/handoff-and-spam/
