Controlling where your AI agent appears
Put an AI agent on a public website and it is open to anyone who can load the page, and to anyone who works out how to call it without the page. That is fine, as long as you choose the boundaries instead of discovering them. These are the controls that matter, what each one really does, and how to set them for a launch.
An agent embedded in a website is a small public service. It takes text from strangers, every answer costs something, and it speaks in your name. Most of the time that goes exactly as intended. The few times it does not are the ones worth preparing for, and the preparation is a handful of settings you can finish in an afternoon.
Everything below lives on your agent’s Guardrails page, apart from one field on the Instructions page. Before you start, it helps to ask four questions: who may use the agent at all, which sites may load it, how fast may one person talk to it, and what happens when a conversation turns bad.
Decide who can use it at all
Visibility is the broadest switch. A private agent can only be used from inside your dashboard, which makes it the right state while you are still building. You can test in the Playground, tune the instructions and add sources without anyone outside being able to reach it. Switch it to public when you are ready to publish, and not before.
It doubles as an emergency stop. If something goes wrong after launch, setting the agent back to private makes it unavailable everywhere at once, without touching the widget on your pages or any of your content.
Allow only the sites you own
The allowed domains list names the websites that may load your agent. Add example.com and the agent loads there and on its subdomains, such as help.example.com. Anywhere else, it is refused. Leave the list empty and the agent loads on any site, which is the right setting for a quick experiment and rarely the right one for production.
Two details are worth knowing. Localhost is always allowed, so you can develop on your own machine without adding anything. And the list guards against browsers, not against everything: it stops someone copying your embed code onto their own page, but a request sent by a script with no site information attached is not turned away by it. That is why it works alongside the limits below, never instead of them.
A habit that pays off is to review the list whenever you launch a new landing page, a new product site or a new environment, and to remove domains you no longer use. If your plan allows more than one agent, consider keeping a separate one for staging, so your production list never needs a test address on it.
Rate limits that feel fair
The rate limit caps how many messages one device can send through the chat bubble and the embedded frame. It applies to your visitors on your website, not to you in the dashboard, so you can keep testing without tripping it.
The aim is to be generous enough that no real conversation ever meets the limit and firm enough that a script cannot flood you. Real people type, read, think and type again, so even an eager customer rarely sends more than a message every few seconds. Anything much faster is not a conversation.
You also choose the message people see when they reach the limit, and it is worth a minute of thought. “You’re sending messages very quickly. Please wait a moment and try again” treats the rare real person who trips it like a person. A cold error does not.
Separately from your own limit, your plan caps how many requests the whole workspace can make each second and each minute, and how many can be answered at the same moment. When one of those is reached, visitors are asked to try again shortly. If you expect a launch or a campaign to bring a burst of traffic, check your plan’s limits beforehand, not in the middle of it.
Security should not slow down a good conversation. It should only get in the way of a bad one.
Words you never want answered by the AI
The blocklist is a list of words and phrases. When a message contains one, the visitor gets a reply you wrote in advance and the AI is not asked at all, so it uses none of your plan’s usage and cannot say the wrong thing. It suits cases where you want a fixed, careful answer: abuse, threats, requests for things your business does not do, or legal topics you would rather a person handled.
Keep the list short and specific. A long list of common words will block ordinary conversations and frustrate people for no reason.
Let spam detection watch the conversation
Spam detection reviews a conversation as it goes, after the second, fourth, eighth and sixteenth message, and pauses it if it looks like spam. You describe what spam means for your agent in your own words, because a support agent for a software product has a different idea of junk than a booking assistant for a salon. The more concrete the description, the better the judgement.
A paused conversation is not deleted. It stays in your conversations list, where you can read it and resume it if the check got it wrong.
Add rules in plain language
Alongside the switches there is a field for guardrail instructions on the Instructions page. Whatever you write there is added to the agent’s instructions as rules it must always follow: topics to decline, claims it must never make, when to hand over to a person. Write them as short, direct sentences, such as “Never give legal or medical advice. Offer to connect the customer with our team instead”, and then test each one by trying to break it.
A launch checklist
Before you publish, work through this once. Set the agent to public. Add your production domains and nothing else. Set a rate limit and write a friendly message for it. Add a few blocklist entries if there are topics you never want the AI to handle. Turn on spam detection and describe what spam looks like for you. Then open your site in a private window, have a real conversation, and try to break it: paste a long block of nonsense, send a dozen messages quickly, ask something far off topic.
Come back after the first week and read the conversations. Settings that felt right in theory often need a nudge once real people have used them, and the conversations will tell you which way.