> ## Documentation Index
> Fetch the complete documentation index at: https://docs.permutive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Contextual Cohorts

> How to build audience segments based on page content in Permutive

## Overview

This guide walks you through creating a Contextual Cohort in the Permutive Dashboard. Contextual Cohorts enable you to target ads based on page content without processing user data.

<Info>
  **Prerequisites:**

  * Access to the Permutive Dashboard with cohort creation permissions
  * Contextual Cohorts enabled in your account
  * For Affinity Cohorts: Custom Cohorts created with sufficient consented user engagement data
  * Contextual API implemented on your website OR Permutive SDK deployed (the SDK can segment contextual cohorts automatically without direct API implementation)
</Info>

## Steps

<Steps>
  <Step title="Navigate to Contextual">
    In the Permutive Dashboard, go to *Contextual* and click *+ Add Cohort*.
  </Step>

  <Step title="Name your cohort">
    Give your cohort a descriptive name and optional description.
  </Step>

  <Step title="Select a predicate type">
    Choose from:

    * **Content Classifications**: Use NLP-generated classifications
    * **Page Properties**: Use editorial tags or custom metadata
    * **Affinity Cohort**: Target content with high engagement from a specific Custom Cohort
    * **Keyword Explorer**: Get AI-powered keyword recommendations for interest-based targeting
  </Step>

  <Step title="Configure your targeting rules">
    Based on the predicate type (see sections below for detailed instructions).
  </Step>

  <Step title="Add additional conditions">
    Use *+AND* or *+OR* to add additional conditions and build complex logic.
  </Step>

  <Step title="Preview reach">
    Preview the estimated pageview reach (if available).
  </Step>

  <Step title="Save">
    Click *Save* to create the cohort.
  </Step>
</Steps>

<Tip>
  **Tip**: While detailed names and descriptions are optional, providing clear, descriptive names and detailed descriptions will enhance your experience when using Permutive's AI products. AI-powered features can better understand and recommend cohorts when they have meaningful context about their purpose and targeting logic.
</Tip>

## Predicate Types

<Expandable title="Using Content Classifications">
  Content Classifications allow you to target based on automated NLP analysis of your content.

  To use Content Classifications in a cohort:

  1. Select *Content Classifications* as your predicate type
  2. Select a **Dimension Type**:
     * **Categories**: Topic classifications (requires taxonomy selection)
     * **Concepts**: Key themes
     * **Entities**: Named entities
     * **Keywords**: Important terms
     * **Sentiment**: Emotional tone
     * **Emotion**: Specific emotions
  3. For **Categories**, select the **Taxonomy** (e.g., IAB 2.0, IAB 3.0, BVDW)
  4. Choose an **Operator** (e.g., "is", "contains")
  5. Enter or select your target **Value**

  <img alt="Using content classifications" classname="block" src="https://mintcdn.com/permutive/oi2rduLeCSwC7cBO/images/products/signals/cohorts/contextual/content-classifications.png?fit=max&auto=format&n=oi2rduLeCSwC7cBO&q=85&s=dd0344a06fb6f2110a7a7fc1ae9f95db" width="1680" height="562" data-path="images/products/signals/cohorts/contextual/content-classifications.png" />

  **Example**: Target positive soccer content:

  * Dimension: Sentiment
  * Operator: is
  * Value: positive
  * AND Category (IAB 2.0): Sports > Soccer
</Expandable>

<Expandable title="Using Page Properties">
  Page Properties allow you to target based on editorial metadata and custom content attributes.

  To use Page Properties in a cohort:

  1. Select *Page Properties* as your predicate type
  2. Choose a property from the dropdown (e.g., `client.section`, `client.author`, custom properties)
  3. Select an operator (e.g., "is", "contains", "is not")
  4. Enter the target value

  <img alt="Using page properties" classname="block" src="https://mintcdn.com/permutive/oi2rduLeCSwC7cBO/images/products/signals/cohorts/contextual/page-properties.png?fit=max&auto=format&n=oi2rduLeCSwC7cBO&q=85&s=2aab050658051374f5be9fadf5864462" width="1500" height="328" data-path="images/products/signals/cohorts/contextual/page-properties.png" />

  **Example**: Target articles in the "Finance" section with a specific tag:

  * Property: `client.section`
  * Operator: is
  * Value: Finance
  * AND Property: `client.tags`
  * Operator: contains
  * Value: investment

  <Note>
    **Available Page Properties**

    The Page Properties dropdown includes custom Pageview properties you've defined and standard client properties. If you are implementing the Contextual API directly, you must pass these properties to the API for them to be available for targeting. If the SDK is making the call, it will automatically attach page properties.

    Note that enriched properties like ISP and Geo data are not available in Page Properties for Contextual Cohorts.
  </Note>
</Expandable>

<Expandable title="Using Affinity Cohorts">
  Affinity Cohorts enable you to target content that shows high engagement from a specific Custom Cohort.

  To use Affinity Cohorts:

  1. Select *Affinity Cohort* as your predicate type
  2. Choose a **Custom Cohort** from the dropdown
  3. Select an **Operator** (e.g., "is greater than")
  4. Set an **Affinity Score threshold**

  <img alt="Using affinity cohorts" classname="block" src="https://mintcdn.com/permutive/oi2rduLeCSwC7cBO/images/products/signals/cohorts/contextual/affinity-cohorts.png?fit=max&auto=format&n=oi2rduLeCSwC7cBO&q=85&s=54abeb8030e6eaa25b5f8e70c976aa2e" width="1245" height="251" data-path="images/products/signals/cohorts/contextual/affinity-cohorts.png" />

  **Example**: Target content with 2x or greater engagement from "Sports Enthusiasts":

  * Custom Cohort: Sports Enthusiasts
  * Operator: is greater than
  * Value: 200

  <Note>
    **Affinity Cohort Restrictions**

    You can select any Custom Cohort built from first-party behavioral data. However, you **cannot** select:

    * Modeled cohorts
    * Standard cohorts
    * Cohorts using third-party data

    **Recommended Starting Threshold**: We generally recommend starting with an affinity score threshold greater than 200 for a good balance of relevance and scale.
  </Note>
</Expandable>

## Combining Multiple Conditions

Contextual Cohorts support complex logic by combining multiple predicates:

* Use *+AND* to require all conditions to be met
* Use *+OR* to create alternative paths for targeting

**Example**: Target finance content OR content with high affinity to investors:

* Content Classification: Categories (IAB 2.0) is "Finance"
* OR Affinity Cohort: Investor Cohort is greater than 150

**Example**: Target positive sports articles about soccer:

* Content Classification: Categories (IAB 2.0) is "Sports > Soccer"
* AND Content Classification: Sentiment is "positive"
* AND Page Properties: client.section is "Sports"

## Next Steps

<CardGroup cols={2}>
  <Card title="Using Keyword Explorer" icon="wand-magic-sparkles" href="/guides/signals/cohorts/contextual/using-keyword-explorer">
    Get AI-powered keyword recommendations
  </Card>

  <Card title="Back to Contextual Cohorts" icon="arrow-left" href="/products/signals/cohorts/contextual">
    Return to product overview
  </Card>
</CardGroup>
