Topic policies don’t flag content as harmful — they flag it as off-topic for products that explicitly want to keep certain subjects out of their community. Pair them with the recommendation action of your choice (typically review rather than reject).
Policies
id | Type | Supported | What it does |
|---|
political | classifier | text, audio | Political content, discussions, or opinions. |
religion | classifier | text, audio | Religious content, discussions, or opinions. |
Reading the result
const political = response.policies.find(p => p.id === "political");
if (political?.flagged) {
await sendToReview(content);
}
These categories are intentionally broad. They’re best used in environments with a clear scope — a cooking community, a developer forum, a customer support channel — where any political or religious tangent is off-topic regardless of tone.
See Understanding API responses for the full response shape.