Intelligent Assessment
The Intelligent Assessment control introduces an AI-powered way to define and evaluate governance policies in Guardrails. Instead of crafting complex calculated policies, you can describe the check you want in plain natural language and let Guardrails interpret and evaluate it.
In this guide, you will learn how to:
- Enable Intelligent Assessment from the AI settings.
- Set up custom user prompts and context for resource evaluation.
- Enable Intelligent Assessment for a specific S3 bucket control as an example.
Prerequisites
- Turbot/Admin permissions at the Turbot resource level.
- AI provider configured and enabled via Configure AI.
Step 1: Enable Intelligent Assessment
Navigate to Integrations > AI and select the Intelligent Assessment tab. Toggle the Enabled switch to turn on the feature.

You can optionally customize the System Prompt on this tab to control how the AI provider evaluates resources. The system prompt provides high-level instructions to the AI model. Most users can leave this at the default value.
[!NOTE] If you previously enabled all AI features using the master toggle in Configure AI, Intelligent Assessment is already enabled and you can skip this step.
Step 2: Find the Target Resource
Use Search to find the resource you want to assess. Filter by Type or search by name.
For this example, we will use an S3 bucket. Filter by type AWS > S3 > Bucket and select the bucket you want to assess.

Step 3: Add a User Prompt
The User Prompt policy tells the AI what to check on your resource. Navigate to Policies and search for AWS > S3 > Bucket > Intelligent Assessment > User Prompt.
Create a new policy setting by selecting New Policy Setting. Set the resource scope (this can be the specific resource, an account, or a folder) and enter your prompt.

Your prompt should be clear, specific, and describe the governance checks you want the AI to evaluate. Here is an example prompt for an S3 bucket:
- Confirm that logging is enabled and logs are sent to a secure location.
- Check if versioning is enabled and multi-factor delete is configured when the bucket has a tag "Environment":"Non-Compliant Tag". If it doesn't have the tag, only check if versioning is enabled.
- Ensure that the S3 bucket is not publicly accessible and all access is restricted to specific IAM roles or users.
- Verify that server-side encryption is enabled using AWS KMS for all objects in the bucket.
- Check if the bucket policy denies unencrypted uploads and enforces HTTPS-only access.
- Confirm that lifecycle rules are configured to transition objects to Glacier storage after 30 days and delete them after 365 days.
- Ensure that the bucket has a policy to block all public ACLs and public bucket policies.
- Validate that only specific IP address ranges (e.g., 10.0.0.0/8) are allowed to access the bucket.
- Check if object lock is enabled for regulatory compliance and retention.
- Confirm that the bucket has a tag "Owner" with a valid email address.
- Ensure that cross-region replication is enabled to a backup bucket in another AWS region.
- Verify that access logging is enabled and logs are sent to a dedicated logging bucket with restricted access.
[!NOTE] You can set this policy at the resource, account, or folder level. Setting it at a higher level applies the same prompt to all matching resources in that scope. For more information, see Policy Hierarchy.
Step 4: Set Up Context
The AWS > S3 > Bucket > Intelligent Assessment > Context sub-policy defines the context information (in JSON format) that Guardrails sends to the AI provider along with your user prompt. This context includes the resource's attributes and metadata needed for accurate evaluation.
By default, the context includes the resource's full attribute set, which is sufficient for most assessments. You can customize this policy to include additional context relevant to your evaluation needs.

[!TIP] The default context works well for most use cases. Only customize it if your prompts require information beyond the resource's standard attributes, such as related resources or organizational metadata.
Step 5: Set the Primary Policy to Check Mode
Navigate to Policies and search for AWS > S3 > Bucket > Intelligent Assessment. This is the primary policy that activates the assessment control.
Create a new policy setting and set the value to Check: User prompt. This tells Guardrails to run the Intelligent Assessment control using your user prompt and context.

[!NOTE] You can set this policy at the resource, account, or folder level. For more information, see Policy Hierarchy.
Step 6: Check the Control Status
After the policy is set, Guardrails runs the Intelligent Assessment control against the target resource. The AI evaluates the resource using your user prompt and context, and returns a detailed assessment.
Navigate to the resource's Controls tab to see the Intelligent Assessment control result. The control will be in an OK or Alarm state depending on whether the resource passes all the checks described in your prompt.

[!NOTE] The output is generated by the AI provider and may vary based on the model's capabilities and input details.
Next Steps
- Intelligent Fixes: Get AI-generated remediation for non-compliant resources.
- Policy Pack Summary: Generate AI summaries of your policy packs.
- Configure Guardrails MCP Server: Connect Guardrails to your AI development workflow.
Troubleshooting
| Issue | Description | Resolution |
|---|---|---|
Control stays in Skip | The primary Intelligent Assessment policy is not set, or is set to Skip. | Create a policy setting for the Intelligent Assessment policy with value Check: User prompt. |
Control in Error | The AI provider returned an error, or the user prompt/context is invalid. | Check that AI is configured correctly in Integrations > AI. Verify the user prompt is well-formed. |
| Unexpected assessment results | The AI interpretation may not match your intent. | Refine your user prompt to be more specific. Use concrete, measurable criteria. |
| Further assistance | If issues persist, please open a support ticket with relevant details. | Open Support Ticket |