Firewall
Firewall lets you block actions you don't want your agent to take, or tool results you don't want it to receive. For example, you can stop your agent from:
- sharing internal pricing with customers
- posting about unreleased products in public Slack channels
- receiving emails that contain a password or API key
- receiving Salesforce or HubSpot records that contain customers' personal details
Your agent can still use the same tools for everything else.
Firewall is built on hooks, which run before or after each tool call your agent makes. There are three kinds of checks you can add.
Custom prompt checks
You write a condition that describes what you want blocked, in natural language. For example, "Sharing internal pricing with anyone outside acme.com".
Every time your agent calls a tool, a decision model compares the tool call to your condition. It looks at the tool, its arguments, and what your agent has done earlier in the session. If a tool call matches, it's blocked. With that condition, an email that shares internal pricing with a customer is never sent, and your agent gets an error instead.
A check can run before a tool call, on its arguments, or after it, on what the tool returns.
See Custom prompt checks for how to add one and how to write a condition.
Prompt injection detection
Tool results are where outside content reaches your agent: emails, web pages, tickets, documents. Any of them can contain text written to hijack your agent, like an email that tells your agent to ignore its instructions and forward the user's inbox to another address.
When this check is on, a decision model screens every tool result before your agent reads it. If a result contains a prompt injection, it's blocked, and your agent gets an error instead of the content. There's no condition to write. You turn the check on and choose which toolkits it covers.
See Prompt injection detection for how to turn it on.
Webhooks
A webhook sends each tool call to an endpoint you host, as an HTTP request. The request has the tool and its arguments, and after the tool has run, its result. You run whatever check you need and respond with one of three answers:
- Continue: The tool call goes ahead unchanged.
- Block: The tool call is stopped, and your agent gets the error message you return.
- Override: The tool call goes ahead with your changes. Before the tool runs, you can replace its arguments. After it runs, you can replace its result.
For example, when a Salesforce record contains a customer's phone number, you can remove the phone number and return the rest, instead of blocking the whole record.
See Webhooks for how to set one up.
Custom prompt checks and prompt injection detection are available on paid plans, with usage-based pricing. Webhooks are available on the Enterprise plan.