Policies
Custom policy
Build your own custom policy by writing a prompt.
Creating a Custom Policy
To create a custom policy:
- Log into your Aporia Guardrails account.
- Select your project and click on the Policies tab.
- Click Add policy.
- Select Custom policy and click Add.
- Back in the policies list, click Setup config next to the new custom policy.
You should now see the policy configuration page:
- Under Instructions write a prompt to evaluate the behaviour you’d like to allow or block. For example:
Do not allow financial advice. This includes investments, savings, loans, tax planning, and retirement planning.
- Choose the action you’d like be taken when a risk is detected. For example, in the case of financial advice, you can add a warning such as:
This information is provided for general informational purposes only and should not be considered as financial advice.
-
Test your policy in the sandbox chatbot.
-
Click Save changes.