---
title: cf.llm.prompt.unsafe_topic_detected · Cloudflare Ruleset Engine docs
description: Indicates whether the incoming request includes any unsafe topic
  category in the LLM prompt.
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.unsafe_topic_detected/
  md: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.unsafe_topic_detected/index.md
---

# cf.llm.prompt.unsafe\_topic\_detected

`cf.llm.prompt.unsafe_topic_detected` Boolean

Indicates whether the incoming request includes any unsafe topic category in the LLM prompt.

Equivalent to checking if the [`cf.llm.prompt.unsafe_topic_categories`](https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.unsafe_topic_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
