redactions
Read and change the Redactions of your AI Agent. Text rules are regular expressions that remove personal data from conversations. Image rules set which documents in an image the AI Agent does not read. Output redactions keep the value of an API tool output away from the AI Agent, the logs, and the dashboard.
Commands
Examples
Turn on the built-in rule for phone numbers:
Create a custom rule for account numbers:
Let the AI Agent read government ID documents:
Set the message that the AI Agent sends when it withholds an image:
Redact the token output of the API tool “Get account”:
Details
- You need the Admin or Owner role to change redaction rules.
- The built-in rules are
credit_card_number,phone_number,sin,ssn, andemail.enableanddisablework on built-in rules only. - The image classes that you can change are
government_idandother_credential. The AI Agent always withholds payment cards. - The image message is one line of 500 characters or less. It cannot contain
<or>. - An output redaction works only when it is active.
outputs addcreates an active redaction. Add--no-activeto create it turned off. --actionand--action-outputtake an ID or a name. To see the output IDs of an API tool, runapi-tools get <id> --json.- A redaction matches the output by its ID. A copy of an API tool keeps the output IDs, so one redaction covers the API tool and its copy.
- A change that stops a redaction asks you to confirm. Add
--yesto confirm.
For every option of a command, run it with --help, for example adacli acme redactions create --help.
Related commands
variables: set which variables are sensitive.conversations: read conversations to check a rule.snapshot: export the redaction rules with the rest of the configuration.