AI Prompt Guard Policy

Allow only

Configure the policy to allow messages following a specific pattern. For requests to pass through in this example, any of the user role messages in the prompt must have all card fields adhering to this standard: starts with the integer 4, then 3 integers, then 12 asterisks.

This policy would prevent accidental processing and/or subsequent model training when full card numbers are sent in.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!