---
sourceDocument: Australia Finance and Supply Chain
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/source-to-pay-operations

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Finance and Supply Chain

ft:clusterId :

    - stpop

bundleId :

    - stpop

workflow :

    - Creator


---

# Automatically assign categories during SR and PR creation

# Automatically assign categories during SR and PR creation {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 min. de leitura

AI-driven category prediction automatically assigns product and spend categories when service requests, purchase requisitions, or purchase orders are created or updated, ensuring consistent classification at the line level.

## Key benefits

When working with service requests (SRs), purchase requisitions (PRs), purchase orders (POs), or invoices, you must classify line-level items into product and spend categories. The Spend categorization agent enables this process by
generating and validating AI-driven predictions for line-level items. The Product category and Spend category fields are updated only when they are empty. This process ensures accurate
reporting, consistent procurement processes, and efficient downstream automation while reducing manual effort.

View the Spend categorization agent by navigating to AllAI Agent StudioCreate and manageSpend categorization agent.

## Classification solutions used for predictions

For predicting product category on PRs and SRs, the following classification solutions have been added:

* Product Category Classification For PRL
* Product Category Classification For POL

Classification solutions identify the most appropriate Product Category using product related information.

You can access the classification definitions by navigating to AllPredictive IntelligenceClassificationSolution Definitions.

## Similarity solutions used for predictions

For predicting spend category on PRs and SRs, the following similarity solutions have been added:

* Spend Category by PRL
* Spend Category by POL

Similarity solutions compare line item details with previously categorized data to suggest the best Spend Category.

You can access the similarity definitions by navigating to AllPredictive IntelligenceSimilaritySolution Definitions.  
To use the solution definitions for both PRL and POL in your instance, open each definition and select Update and Retrain. This action ensures that the solution definitions are trained to meet your specific requirements. Any PR or SR with empty Product category and Spend category fields is updated using the latest model outputs.  
Nota:  
Users with the category_manager_admin and now_assist_admin roles can update the solution definitions.

Both solution types retrain automatically based on configured training frequency. By default, the solution definitions run automatically once every seven days.

## How to configure

The `sn_spend_genn_ai.spend_category_confidence_score_threshold` system property defines the confidence score threshold for predicting the Product category and Spend category fields. You can set a value between 0 and 100. The default value is 80.

## Product and spend category prediction logic {#automatically-assign-categories__section_p1n_f35_g3c}

First, the Spend categorization agent predicts the product and spend categories for SR and PR records. It uses the prediction models and the system property confidence threshold value.

If the confidence score is below the threshold, the Spend categorization agent does not predict categories. In this case, the Product category predictor and Spend category predictor skills act as fallback logic.

* Product category predictor: Suggests the most likely product category for a fulfiller (sn_shop.procurement_specialist) when the primary ML-based category prediction does not meet the confidence threshold.
* Spend category predictor: Suggests the appropriate spend category for a fulfiller (sn_shop.procurement_specialist) when primary ML-based category prediction does not meet the confidence threshold.

{#automatically-assign-categories__ul_tty_pgb_h3c}

These skills run and predict and update the Product category and Spend category fields on the PRLs for an SR or PR.

View these skills by navigating to AllNow Assist AdminFinance \& Supply ChainSourcing and Procurement Operations.

## How it works

When a new service request (SR) or purchase request (PR) is created using the I need a product, I need a service, or I need to submit a quote record producers, the
Spend categorization agent is automatically triggered. The Spend categorization agent predicts and updates the product category and spend category on the purchase request lines (PRLs).

If the AI-predicted category differs from the category selected by the requester, the Product category and Spend category fields are updated only when the prediction confidence score
exceeds 80%.

Visual indicators appear next to the Product category and Spend category fields in the Playbook view and the Purchase Line related lists, indicating that the fields were updated using AI
predictions. In such cases, a corresponding comment is added to the activity stream, for example, "AI-suggested Spend category updated from X to Y."

You can manually select different values for either category field from the Product category and Spend category drop-down lists on the Purchase Line form.

Any user-selected overrides are captured and used to improve future model accuracy. When a different value is selected, a banner appears at the top of the form that informs you that an AI-predicted value was applied.

The prediction model also analyzes information in documents attached to the SR or PR, such as the product name and product description, to predict the product and spend categories.
* **[Audit purchase lines automatically when predictive fields change](https://servicenow-prod.fluidtopics.net/VEXNHwro93rtBBcM6gILcg)**   
  Automated audit compares existing categories with the latest AI prediction when key predictive fields are updated in a service request or purchase requisition, flagging inconsistencies without automatically updating category fields.
* **[Predict categories for PRLs and POLs imported through integrations](https://servicenow-prod.fluidtopics.net/_uSm2gP6LmeTx_jw0~22nw)**   
  Automatically predict and assign product and spend categories for imported purchase requisition lines and purchase order lines using scheduled on-demand scripts.
* **[Ensure consistent invoice spend categories during PO matching](https://servicenow-prod.fluidtopics.net/mIlydfr2wJiHhxQT1jzJ9Q)**   
  Maintain aligned spend categories when matching invoice lines with purchase order lines by applying the spend category from the PO line to the corresponding invoice line.

**Conceitos relacionados**   

* [Supporting information for Now Assist for Sourcing and Procurement Operations (SPO)](https://servicenow-prod.fluidtopics.net/r4IYtmXTPITPMWu1Nj7xIQ "Get a quick overview of the important information that is related to the Now Assist for Sourcing and Procurement Operations (SPO) application.")

