---
title: cf.llm.prompt.pii_detected · Cloudflare Ruleset Engine docs
description: Indicates whether any personally identifiable information (PII) has
  been detected in the LLM prompt included in the request.
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.pii_detected/
  md: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.pii_detected/index.md
---

# cf.llm.prompt.pii\_detected

`cf.llm.prompt.pii_detected` Boolean

Indicates whether any personally identifiable information (PII) has been detected in the LLM prompt included in the request.

Equivalent to checking if the [`cf.llm.prompt.pii_categories`](https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.pii_categories/) field is not empty.

Requires a Cloudflare Enterprise plan. You must also enable [Firewall for AI](https://developers.cloudflare.com/waf/detections/firewall-for-ai/).

Categories:

* Request
