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

# AI Ranker

> Quickly score every row in your dataset based on your own rules—so you always know which deals, leads, or accounts to tackle first.

## What It Does

* **Custom Ranking**: Assign a rank to each row using plain-English logic—no code or SQL required
* **Optional “Why?”**: Flip on reasoning to include concise rank explanations
* **Flexible Inputs**: Rank by any column(s)—Mix and match GTM, firmographic, or behavioral data
* **Clean Output**: Returns your original table + a `RANK` column (and optional `REASON`)

***

## 🏁 Getting Started

<Frame>
  <img src="https://mintcdn.com/nurturev/OitEIaKlfl7lCKCJ/images/AI%20Ranker%20node%20configuration%20screenshot.png?fit=max&auto=format&n=OitEIaKlfl7lCKCJ&q=85&s=3bc08f848cfa36662941271d944bc159" alt="AI Ranker node configuration screenshot" style={{ borderRadius: '0.5rem', width: '100%', margin: '1.5rem 0' }} width="1172" height="1655" data-path="images/AI Ranker node configuration screenshot.png" />
</Frame>

<Steps>
  <Step title="Add the Node">
    Drag the **AI Ranker** node into your flow.
  </Step>

  <Step title="Select Columns">
    Pick the fields to use for ranking—like `@Close Date`, `@Deal Size`, or `@Engagement Score`.
  </Step>

  <Step title="Write Your Criteria">
    Define your logic in plain English (e.g. “Rank by soonest close date.”)
  </Step>

  <Step title="Enable Reasoning (Optional)">
    Turn on **Include Reasoning** to explain each rank.
  </Step>

  <Step title="Name the Output Column">
    Choose a name (default is `RANK`) to avoid naming conflicts.
  </Step>

  <Step title="Run the Node">
    Click **Run**—you’ll get `RANK` and optionally `REASON` added to each row.
  </Step>
</Steps>

***

## Inputs

### 🛠️ Required Fields

* **Columns to Rank (✅)**\
  Select the fields that drive ranking—these values get sent to the model for logic evaluation.

* **Ranking Criteria (✅)**\
  Describe your rules in plain English.\
  Example: “Rank by highest Engagement Score, then by newest Lead Source.”

### 🎯 Optional Fields

* **Include Reasoning (⚪️)**\
  Adds a second column (`REASON`) explaining why the rank was assigned.\
  *Adds 1 extra credit per row.*

* **Output Column Name (⚪️)**\
  Defaults to `RANK`. Use a custom name like `PriorityRank` to avoid name collisions.

***

## Output

* `RANK` – Numerical value based on your rules (lower = higher priority)
* `REASON` (optional) – Short explanation for each rank

<Note>
  The lower the number, the higher the priority. (1 = top-ranked)
</Note>

***

## 🚀 Use Cases & Prompts

| Use Case                | Example Prompt                                                  |
| ----------------------- | --------------------------------------------------------------- |
| Pipeline Prioritization | “Rank open opps by soonest Close Date, then highest Deal Size.” |
| Lead Scoring            | “Rank leads by engagement + firmographic fit.”                  |
| Account Segmentation    | “Rank accounts by ARR and likelihood to close this quarter.”    |
| Inventory Optimization  | “Rank SKUs by highest margin, then by age.”                     |

***

## ✨ Pro Tips

<Tip>
  Keep your **ranking criteria laser-specific**—vague logic yields noisy ranks.
</Tip>

<Tip>
  Limit to 2–3 **high-signal columns** like `@Intent Score` or `@ACV`—clearer signal = better ranks.
</Tip>

<Tip>
  Fill missing values before ranking—**blanks can skew outputs silently**.
</Tip>

<Tip>
  Use a custom output column name (`@DealRank`, `@PriorityScore`) to make downstream logic cleaner.
</Tip>

***

## ⚠️ Important Considerations

<Warning>
  **Ranking large datasets** may take longer and use more credits.
</Warning>

<Warning>
  Missing or malformed input values **can throw off the model's judgment**.
</Warning>

<Warning>
  If your rules are too broad, **many rows may get tied ranks**—tighten your logic.
</Warning>

***

## 🛠 Troubleshooting & Gotchas

| Symptom                     | Likely Cause           | Quick Fix                                            |
| --------------------------- | ---------------------- | ---------------------------------------------------- |
| All ranks are the same      | Criteria is too vague  | Add more specific thresholds or secondary conditions |
| Blank ranks                 | Nulls in input columns | Fill or filter missing values ahead of this node     |
| Flow stalls on large tables | Too many rows at once  | Pre-filter or chunk into smaller batches             |

***

## 📝 FAQ

<AccordionGroup>
  <Accordion title="Can I rank by more than one field?">
    Absolutely. Just reference them all in your criteria (e.g., “Rank by ARR and Close Date”).
  </Accordion>

  <Accordion title="Can I combine this with scoring?">
    Yes — score first with AI Scorer, then rank using that column.
  </Accordion>

  <Accordion title="What happens if multiple rows tie?">
    The model may assign the same rank. Use more precise conditions to break ties.
  </Accordion>
</AccordionGroup>

***

## 💰 Pricing

| Action         | Credits / Row |
| -------------- | ------------- |
| Rank only      | 1             |
| With Reasoning | 2             |

<Note>
  Each row you rank consumes credits. Reasoning adds +1 credit per row.
</Note>

***

<p style={{ fontSize: '1rem', fontWeight: 'bold', marginTop: '1.5rem' }}>
  Prioritize like a pro—drop AI Ranker into your flow and always know what to tackle first. 🚦📊
</p>
